-
Notifications
You must be signed in to change notification settings - Fork 0
/
_app.tsx
34 lines (31 loc) · 880 Bytes
/
_app.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { ComponentChildren } from "preact";
import { asset as asset, Head as Head } from "@deco/deco/htmx";
export const Layout = ({ children, revision, hmrUniqueId }: {
children: ComponentChildren;
revision: string;
hmrUniqueId: string;
}) => {
return (
<>
{/* Include Icons and manifest */}
{/** @ts-ignore: ignore error */}
<Head>
{/* Enable View Transitions API */}
<style
dangerouslySetInnerHTML={{
__html: `@view-transition { navigation: auto; }`,
}}
/>
{/* Tailwind v3 CSS file */}
<link
href={`/styles.css?revision=${revision}${hmrUniqueId}`}
rel="stylesheet"
/>
{/* Web Manifest */}
<link rel="manifest" href={asset("/site.webmanifest")} />
</Head>
{/* Rest of Preact tree */}
{children}
</>
);
};