From 53054acb149ae848b1e02b399a2ce8fdf012af20 Mon Sep 17 00:00:00 2001 From: MartinsOnuoha Date: Sun, 29 Oct 2023 01:58:39 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(appsidepanel.vue):=20add=20sid?= =?UTF-8?q?e=20panel=20to=20view=20statements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/color-scheme.scss | 2 + src/assets/styles/variables.scss | 2 +- src/components/AppSidePanel/AppSidePanel.vue | 43 +++++++++++++++++++ .../AppSidePanel/_AppSidePanel.dark.scss | 12 ++++++ .../AppSidePanel/_AppSidePanel.scss | 23 ++++++++++ .../_AppStatementCard.dark.scss | 2 +- src/components/Icons/MdiClose.vue | 8 ++++ src/views/HomeView.vue | 25 +++++++++-- src/views/_HomeView.scss | 2 +- 9 files changed, 112 insertions(+), 7 deletions(-) create mode 100644 src/components/AppSidePanel/AppSidePanel.vue create mode 100644 src/components/AppSidePanel/_AppSidePanel.dark.scss create mode 100644 src/components/AppSidePanel/_AppSidePanel.scss create mode 100644 src/components/Icons/MdiClose.vue diff --git a/src/assets/styles/color-scheme.scss b/src/assets/styles/color-scheme.scss index 6335eac..85b74c5 100644 --- a/src/assets/styles/color-scheme.scss +++ b/src/assets/styles/color-scheme.scss @@ -2,6 +2,7 @@ body[color-scheme='dark'] { @import '@/components/AppFilter/AppFilter.dark'; @import '@/components/AppHeader/HeaderActions.dark'; @import '@/components/AppSideBanner/AppSideBanner.dark'; + @import '@/components/AppSidePanel/AppSidePanel.dark'; @import '@/components/AppStatementCard/AppStatementCard.dark'; @import '@/components/AppToggleDarkMode/AppToggleDarkMode.dark'; @import '@/views/HomeView.dark'; @@ -12,6 +13,7 @@ body[color-scheme='light'] { @import '@/components/AppFilter/AppFilter'; @import '@/components/AppHeader/HeaderActions'; @import '@/components/AppSideBanner/AppSideBanner'; + @import '@/components/AppSidePanel/AppSidePanel'; @import '@/components/AppStatementCard/AppStatementCard'; @import '@/components/AppToggleDarkMode/AppToggleDarkMode'; @import '@/views/HomeView'; diff --git a/src/assets/styles/variables.scss b/src/assets/styles/variables.scss index b6ec021..7d3aed0 100644 --- a/src/assets/styles/variables.scss +++ b/src/assets/styles/variables.scss @@ -1,6 +1,6 @@ :root { --color-dark: #2e2e41; - --color-dark-light: #272c3a; + --color-dark-darker: #272c3a; --color-dark-text: #242424; --color-dark-icon: #4b5563; --color-ghostwhite: ghostwhite; diff --git a/src/components/AppSidePanel/AppSidePanel.vue b/src/components/AppSidePanel/AppSidePanel.vue new file mode 100644 index 0000000..d5fd57f --- /dev/null +++ b/src/components/AppSidePanel/AppSidePanel.vue @@ -0,0 +1,43 @@ + + + + + diff --git a/src/components/AppSidePanel/_AppSidePanel.dark.scss b/src/components/AppSidePanel/_AppSidePanel.dark.scss new file mode 100644 index 0000000..4c5e26b --- /dev/null +++ b/src/components/AppSidePanel/_AppSidePanel.dark.scss @@ -0,0 +1,12 @@ +.AppSidePanel { + &__content { + @apply bg-[var(--color-dark)] text-gray-300; + } + &__header { + button { + &:hover { + @apply bg-gray-800; + } + } + } +} diff --git a/src/components/AppSidePanel/_AppSidePanel.scss b/src/components/AppSidePanel/_AppSidePanel.scss new file mode 100644 index 0000000..8848522 --- /dev/null +++ b/src/components/AppSidePanel/_AppSidePanel.scss @@ -0,0 +1,23 @@ +.AppSidePanel { + @apply h-screen w-full absolute flex z-50 transition-all; + &__overlay { + @apply w-full bg-opacity-90 bg-black flex justify-center items-center; + } + &__content { + @apply w-3/6 bg-white shadow-2xl text-gray-800 p-8; + } + &__header { + button { + @apply border rounded-full p-2 mb-14 text-lg transition-all; + &:hover { + @apply bg-[var(--color-ghostwhite)] text-red-500; + } + } + } + &__title { + @apply text-2xl; + } + &__description { + @apply border mt-5 text-xl text-gray-700 p-5 rounded-lg; + } +} diff --git a/src/components/AppStatementCard/_AppStatementCard.dark.scss b/src/components/AppStatementCard/_AppStatementCard.dark.scss index e251db8..5f8532b 100644 --- a/src/components/AppStatementCard/_AppStatementCard.dark.scss +++ b/src/components/AppStatementCard/_AppStatementCard.dark.scss @@ -2,5 +2,5 @@ @apply rounded-lg bg-gradient-to-r from-pink-500 via-red-500 to-yellow-500 p-1; } .AppStatementCard { - @apply shadow-2xl border-none bg-[var(--color-dark)] text-[var(--color-ghostwhite)] hover:bg-gradient-to-tr from-pink-900 via-[var(--color-dark)] to-[var(--color-dark)]; + @apply shadow-2xl border-none bg-[var(--color-dark)] text-gray-300 hover:bg-gradient-to-tr from-pink-900 via-[var(--color-dark)] to-[var(--color-dark)]; } diff --git a/src/components/Icons/MdiClose.vue b/src/components/Icons/MdiClose.vue new file mode 100644 index 0000000..9dac91a --- /dev/null +++ b/src/components/Icons/MdiClose.vue @@ -0,0 +1,8 @@ + diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index df44549..4c8bee5 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -1,18 +1,27 @@ diff --git a/src/views/_HomeView.scss b/src/views/_HomeView.scss index ca47ee4..f153e79 100644 --- a/src/views/_HomeView.scss +++ b/src/views/_HomeView.scss @@ -1,5 +1,5 @@ .HomeView { - @apply flex h-screen; + @apply flex h-screen relative; background-color: var(--color-ghostwhite); main {