This commit is contained in:
nub31
2026-03-16 23:50:53 +01:00
parent f686c4a7d2
commit 1e1e829e2d
5 changed files with 26 additions and 8 deletions

View File

@@ -5,12 +5,8 @@
<div class="mt-2 flex flex-col gap-8 md:flex-row md:text-lg">
<div class="flex flex-1 flex-col">
<p class="block pt-2 font-medium opacity-70 md:hidden">
Spørsmål?<br />Kontakt oss via tlf, e-post eller via skjemaet under
</p>
<p class="hidden pt-2 font-medium opacity-70 md:block">
Spørsmål?<br />Kontakt oss via tlf, e-post eller via skjemaet til
høyre
<p class="pt-2 font-medium opacity-70">
Spørsmål?<br />Kontakt oss via tlf eller e-post
</p>
<Link
class="w-fit font-bold text-accent hover:underline"

View File

@@ -2,6 +2,7 @@
import { onDestroy, onMount } from "svelte";
import "leaflet/dist/leaflet.css";
import { twMerge } from "tailwind-merge";
import L from "leaflet";
interface MarkerPoint {
latitude: number;
@@ -15,10 +16,8 @@
let map: L.Map | null = null;
let markers: L.Marker<any>[] = [];
var icon: L.Icon;
let L: typeof import("leaflet/index");
onMount(async () => {
L = await import("leaflet");
icon = L.icon({
iconUrl: "/map_marker.png",

View File

@@ -172,7 +172,9 @@
let { notfound }: Props = $props();
onMount(() => {
// @ts-ignore
if (window.navigation) {
// @ts-ignore
function handleNavigate(event: NavigateEvent) {
event.intercept({
handler: async () => {
@@ -181,9 +183,11 @@
});
}
// @ts-ignore
window.navigation.addEventListener("navigate", handleNavigate);
return () => {
// @ts-ignore
window.navigation.removeEventListener(
"navigate",
handleNavigate,