-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The boilerplate responsible for casino form supports page, Content, seo
and layout structure
- Loading branch information
1 parent
0121975
commit 4b6dd46
Showing
6 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
'use client' | ||
|
||
const Content = () => { | ||
return <>Casino</> | ||
} | ||
|
||
export default Content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import stack from './stack' | ||
|
||
export default stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const stack = ['React', 'React Custom Hooks', 'zod'] | ||
|
||
export default stack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import layout from '@/components/NextjsLayout' | ||
import generateMetadata from '@/seo/metadata' | ||
|
||
import props from './seo' | ||
|
||
export const metadata = generateMetadata(props) | ||
|
||
export default layout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
'use client' | ||
|
||
import type {NextPage} from 'next' | ||
|
||
import Content from './Content' | ||
|
||
import Layout from '@/components/MainLayout' | ||
import LeftDrawer from '@/components/Drawers/LeftDrawer' | ||
import {menuItems} from '@/menu' | ||
|
||
import {drawerWidth} from '@/config/layout' | ||
import {LayoutProvider} from '@/providers' | ||
|
||
import {title} from './seo' | ||
|
||
const Title = () => { | ||
return <h1>{title}</h1> | ||
} | ||
|
||
const PageContent = () => { | ||
return ( | ||
<LayoutProvider> | ||
<Content /> | ||
</LayoutProvider> | ||
) | ||
} | ||
|
||
const Page: NextPage = () => { | ||
return ( | ||
<Layout | ||
PageContent={PageContent} | ||
HeaderTitle={Title} | ||
drawerWidth={drawerWidth} | ||
LeftDrawer={<LeftDrawer items={menuItems} />} | ||
/> | ||
) | ||
} | ||
|
||
export default Page |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {InternalMetadata} from '@/seo/metadata' | ||
|
||
const title = 'Casino form - technical task' | ||
const description = 'The project represents my skills related with react' | ||
const canonical = '/demos/casino-form' | ||
|
||
const props: InternalMetadata = { | ||
title, | ||
description, | ||
canonical, | ||
} | ||
|
||
export default props | ||
|
||
export {title} |