Merge pull request 'feat: PWA installable' (#69) from feat/pwa into main
All checks were successful
CI / test (push) Successful in 2m3s
All checks were successful
CI / test (push) Successful in 2m3s
This commit is contained in:
commit
5449ec9047
8 changed files with 82 additions and 0 deletions
BIN
public/icons/apple-touch-icon.png
Normal file
BIN
public/icons/apple-touch-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1 KiB |
BIN
public/icons/favicon-32.png
Normal file
BIN
public/icons/favicon-32.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 208 B |
BIN
public/icons/icon-192-maskable.png
Normal file
BIN
public/icons/icon-192-maskable.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1 KiB |
BIN
public/icons/icon-192.png
Normal file
BIN
public/icons/icon-192.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
BIN
public/icons/icon-512-maskable.png
Normal file
BIN
public/icons/icon-512-maskable.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3 KiB |
BIN
public/icons/icon-512.png
Normal file
BIN
public/icons/icon-512.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
60
public/manifest.webmanifest
Normal file
60
public/manifest.webmanifest
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
{
|
||||
"name": "Karbé — carbets fluviaux de Guyane",
|
||||
"short_name": "Karbé",
|
||||
"description": "Au fil de l'eau : louez des carbets le long des fleuves de Guyane.",
|
||||
"start_url": "/decouvrir",
|
||||
"id": "/decouvrir",
|
||||
"scope": "/",
|
||||
"display": "standalone",
|
||||
"orientation": "portrait",
|
||||
"background_color": "#000000",
|
||||
"theme_color": "#059669",
|
||||
"lang": "fr",
|
||||
"categories": ["travel", "lifestyle"],
|
||||
"icons": [
|
||||
{
|
||||
"src": "/icons/icon-192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "/icons/icon-512.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "any"
|
||||
},
|
||||
{
|
||||
"src": "/icons/icon-192-maskable.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
},
|
||||
{
|
||||
"src": "/icons/icon-512-maskable.png",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png",
|
||||
"purpose": "maskable"
|
||||
}
|
||||
],
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": "Au fil de l'eau",
|
||||
"short_name": "Découvrir",
|
||||
"url": "/decouvrir",
|
||||
"icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }]
|
||||
},
|
||||
{
|
||||
"name": "Mes favoris",
|
||||
"short_name": "Favoris",
|
||||
"url": "/mes-favoris",
|
||||
"icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }]
|
||||
},
|
||||
{
|
||||
"name": "Mon compte",
|
||||
"short_name": "Compte",
|
||||
"url": "/mon-compte",
|
||||
"icons": [{ "src": "/icons/icon-192.png", "sizes": "192x192" }]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -52,6 +52,21 @@ export const metadata: Metadata = {
|
|||
},
|
||||
description:
|
||||
"Karbé, la marketplace de location de carbets fluviaux de Guyane.",
|
||||
manifest: "/manifest.webmanifest",
|
||||
applicationName: "Karbé",
|
||||
appleWebApp: {
|
||||
capable: true,
|
||||
statusBarStyle: "black-translucent",
|
||||
title: "Karbé",
|
||||
},
|
||||
icons: {
|
||||
icon: [
|
||||
{ url: "/icons/favicon-32.png", sizes: "32x32", type: "image/png" },
|
||||
{ url: "/icons/icon-192.png", sizes: "192x192", type: "image/png" },
|
||||
{ url: "/icons/icon-512.png", sizes: "512x512", type: "image/png" },
|
||||
],
|
||||
apple: "/icons/apple-touch-icon.png",
|
||||
},
|
||||
openGraph: {
|
||||
type: "website",
|
||||
siteName: "Karbé",
|
||||
|
|
@ -62,6 +77,13 @@ export const metadata: Metadata = {
|
|||
},
|
||||
};
|
||||
|
||||
export const viewport = {
|
||||
themeColor: "#059669",
|
||||
width: "device-width",
|
||||
initialScale: 1,
|
||||
viewportFit: "cover" as const,
|
||||
};
|
||||
|
||||
export default async function RootLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue