From caca751b74db1d38aaf8a63f30509a14be59ea88 Mon Sep 17 00:00:00 2001 From: Sebin Nyshkim Date: Wed, 18 Jan 2023 12:57:52 +0100 Subject: [PATCH 001/103] fix: navigation text not changing color on hover --- src/components/SiteNavigation.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/SiteNavigation.vue b/src/components/SiteNavigation.vue index eb7c55e..06e6aa3 100644 --- a/src/components/SiteNavigation.vue +++ b/src/components/SiteNavigation.vue @@ -83,6 +83,10 @@ import { RouterLink } from "vue-router"; } } + &:hover &-text { + color: var(--color-router-link-hover); + } + &:last-child { margin: var(--navigation-link-last-child-margin); } @@ -117,10 +121,6 @@ import { RouterLink } from "vue-router"; display: none; font-size: var(--navigation-link-text-font-size); margin: 0 0 0 1rem; - - &:hover { - color: var(--color-router-link-hover); - } } } From bd4b36f8aedac9a4cdefc6e186aca9dbe0e36901 Mon Sep 17 00:00:00 2001 From: Sebin Nyshkim Date: Wed, 18 Jan 2023 12:58:31 +0100 Subject: [PATCH 002/103] chore: serve from subdirectory --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 790e081..439f149 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -6,7 +6,7 @@ import vue from "@vitejs/plugin-vue"; // https://vitejs.dev/config/ export default defineConfig({ - base: "./", + base: "/viktor/", plugins: [vue(), imagetools()], resolve: { alias: { From d296e6136261cd7b1fc2816cc86a08dbba0ca016 Mon Sep 17 00:00:00 2001 From: Sebin Nyshkim Date: Wed, 18 Jan 2023 13:47:01 +0100 Subject: [PATCH 003/103] refactor: remove TextBlock component in favor of simpler section element --- src/components/TextBlock.vue | 17 ----------------- src/scss/main.scss | 10 ++++++++++ src/views/AnatomyView.vue | 13 ++++++------- src/views/AttributionsView.vue | 5 ++--- src/views/CareerPathView.vue | 5 ++--- src/views/GeneralView.vue | 17 ++++++++--------- src/views/HomeView.vue | 5 ++--- 7 files changed, 30 insertions(+), 42 deletions(-) delete mode 100644 src/components/TextBlock.vue diff --git a/src/components/TextBlock.vue b/src/components/TextBlock.vue deleted file mode 100644 index 27dd604..0000000 --- a/src/components/TextBlock.vue +++ /dev/null @@ -1,17 +0,0 @@ - - - diff --git a/src/scss/main.scss b/src/scss/main.scss index 1bdb2f8..0b28065 100644 --- a/src/scss/main.scss +++ b/src/scss/main.scss @@ -36,6 +36,16 @@ main { transition: 0.4s; } +section { + max-width: var(--textblock-max-width); + margin: auto; + padding: var(--textblock-padding); + + p { + text-align: justify; + } +} + h1, h2, h3, diff --git a/src/views/AnatomyView.vue b/src/views/AnatomyView.vue index 589ec01..a9cd13e 100644 --- a/src/views/AnatomyView.vue +++ b/src/views/AnatomyView.vue @@ -1,7 +1,6 @@ diff --git a/src/views/AttributionsView.vue b/src/views/AttributionsView.vue index c7a2515..9d04f9c 100644 --- a/src/views/AttributionsView.vue +++ b/src/views/AttributionsView.vue @@ -1,5 +1,4 @@ diff --git a/src/views/CareerPathView.vue b/src/views/CareerPathView.vue index 860df36..74c38e3 100644 --- a/src/views/CareerPathView.vue +++ b/src/views/CareerPathView.vue @@ -6,17 +6,16 @@ import TreeIcon from "@/assets/icons/TreeIcon.vue"; import CarIcon from "@/assets/icons/CarIcon.vue"; import HelmetSafetyIcon from "@/assets/icons/HelmetSafetyIcon.vue"; import BoxesIcon from "@/assets/icons/BoxesIcon.vue"; -import TextBlock from "@/components/TextBlock.vue"; diff --git a/src/views/AttributionsView.vue b/src/views/AttributionsView.vue index 5be1299..812f146 100644 --- a/src/views/AttributionsView.vue +++ b/src/views/AttributionsView.vue @@ -26,23 +26,23 @@ const attributions = [