init: pwa
This commit is contained in:
1 parent
db3a885a55
commit
5470401222
20 files changed
+9060
-351
No files matched your search
@@ -27,6 +27,12 @@ const RootLayout = ({ children }: { children: ReactNode }) => {
|
||||
<html lang='en' data-mode={theme}>
|
||||
<head>
|
||||
<meta name='theme-color' content={theme === 'dark' ? 'hsl(222.2 84% 4.9%)' : 'white'} />
|
||||
<link rel='icon' type='image/png' href='/favicon-48x48.png' sizes='48x48' />
|
||||
<link rel='icon' type='image/svg+xml' href='/favicon.svg' />
|
||||
<link rel='shortcut icon' href='/favicon.ico' />
|
||||
<link rel='apple-touch-icon' sizes='180x180' href='/apple-touch-icon.png' />
|
||||
<meta name='apple-mobile-web-app-title' content='Movie Advisor' />
|
||||
<link rel='manifest' href='/site.webmanifest' />
|
||||
</head>
|
||||
<body className={font.className}>
|
||||
<Providers theme={theme}>
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
import type { MetadataRoute } from 'next';
|
||||
|
||||
const manifest = (): MetadataRoute.Manifest => ({
|
||||
name: 'Movie Advisor',
|
||||
short_name: 'Movie Advisor',
|
||||
description:
|
||||
'Explore a diverse selection of movies with Movie Advisor. Get random movie recommendations and find out top-rated, popular, and user-favorite films.',
|
||||
start_url: '/',
|
||||
display: 'standalone',
|
||||
orientation: 'portrait',
|
||||
background_color: '#ffffff',
|
||||
theme_color: '#000000',
|
||||
icons: [
|
||||
{
|
||||
src: '/web-app-manifest-192x192.png',
|
||||
sizes: '192x192',
|
||||
type: 'image/png'
|
||||
},
|
||||
{
|
||||
src: '/web-app-manifest-512x512.png',
|
||||
sizes: '512x512',
|
||||
type: 'image/png'
|
||||
}
|
||||
]
|
||||
});
|
||||
|
||||
export default manifest;
|
||||
Reference in new issue
Block a user