Disable SPA router for browsers without View Transition support

This commit is contained in:
Mikkel Svartveit 2023-10-30 23:34:29 -07:00
parent 501faf1ef8
commit c588aadb61

View file

@ -26,7 +26,7 @@ const fullTitle = `${title ? title + " " : ""}Mikkel Svartveit`;
"Hi, I'm Mikkel! I am a Computer Science student from Norway and this is my playground. Here you will find some programming projects, and a small collection of photos I'm proud of."} "Hi, I'm Mikkel! I am a Computer Science student from Norway and this is my playground. Here you will find some programming projects, and a small collection of photos I'm proud of."}
/> />
<meta name="theme-color" content={themeColor ?? "#facc15"} /> <meta name="theme-color" content={themeColor ?? "#facc15"} />
<ViewTransitions fallback="swap" /> <ViewTransitions fallback="none" />
</head> </head>
<body class={`bg-gray-50 ${hideScrollbar ? "" : "overflow-y-scroll"}`}> <body class={`bg-gray-50 ${hideScrollbar ? "" : "overflow-y-scroll"}`}>