From fe0ed2cac6e420cf40324d70133d0993de0d6bc3 Mon Sep 17 00:00:00 2001 From: Marieke Date: Wed, 22 May 2024 13:48:12 +0200 Subject: [PATCH] requested changes --- backend/README.md | 2 +- backend/alembic/README.md | 2 +- frontend/src/components/TitleContainer.vue | 2 +- .../components/project/RequirementsInput.vue | 6 ++- .../subject/subjectsview/body/SubjectCard.vue | 4 +- .../header/SubjectHeaderContainer.vue | 6 +-- frontend/src/views/GroupsView.vue | 28 ++++++++-- frontend/src/views/subject/SubjectView.vue | 53 +++++++++++-------- frontend/src/views/subject/SubjectsView.vue | 19 +++---- 9 files changed, 76 insertions(+), 46 deletions(-) diff --git a/backend/README.md b/backend/README.md index d6820ded..84355101 100644 --- a/backend/README.md +++ b/backend/README.md @@ -68,7 +68,7 @@ DATABASE_URI="postgresql://username:password@localhost:5432/dbname" #### Run alembic to initialize the database ```sh -alembic upgrade header +alembic upgrade head ``` You can find more info about alembic [here](alembic/README.md). diff --git a/backend/alembic/README.md b/backend/alembic/README.md index 387500d8..d5cbbb71 100644 --- a/backend/alembic/README.md +++ b/backend/alembic/README.md @@ -25,7 +25,7 @@ and make adjustments if needed. #### Run a migration: this will upgrade the database schema to the most recent revision. ```sh -alembic upgrade header +alembic upgrade head ``` #### Undo the most recent revision: diff --git a/frontend/src/components/TitleContainer.vue b/frontend/src/components/TitleContainer.vue index 15ff3ff5..5798864b 100644 --- a/frontend/src/components/TitleContainer.vue +++ b/frontend/src/components/TitleContainer.vue @@ -1,6 +1,6 @@ diff --git a/frontend/src/components/project/RequirementsInput.vue b/frontend/src/components/project/RequirementsInput.vue index 4edfcf39..d1ad07de 100644 --- a/frontend/src/components/project/RequirementsInput.vue +++ b/frontend/src/components/project/RequirementsInput.vue @@ -28,12 +28,12 @@ - + {{ req.value }} - + + + diff --git a/frontend/src/components/subject/subjectsview/body/SubjectCard.vue b/frontend/src/components/subject/subjectsview/body/SubjectCard.vue index 5a9e1b26..3f237973 100644 --- a/frontend/src/components/subject/subjectsview/body/SubjectCard.vue +++ b/frontend/src/components/subject/subjectsview/body/SubjectCard.vue @@ -40,13 +40,11 @@ defineProps<{ .subject-title { color: rgb(var(--v-theme-text)); font-size: 3vh; - position: absolute; - bottom: 0; } .subject-icon { position: absolute; - top: 10px; + bottom: 10px; right: 15px; color: rgb(var(--v-theme-text)); } diff --git a/frontend/src/components/subject/subjectview/header/SubjectHeaderContainer.vue b/frontend/src/components/subject/subjectview/header/SubjectHeaderContainer.vue index 1dc333a7..7f0a6e70 100644 --- a/frontend/src/components/subject/subjectview/header/SubjectHeaderContainer.vue +++ b/frontend/src/components/subject/subjectview/header/SubjectHeaderContainer.vue @@ -12,8 +12,6 @@ diff --git a/frontend/src/views/GroupsView.vue b/frontend/src/views/GroupsView.vue index 875ce88f..9824ab2a 100644 --- a/frontend/src/views/GroupsView.vue +++ b/frontend/src/views/GroupsView.vue @@ -2,8 +2,8 @@

{{ $t("default.loading.loading_page") }}

{{ $t("group.error") }}

- - + +

{{ "Project: " + project!.name }}

@@ -32,7 +32,7 @@ $t("group.create_group") }}
- + .v-container { padding: 25px; + position: relative; } .group-card { @@ -150,4 +151,25 @@ async function createGroup() { .backbutton { margin: 25px; } + +.buttoncontainer{ + min-width: 200px; +} +@media (max-width: 900px) { + .backbutton { + margin-right: 0; + } + + .buttoncontainer { + z-index: 10; + position: absolute; + right: 20px; + top: 10px; + } + + .projectinfo{ + position: relative; + } +} + diff --git a/frontend/src/views/subject/SubjectView.vue b/frontend/src/views/subject/SubjectView.vue index 5372c146..6db57b44 100644 --- a/frontend/src/views/subject/SubjectView.vue +++ b/frontend/src/views/subject/SubjectView.vue @@ -12,7 +12,7 @@ - + - -
- - - {{ $t("subject.create_project") }} - - - -
+ + + + {{ $t("subject.create_project") }} + + +
@@ -146,14 +144,27 @@ const { isTeacher } = useIsTeacher(); .action-btn-container { margin-top: 50px; margin-right: 25px; + min-width: 200px; + margin-left: 25px; +} + +@media (max-width: 900px) { + .action-btn-container { + display: flex; + order: -1; + margin-top: 50px; + margin-bottom: -30px; + width: 100%; + margin-left: 50px; + } + .button { + margin-right: 10px; + } } .subjectcard { background-color: rgb(var(--v-theme-secondary)); - margin-top: 50px; - margin-left: 50px; - margin-right: 10px; - margin-bottom: 50px; + margin: 50px 50px 50px 50px; border-radius: 3px; padding: 20px; } @@ -162,6 +173,6 @@ const { isTeacher } = useIsTeacher(); background-color: rgb(var(--v-theme-primary)); color: rgb(var(--v-theme-navtext)); margin-bottom: 10px; - width: 175px; + width: 200px; } diff --git a/frontend/src/views/subject/SubjectsView.vue b/frontend/src/views/subject/SubjectsView.vue index 9d264950..0b81a5e2 100644 --- a/frontend/src/views/subject/SubjectsView.vue +++ b/frontend/src/views/subject/SubjectsView.vue @@ -4,7 +4,7 @@ - + @@ -36,14 +36,12 @@ - -
- - - {{ $t("subjects.create_subject") }} - - -
+ + + + {{ $t("subjects.create_subject") }} + +
@@ -127,6 +125,7 @@ const onAcademicYearChanged = (academicYear: number) => {