mirror of
https://github.com/gromlab-ru/slm-design.git
synced 2026-08-22 15:30:16 +03:00
feat: add example
This commit is contained in:
31
examples/demo-frontend/src/app/layout.tsx
Normal file
31
examples/demo-frontend/src/app/layout.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import type { Metadata } from 'next'
|
||||
|
||||
import { AppProviders } from './providers'
|
||||
import type { AppLayoutProps } from './types/app-layout-props.type'
|
||||
import './globals.css'
|
||||
|
||||
/**
|
||||
* Статические metadata архитектурного demo-приложения.
|
||||
*/
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
default: 'Layer Supply',
|
||||
template: '%s / Layer Supply'
|
||||
},
|
||||
description: 'A complete Next.js storefront demonstrating Scoped Layered Module Design.'
|
||||
}
|
||||
|
||||
/**
|
||||
* Корневая Next.js entry point с application-scoped providers.
|
||||
*/
|
||||
export default function RootLayout(props: AppLayoutProps) {
|
||||
const { children } = props
|
||||
|
||||
return (
|
||||
<html lang="en">
|
||||
<body>
|
||||
<AppProviders>{children}</AppProviders>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user