From 0554c94946645ebd9ed62475312bbdbf1b4bfd75 Mon Sep 17 00:00:00 2001 From: Laurent <58115082+naaturel@users.noreply.github.com> Date: Tue, 18 Mar 2025 09:53:07 +0100 Subject: [PATCH] Improved responsive design again --- front/src/assets/main.css | 5 +- front/src/components/Button.vue | 3 +- front/src/components/InputField.vue | 16 +++- front/src/components/NavLink.vue | 8 +- front/src/layouts/LayoutDefault.vue | 2 +- front/src/router/index.ts | 14 ++-- front/src/views/CreateView.vue | 7 ++ front/src/views/EventView.vue | 11 +++ front/src/views/HomeView.vue | 69 +++++++++-------- front/src/views/JoinView.vue | 116 +++++++++++++++++++++++++++- 10 files changed, 201 insertions(+), 50 deletions(-) create mode 100644 front/src/views/EventView.vue diff --git a/front/src/assets/main.css b/front/src/assets/main.css index a6006f6..2be1dca 100644 --- a/front/src/assets/main.css +++ b/front/src/assets/main.css @@ -21,19 +21,17 @@ body { display: flex; padding: 0 1vw 3vh 1vw; - justify-content: center; - align-content: center; align-items: center; height: 100%; max-height: 100%; width: 80%; - } @media screen and (min-width: 1001px) { .container { flex-direction: row; + justify-content: center; gap: 10vw; } } @@ -41,6 +39,7 @@ body @media screen and (max-width: 1000px) { .container { flex-direction: column; + justify-content: start; gap: 50px; } } diff --git a/front/src/components/Button.vue b/front/src/components/Button.vue index f128b81..6815b81 100644 --- a/front/src/components/Button.vue +++ b/front/src/components/Button.vue @@ -13,6 +13,8 @@ diff --git a/front/src/components/NavLink.vue b/front/src/components/NavLink.vue index 515e651..a306255 100644 --- a/front/src/components/NavLink.vue +++ b/front/src/components/NavLink.vue @@ -10,9 +10,11 @@ const props = defineProps<{ diff --git a/front/src/views/HomeView.vue b/front/src/views/HomeView.vue index 5a6d3fd..d43b8fd 100644 --- a/front/src/views/HomeView.vue +++ b/front/src/views/HomeView.vue @@ -7,7 +7,7 @@ import TextBlock from "@/components/TextBlock.vue"; - diff --git a/front/src/views/JoinView.vue b/front/src/views/JoinView.vue index ecf0f69..5dd9b77 100644 --- a/front/src/views/JoinView.vue +++ b/front/src/views/JoinView.vue @@ -13,8 +13,9 @@ import InputField from "@/components/InputField.vue";
+

Event code

- +
@@ -23,4 +24,117 @@ import InputField from "@/components/InputField.vue";