add DarkMode with Button #51

Merged
jakob.scheid merged 7 commits from feature/dark-mode into main 2026-05-15 12:47:26 +02:00
Showing only changes of commit 488186d795 - Show all commits
+6 -1
View File
@@ -25,7 +25,7 @@ watch(isDark, val => localStorage.setItem('theme', val ? 'dark' : 'light'));
</script>
<template>
<div :class="{ dark: isDark }">
<div :class="{ dark: isDark }" class="app-wrapper">
<Navbar />
<div class="main-content">
@@ -44,4 +44,9 @@ watch(isDark, val => localStorage.setItem('theme', val ? 'dark' : 'light'));
width: calc(100% - var(--main-content-padding-x) * 2);
flex-grow: 1;
}
.app-wrapper {
min-height: 100vh;
display: flex;
flex-direction: column;
}
</style>