From f8457af0db4eb9454d919f6a99948b957bb316eb Mon Sep 17 00:00:00 2001 From: Laurent <58115082+naaturel@users.noreply.github.com> Date: Mon, 17 Mar 2025 10:49:07 +0100 Subject: [PATCH] Fix responsive shits --- front/README.md | 4 +-- front/src/assets/base.css | 1 - front/src/assets/main.css | 13 ++++++++-- front/src/components/NavLink.vue | 24 ++++-------------- front/src/components/TextBlock.vue | 4 +-- front/src/layouts/LayoutDefault.vue | 4 +-- front/src/views/CreateView.vue | 4 +-- front/src/views/HomeView.vue | 39 +++++++++++------------------ front/src/views/JoinView.vue | 24 ++++++++++-------- 9 files changed, 50 insertions(+), 67 deletions(-) diff --git a/front/README.md b/front/README.md index 119cb47..f657f76 100644 --- a/front/README.md +++ b/front/README.md @@ -1,4 +1,2 @@ # Hi there ! - -Inspired by when2meet, Let's meet is a free and open-source app that allows you and your friends to find a date to meet. -From now on, there is no need to spend hours and hours trying to find a suitable day for everyone. +Inspired by when2meet, Let's meet is a free and open-source app that allows you and your friends to find a date to meet. From now on, there is no need to spend hours and hours trying to find a suitable day for everyone. diff --git a/front/src/assets/base.css b/front/src/assets/base.css index 36cb726..9663859 100644 --- a/front/src/assets/base.css +++ b/front/src/assets/base.css @@ -8,7 +8,6 @@ --font-size : 1.3rem; } - * { color: var(--primary-color); diff --git a/front/src/assets/main.css b/front/src/assets/main.css index e7628ba..e5e38d6 100644 --- a/front/src/assets/main.css +++ b/front/src/assets/main.css @@ -10,6 +10,7 @@ body { background-color: white; font-size: var(--font-size); + overflow: hidden; } .layout @@ -21,16 +22,24 @@ body { display: flex; padding: 0 1vw 3vh 1vw; + justify-content: center; + align-content: center; + align-items: center; + height: 100%; + max-height: 100%; + gap: 10vw; + width: 80%; + } -@media screen and (min-width: 1501px) { +@media screen and (min-width: 801px) { .container { flex-direction: row; } } -@media screen and (max-width: 1500px) { +@media screen and (max-width: 800px) { .container { flex-direction: column; } diff --git a/front/src/components/NavLink.vue b/front/src/components/NavLink.vue index 3447f70..515e651 100644 --- a/front/src/components/NavLink.vue +++ b/front/src/components/NavLink.vue @@ -1,5 +1,7 @@ diff --git a/front/src/components/TextBlock.vue b/front/src/components/TextBlock.vue index f753a24..abe3c08 100644 --- a/front/src/components/TextBlock.vue +++ b/front/src/components/TextBlock.vue @@ -27,13 +27,13 @@ } -@media screen and (max-width: 1501px) { +@media screen and (max-width: 800px) { .text-block { padding: 5px 15px 5px 15px; } } -@media screen and (min-width: 1500px) { +@media screen and (min-width: 801px) { .text-block { padding: 10px 30px 10px 30px; } diff --git a/front/src/layouts/LayoutDefault.vue b/front/src/layouts/LayoutDefault.vue index 01c0a04..c39c413 100644 --- a/front/src/layouts/LayoutDefault.vue +++ b/front/src/layouts/LayoutDefault.vue @@ -64,7 +64,7 @@ nav p { height: fit-content; } -@media screen and (min-width: 951px) { +@media screen and (min-width: 801px) { ::v-deep(nav .button) { width: 5vw; @@ -74,7 +74,7 @@ nav p { } } -@media screen and (max-width: 950px) { +@media screen and (max-width: 800px) { ::v-deep(nav .button) { width: 7vw; diff --git a/front/src/views/CreateView.vue b/front/src/views/CreateView.vue index f01e193..22233ca 100644 --- a/front/src/views/CreateView.vue +++ b/front/src/views/CreateView.vue @@ -35,7 +35,7 @@ import NavLink from "@/components/NavLink.vue"; } /* MEDIA QUERIES */ -@media screen and (min-width: 1501px) { +@media screen and (min-width: 801px) { .title { width: 50%; @@ -52,7 +52,7 @@ import NavLink from "@/components/NavLink.vue"; } } -@media screen and (max-width: 1500px) { +@media screen and (max-width: 800px) { .title, .event-form { width: 100%; diff --git a/front/src/views/HomeView.vue b/front/src/views/HomeView.vue index 2c7ce24..be18c3c 100644 --- a/front/src/views/HomeView.vue +++ b/front/src/views/HomeView.vue @@ -31,18 +31,13 @@ import TextBlock from "@/components/TextBlock.vue"; diff --git a/front/src/views/JoinView.vue b/front/src/views/JoinView.vue index 2664b84..ecf0f69 100644 --- a/front/src/views/JoinView.vue +++ b/front/src/views/JoinView.vue @@ -1,21 +1,23 @@