mirror of
https://github.com/mantinedev/next-app-template.git
synced 2025-11-09 20:12:02 +10:00
Update theme usage and meta tags
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
import '@mantine/core/styles.css';
|
import '@mantine/core/styles.css';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { MantineProvider, ColorSchemeScript } from '@mantine/core';
|
import { MantineProvider, ColorSchemeScript } from '@mantine/core';
|
||||||
|
import { theme } from '../theme';
|
||||||
|
|
||||||
export const metadata = {
|
export const metadata = {
|
||||||
title: 'Mantine Next.js template',
|
title: 'Mantine Next.js template',
|
||||||
@ -13,9 +14,13 @@ export default function RootLayout({ children }: { children: any }) {
|
|||||||
<head>
|
<head>
|
||||||
<ColorSchemeScript />
|
<ColorSchemeScript />
|
||||||
<link rel="shortcut icon" href="/favicon.svg" />
|
<link rel="shortcut icon" href="/favicon.svg" />
|
||||||
|
<meta
|
||||||
|
name="viewport"
|
||||||
|
content="minimum-scale=1, initial-scale=1, width=device-width, user-scalable=no"
|
||||||
|
/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<MantineProvider>{children}</MantineProvider>
|
<MantineProvider theme={theme}>{children}</MantineProvider>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user