diff --git a/app/app.vue b/app/app.vue index a58b800..4976477 100644 --- a/app/app.vue +++ b/app/app.vue @@ -2,23 +2,7 @@ import '~/assets/css/main.css'; useHead({ - link: [ - { rel: 'icon', type: 'image/png', href: '/favicon.png' }, - // { rel: 'preconnect', href: 'https://fonts.googleapis.com' }, - // { - // rel: 'preconnect', - // href: 'https://fonts.gstatic.com', - // crossorigin: '', - // }, - // { - // rel: 'stylesheet', - // href: 'https://fonts.googleapis.com/css2?family=Baskervville:ital,wght@0,400..700;1,400..700&display=swap', - // }, - // { - // rel: 'stylesheet', - // href: 'https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&display=swap', - // }, - ], + link: [{ rel: 'icon', type: 'image/png', href: '/favicon.png' }], }); onMounted(() => {}); diff --git a/app/assets/bgvideo.webm b/app/assets/bgvideo.webm deleted file mode 100644 index 5d53383..0000000 Binary files a/app/assets/bgvideo.webm and /dev/null differ diff --git a/app/assets/css/main.css b/app/assets/css/main.css index cf6ffda..df92ac5 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -4,14 +4,31 @@ /* --font: 'Baskervville', serif; */ /* --font: 'EB Garamond', serif; */ /* --font: 'Plantin MT Pro', serif; */ - --font: 'Redaction', serif; /* --font: 'Young Serif', serif; */ /* --font: "SohneBuch", sans-serif; */ + --font: 'Redaction', serif; --font-hover: 'Redaction 70', serif; /* --font-hover: var(--font); */ --text: #333; --muted: #666; --bg: #fbfbf7; + + --color-white-500: #fbfbf7; + + --gap: 1rem; +} + +::selection { + background: var(--text); + color: var(--bg); +} + +.dark-mode { + --text: #fbfbf7; + --bg: #111111; + --muted: #d1d1d1; + + --color-white-500: #fbfbf7; } .flex { @@ -70,12 +87,12 @@ body { display: inline-block; vertical-align: bottom; position: relative; - color: var(--bg); + color: var(--color-white-500); text-decoration: none; transition: all 200ms ease; padding: 0 4px; margin: 0 -4px; - background-image: linear-gradient(var(--bg), var(--bg)); + background-image: linear-gradient(var(--color-white-500), var(--color-white-500)); background-size: 100% 1px; background-position: bottom; background-repeat: no-repeat; diff --git a/app/layouts/main.vue b/app/layouts/main.vue index e44078c..ee08000 100644 --- a/app/layouts/main.vue +++ b/app/layouts/main.vue @@ -3,6 +3,12 @@ defineProps<{ title?: string; description?: string; }>(); + +const theme = useColorMode(); + +const toggleTheme = () => { + theme.preference = theme.preference === 'light' ? 'dark' : 'light'; +};