Transforme le site en progressive web app
Ajoute un service worker (réseau d'abord, page hors ligne en secours), les icônes PNG dont une maskable, un manifeste complet et les balises iOS pour l'installation sur l'écran d'accueil. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
48e807ddce
commit
2346deab3c
8 files changed
+157
-1
No files matched your search
@@ -32,6 +32,9 @@ pub fn shell(options: LeptosOptions) -> impl IntoView {
|
||||
<AutoReload options=options.clone() />
|
||||
<HydrationScripts options />
|
||||
<MetaTags />
|
||||
<script>
|
||||
"if ('serviceWorker' in navigator) navigator.serviceWorker.register('/sw.js');"
|
||||
</script>
|
||||
</head>
|
||||
<body class="bg-lime text-ink font-sans antialiased">
|
||||
<App />
|
||||
@@ -55,7 +58,11 @@ pub fn App() -> impl IntoView {
|
||||
/>
|
||||
<Link rel="manifest" href="/manifest.webmanifest" />
|
||||
<Link rel="icon" href="/favicon.svg" type_="image/svg+xml" />
|
||||
<Link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
|
||||
<Meta name="theme-color" content="#bfe383" />
|
||||
<Meta name="mobile-web-app-capable" content="yes" />
|
||||
<Meta name="apple-mobile-web-app-title" content="Lisette" />
|
||||
<Meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
||||
<Title text="Lisette" />
|
||||
|
||||
<Router>
|
||||
|
||||
Reference in new issue
Block a user