41 lines
1.2 KiB
TypeScript
41 lines
1.2 KiB
TypeScript
import type { Metadata, Viewport } from 'next'
|
|
import './globals.css'
|
|
import { InstallPrompt } from '@/components/InstallPrompt'
|
|
import { ServiceWorkerRegister } from '@/components/ServiceWorkerRegister'
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'ALETHEIA — A verdade sobre o que você come',
|
|
description: 'Escaneie qualquer produto e nossa IA revela o que a indústria alimentícia esconde nos rótulos.',
|
|
// manifest moved to head link
|
|
appleWebApp: {
|
|
capable: true,
|
|
statusBarStyle: 'black-translucent',
|
|
title: 'ALETHEIA',
|
|
},
|
|
other: {
|
|
'mobile-web-app-capable': 'yes',
|
|
},
|
|
}
|
|
|
|
export const viewport: Viewport = {
|
|
themeColor: '#1A7A4C',
|
|
width: 'device-width',
|
|
initialScale: 1,
|
|
maximumScale: 1,
|
|
}
|
|
|
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
return (
|
|
<html lang="pt-BR" className="dark">
|
|
<head>
|
|
<link rel="manifest" href="/manifest.json" /><link rel="apple-touch-icon" href="/icons/icon-192.png" />
|
|
</head>
|
|
<body className="bg-dark text-white min-h-screen antialiased">
|
|
{children}
|
|
<InstallPrompt />
|
|
<ServiceWorkerRegister />
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|