From 3fd31bcc43695a3587a5a066cdad8e1579a4c94d Mon Sep 17 00:00:00 2001 From: "selina.mail" Date: Wed, 22 Nov 2023 13:41:53 +0100 Subject: [PATCH] added lightmode option --- components/ClientSearch.vue | 69 +++++---- components/Dashboard.vue | 140 ++++++++++-------- components/QuickAccess.vue | 144 ++++++++++-------- components/server/Asset.vue | 94 +++++++++--- components/server/AssetTable.vue | 123 +++++++++++---- components/server/AssetTableNoClient.vue | 97 +++++++++--- components/server/HardwareSpecifications.vue | 66 ++++++--- components/server/NetworkSpecifications.vue | 54 +++++-- components/server/SoftwareSpecifications.vue | 84 +++++++++-- components/server/Solution.vue | 85 ++++++++--- components/server/SolutionChecklist.vue | 96 +++++++++--- components/server/SolutionTable.vue | 107 +++++++++++--- components/server/SolutionTableNoClient.vue | 96 +++++++++--- layouts/PageHeader.vue | 136 ++++++++++------- layouts/default.vue | 54 ++++--- layouts/empty.vue | 78 +++++----- pages/assets.vue | 148 ++++++++++--------- pages/clients.vue | 140 ++++++++++-------- pages/home.vue | 116 ++++++++------- pages/index.vue | 147 ++++++++++-------- pages/login.vue | 103 +++++++------ pages/solutions.vue | 140 ++++++++++-------- 22 files changed, 1501 insertions(+), 816 deletions(-) diff --git a/components/ClientSearch.vue b/components/ClientSearch.vue index 3d6de46..a39e00c 100644 --- a/components/ClientSearch.vue +++ b/components/ClientSearch.vue @@ -1,14 +1,18 @@ @@ -20,11 +24,18 @@ export default { gap: 1.25em; width: 30.125em; height: 3.125em; - background: #2C2C2C; box-shadow: 0.25em 0.25em 0.25em rgba(0, 0, 0, 0.25); border-radius: 0.625em; } +.section-darkmode { + background-color: #2c2c2c; +} + +.section-lightmode { + background-color: #fff; +} + .label { width: 2.5625em; height: 1.875em; @@ -34,38 +45,34 @@ export default { font-size: 0.875em; line-height: 1.875; letter-spacing: 0.05em; +} + +.label-darkmode { color: #FFFFFF; } - - /* flex: 0; - height: 1.875em; */ - /* min-width: 1.875em; - width: fit-content; - overflow: hidden; */ +.label-lightmode { + color: #000; +} .data { - display: flex; - flex-direction: row; - align-items: flex-start; - padding: 0 0.625rem; - border-radius: 0.3125rem; - box-shadow: 0.0625rem 0.0625rem 0.25rem 0rem rgba(0, 0, 0, 0.25) inset; - background-color: #212121; - color: #fff; - letter-spacing: 5%; - font: 400 0.75rem/250% Overpass, sans-serif; + display: flex; + flex-direction: row; + align-items: flex-start; + padding: 0 0.625rem; + border-radius: 0.3125rem; + box-shadow: 0.0625rem 0.0625rem 0.25rem 0rem rgba(0, 0, 0, 0.25) inset; + letter-spacing: 5%; + font: 400 0.75rem/250% Overpass, sans-serif; +} - /* gap: 0.625em; - flex: 0; */ - } +.pre-darkmode { + background-color: #212121; + color: #fff; +} -.input input { - flex: 1; - width: 100%; - height: 100%; - border: none; - background: transparent; - color: #FFFFFF; +.pre-lightmode { + background-color: #EBEBEB; + color: #000; } diff --git a/components/Dashboard.vue b/components/Dashboard.vue index 78a8995..97a47f8 100644 --- a/components/Dashboard.vue +++ b/components/Dashboard.vue @@ -1,11 +1,14 @@ @@ -16,7 +19,11 @@ export default { name: "Dashboard", - + data() { + return { + darkMode: true, + }; + }, } @@ -25,54 +32,71 @@ export default { \ No newline at end of file +.dashboard { + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; + align-self: stretch; + width: 100%; + padding: 1.875rem 3.125rem 3.125rem; + gap: 1.25rem; + border-radius: 0.625rem; + box-shadow: 0.25rem 0.25rem 0.25rem 0rem rgba(0, 0, 0, 0.25); +} + +.section-darkmode { + background-color: #2c2c2c; +} + +.section-lightmode { + background-color: #fff; +} + +.heading { + letter-spacing: 5%; + text-decoration-line: underline; + font: 400 1rem/2rem Overpass, sans-serif; +} + +.heading-darkmode { + color: #fff; +} + +.heading-lightmode { + color: #000; +} + +.shortcuts { + display: flex; + flex-direction: row; + justify-content: space-between; + align-content: center; + padding: 0.625rem 2.5rem; + gap: 2.5rem; +} + +input { + display: flex; + flex-direction: row; + align-items: center; + justify-content: center; + width: 15rem; + height: 4rem; + border-radius: 0.625rem; + padding: 0.9375rem 1.25rem; + border: none; + text-align: center; + letter-spacing: 5%; + font: 400 0.875rem/2rem Overpass, sans-serif; +} + +.input-darkmode { + color: #fff; + background-color: #343434; +} + +.input-lightmode { + color: #000; + background-color: #E4E4E4; +} \ No newline at end of file diff --git a/components/QuickAccess.vue b/components/QuickAccess.vue index a902531..1451986 100644 --- a/components/QuickAccess.vue +++ b/components/QuickAccess.vue @@ -1,8 +1,8 @@