From 60a31b659cc0ca2eb1c4a80890a444205d1ac0fd Mon Sep 17 00:00:00 2001 From: pskfyi Date: Sun, 9 Jan 2022 23:11:55 -0800 Subject: [PATCH] refactor: componentize key art section; move title to tab area --- components/KeyArtStage.vue | 35 +++++++++++++++++++++++++++++ layouts/default.vue | 46 ++++++-------------------------------- 2 files changed, 42 insertions(+), 39 deletions(-) create mode 100644 components/KeyArtStage.vue diff --git a/components/KeyArtStage.vue b/components/KeyArtStage.vue new file mode 100644 index 0000000..ab634eb --- /dev/null +++ b/components/KeyArtStage.vue @@ -0,0 +1,35 @@ + + + diff --git a/layouts/default.vue b/layouts/default.vue index 90b3e33..faf9be8 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -6,23 +6,7 @@ > -
-
-
- - - - -
-
+
- {{ $store.getters.activeTab.title }} -
+
-
@@ -110,7 +92,7 @@ html { } main { - grid-template-rows: auto minmax(0, 2fr) auto auto minmax(0, 3fr); + grid-template-rows: auto minmax(0, 2fr) auto minmax(0, 3fr); transition: background-color 2000ms; } @@ -118,18 +100,4 @@ main { grid-template-columns: repeat(6, 1fr); grid-gap: 0.25rem; } - -.units-background { - background: url('https://freesvg.org/img/johnny_automatic_hourglass.png'); - background-size: contain; - background-repeat: no-repeat; - background-position: center; - opacity: 0.4; - height: calc(100% - 4rem); /* 4rem = top padding + bottom padding */ -} -.spare-time { - background: rgba(2555, 255, 255, 0.6); - box-shadow: 0px 0px 21px 3px #fff; - transition: color 2000ms; -}