minor fixes & rework to layouts

This commit is contained in:
degradin 2025-03-16 12:25:12 +03:00
parent 54516a66e9
commit aa7c6300a4
21 changed files with 69 additions and 19 deletions

View File

@ -1,3 +1,20 @@
{
"pages": {}
"pages": {
"/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/page.js"
],
"/layout": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/css/app/layout.css",
"static/chunks/app/layout.js"
],
"/not-found": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/not-found.js"
]
}
}

View File

@ -8,7 +8,10 @@
"static/development/_buildManifest.js",
"static/development/_ssgManifest.js"
],
"rootMainFiles": [],
"rootMainFiles": [
"static/chunks/webpack.js",
"static/chunks/main-app.js"
],
"pages": {
"/_app": []
},

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1 +1,4 @@
{}
{
"/not-found": "app/not-found.js",
"/page": "app/page.js"
}

View File

@ -1 +1 @@
self.__BUILD_MANIFEST={"polyfillFiles":["static/chunks/polyfills.js"],"devFiles":[],"ampDevFiles":[],"lowPriorityFiles":["static/development/_buildManifest.js","static/development/_ssgManifest.js"],"rootMainFiles":[],"pages":{"/_app":[]},"ampFirstPages":[]}
self.__BUILD_MANIFEST={"polyfillFiles":["static/chunks/polyfills.js"],"devFiles":[],"ampDevFiles":[],"lowPriorityFiles":["static/development/_buildManifest.js","static/development/_ssgManifest.js"],"rootMainFiles":["static/chunks/webpack.js","static/chunks/main-app.js"],"pages":{"/_app":[]},"ampFirstPages":[]}

View File

@ -1,16 +1,26 @@
export const metadata = {
title: 'Next.js',
description: 'Generated by Next.js',
}
import type { Metadata } from 'next';
import { Inter } from 'next/font/google';
import { Providers } from './providers';
const inter = Inter({ subsets: ['latin', 'cyrillic'] });
export const metadata: Metadata = {
title: 'Campfire ID',
description: 'Ваш цифровой профиль в Telegram',
};
export default function RootLayout({
children,
}: {
children: React.ReactNode
children: React.ReactNode;
}) {
return (
<html lang="en">
<body>{children}</body>
<html lang="ru">
<body className={inter.className}>
<Providers>
{children}
</Providers>
</body>
</html>
)
);
}

View File

@ -1,10 +1,5 @@
import { ChakraProvider } from '@chakra-ui/react';
import { MainApp } from './components/MainApp';
import MainApp from './components/MainApp';
export default function Home() {
return (
<ChakraProvider>
<MainApp />
</ChakraProvider>
);
return <MainApp />;
}

22
app/providers.tsx Normal file
View File

@ -0,0 +1,22 @@
'use client';
import { ChakraProvider, extendTheme } from '@chakra-ui/react';
const theme = extendTheme({
config: {
initialColorMode: 'light',
useSystemColorMode: false,
},
fonts: {
heading: 'Inter, sans-serif',
body: 'Inter, sans-serif',
},
});
export function Providers({ children }: { children: React.ReactNode }) {
return (
<ChakraProvider theme={theme}>
{children}
</ChakraProvider>
);
}