layout
This commit is contained in:
parent
68a3a51337
commit
b019401fb8
2 changed files with 7 additions and 6 deletions
|
|
@ -41,6 +41,7 @@
|
||||||
font-family: 'Stratos';
|
font-family: 'Stratos';
|
||||||
src: url('/fonts/Stratos-BoldItalic.woff2') format('woff2');
|
src: url('/fonts/Stratos-BoldItalic.woff2') format('woff2');
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
font-style: italic;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,11 +12,11 @@
|
||||||
pathname: string;
|
pathname: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
// onMount(() => {
|
||||||
// console.log('layout mounted');
|
// // console.log('layout mounted');
|
||||||
// Set initial random background color on first load
|
// // Set initial random background color on first load
|
||||||
setRandomBgColor();
|
// setRandomBgColor();
|
||||||
});
|
// });
|
||||||
|
|
||||||
let { children }: { children: Snippet } = $props();
|
let { children }: { children: Snippet } = $props();
|
||||||
|
|
||||||
|
|
@ -69,7 +69,7 @@
|
||||||
showLoader = false;
|
showLoader = false;
|
||||||
|
|
||||||
// Change background color on route change
|
// Change background color on route change
|
||||||
setRandomBgColor();
|
// setRandomBgColor();
|
||||||
|
|
||||||
// only show if navigation takes >150ms
|
// only show if navigation takes >150ms
|
||||||
timer = setTimeout(() => {
|
timer = setTimeout(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue