SSR
All checks were successful
deploy to production / deploy (push) Successful in 1m7s

This commit is contained in:
2023-12-06 20:11:49 +00:00
parent 82f2bf9233
commit d3b36a6716
24 changed files with 166 additions and 119 deletions

View File

@@ -8,7 +8,6 @@
function changeStateOfSite(menuOn: boolean) {
let siteContainer = document.body
show = menuOn
console.log("TEST")
if (menuOn) siteContainer.style.overflow = "hidden"
else siteContainer.style.overflow = "initial"
}
@@ -59,8 +58,9 @@
textElement.style.letterSpacing = `${letterSpacing}px`
}*/
}
window.addEventListener("resize", stretchText)
if (typeof window !== "undefined") {
window.addEventListener("resize", stretchText)
}
onMount(stretchText)
</script>
@@ -186,7 +186,7 @@
<div class="submenu-img">
<img
src="{`${apiBaseURL}navigation/${$navigation?.id}/${submenu.image?.src}?filter=${
window.innerWidth > 500 ? 'xl' : 'm'
window?.innerWidth > 500 ? 'xl' : 'm'
}`}"
alt="img"
/>