diff --git a/public/assets/flame-to-dark.lottie b/public/assets/flame-to-dark.lottie index 36e8f98..d600c56 100644 Binary files a/public/assets/flame-to-dark.lottie and b/public/assets/flame-to-dark.lottie differ diff --git a/public/assets/flame-to-light.lottie b/public/assets/flame-to-light.lottie index 51cf995..d8080c1 100644 Binary files a/public/assets/flame-to-light.lottie and b/public/assets/flame-to-light.lottie differ diff --git a/public/assets/roze_barcode_outlined_SVG.svg b/public/assets/roze_barcode_outlined_SVG.svg new file mode 100644 index 0000000..4519fce --- /dev/null +++ b/public/assets/roze_barcode_outlined_SVG.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/assets/zwart_barcode_outlined_SVG.svg b/public/assets/zwart_barcode_outlined_SVG.svg new file mode 100644 index 0000000..26f330b --- /dev/null +++ b/public/assets/zwart_barcode_outlined_SVG.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 4e4a00e..3a1c437 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -15,20 +15,11 @@ import { AboutComponent } from "./about/about.component"; styleUrl: './app.component.scss' }) export class AppComponent { - title = 'ontvlambaar'; - theme = "light" + title = 'Ontvlambaar'; + theme = "dark" private detectColorScheme(): void { - //local storage is used to override OS theme settings - if(localStorage.getItem("theme")){ - if(localStorage.getItem("theme") == "dark"){ - this.theme = "dark"; - } - } else if(window.matchMedia("(prefers-color-scheme: dark)").matches) { - //OS theme setting detected as dark - this.theme = "dark"; - } - + this.theme = localStorage.getItem("theme") ?? 'dark'; document.documentElement.setAttribute("data-theme", this.theme); } diff --git a/src/app/footer/footer.component.html b/src/app/footer/footer.component.html index 8db3f11..d7264d3 100644 --- a/src/app/footer/footer.component.html +++ b/src/app/footer/footer.component.html @@ -5,6 +5,5 @@ BTW BE0673 769 126 -
+