From bc881f2af1896f5f648d44ca75539f65b126fdf4 Mon Sep 17 00:00:00 2001 From: Marieke Date: Tue, 21 May 2024 21:10:44 +0200 Subject: [PATCH] subject styling --- .../subject/subjectview/body/SubjectBody.vue | 59 ------------------- .../body/projects/SubjectProjectPage.vue | 27 +-------- .../body/projects/SubjectProjectsPage.vue | 4 +- .../projects/list/SubjectProjectsList.vue | 4 +- .../subjectview/header/SubjectHeaderCard.vue | 47 ++++++++++----- .../header/SubjectHeaderContainer.vue | 31 +++++----- .../subjectview/header/SubjectHeaderImage.vue | 3 - frontend/src/views/subject/SubjectView.vue | 14 +++-- 8 files changed, 62 insertions(+), 127 deletions(-) delete mode 100644 frontend/src/components/subject/subjectview/body/SubjectBody.vue diff --git a/frontend/src/components/subject/subjectview/body/SubjectBody.vue b/frontend/src/components/subject/subjectview/body/SubjectBody.vue deleted file mode 100644 index ff55f56b..00000000 --- a/frontend/src/components/subject/subjectview/body/SubjectBody.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - - - diff --git a/frontend/src/components/subject/subjectview/body/projects/SubjectProjectPage.vue b/frontend/src/components/subject/subjectview/body/projects/SubjectProjectPage.vue index a039d150..b5c94b5a 100644 --- a/frontend/src/components/subject/subjectview/body/projects/SubjectProjectPage.vue +++ b/frontend/src/components/subject/subjectview/body/projects/SubjectProjectPage.vue @@ -17,12 +17,10 @@ - mdi-alarm {{ $d(project.deadline, "long") }} -

{{ $t("subject.project.assignment") }}

- - {{ $t("subject.project.group") }} - - - - {{ $t("subject.project.submissions") }} - @@ -97,13 +88,12 @@ const renderQuillContent = (content: string) => { .project_description { font-size: 14px; line-height: 1.5; - color: #333; margin-top: 10px; margin-left: 10px; } .project-card { - background-color: white; + background-color: rgb(var(--v-theme-background)); padding: 20px; display: flex; flex-direction: column; @@ -117,17 +107,13 @@ const renderQuillContent = (content: string) => { color: inherit; } -.deadline { - color: #181818; -} - .colored-zone { position: absolute; top: 0; left: 0; width: 100%; height: 80px; /* Adjust the height as needed */ - background-color: var(--color-primary); /* Desired background color */ + background-color: rgb(var(--v-theme-primary)); /* Desired background color */ z-index: -1; /* Ensure the colored zone is behind the card content */ } @@ -141,15 +127,6 @@ const renderQuillContent = (content: string) => { text-transform: capitalize; } -.card_title { - font-size: 24px; - text-transform: capitalize; - display: block; - line-height: 1.2; - font-weight: 500; - color: black; -} - .project-container { overflow: auto; max-height: 55vh; diff --git a/frontend/src/components/subject/subjectview/body/projects/SubjectProjectsPage.vue b/frontend/src/components/subject/subjectview/body/projects/SubjectProjectsPage.vue index b84a79ec..1c1b088b 100644 --- a/frontend/src/components/subject/subjectview/body/projects/SubjectProjectsPage.vue +++ b/frontend/src/components/subject/subjectview/body/projects/SubjectProjectsPage.vue @@ -20,7 +20,6 @@ :project="project" > -

{{ $t("subject.projectsPage.no_projects") }}

@@ -78,7 +77,8 @@ const updateFilterOption = (option: FilterOptions) => { justify-content: center; align-items: center; height: 400px; /* Adjust height as needed */ - border: 1px solid #ccc; + border-radius: 3px; + background-color: rgb(var(--v-theme-background)) } .placeholder p { diff --git a/frontend/src/components/subject/subjectview/body/projects/list/SubjectProjectsList.vue b/frontend/src/components/subject/subjectview/body/projects/list/SubjectProjectsList.vue index ffc25f33..6ef81755 100644 --- a/frontend/src/components/subject/subjectview/body/projects/list/SubjectProjectsList.vue +++ b/frontend/src/components/subject/subjectview/body/projects/list/SubjectProjectsList.vue @@ -9,7 +9,7 @@ v-for="(filter, index) in filterOptions" :key="index" :value="FilterOptions[filter]" - color="primary" + color="text" variant="tonal" > {{ $t(`subject.projectsPage.${filter.toLowerCase()}`) }} @@ -73,7 +73,7 @@ watch(activeButton, (newVal: string) => { diff --git a/frontend/src/components/subject/subjectview/header/SubjectHeaderContainer.vue b/frontend/src/components/subject/subjectview/header/SubjectHeaderContainer.vue index c3019e11..16cb6ece 100644 --- a/frontend/src/components/subject/subjectview/header/SubjectHeaderContainer.vue +++ b/frontend/src/components/subject/subjectview/header/SubjectHeaderContainer.vue @@ -1,24 +1,19 @@ - + diff --git a/frontend/src/components/subject/subjectview/header/SubjectHeaderImage.vue b/frontend/src/components/subject/subjectview/header/SubjectHeaderImage.vue index 9f5434d7..bc871c35 100644 --- a/frontend/src/components/subject/subjectview/header/SubjectHeaderImage.vue +++ b/frontend/src/components/subject/subjectview/header/SubjectHeaderImage.vue @@ -15,9 +15,6 @@ defineProps<{