Skip to content

Commit

Permalink
The boilerplate responsible for casino form supports page, Content, seo
Browse files Browse the repository at this point in the history
and layout structure
  • Loading branch information
dimitardanailov committed Aug 6, 2024
1 parent 0121975 commit 4b6dd46
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 0 deletions.
7 changes: 7 additions & 0 deletions apps/website/src/app/demos/casino-form/Content.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use client'

const Content = () => {
return <>Casino</>
}

export default Content
3 changes: 3 additions & 0 deletions apps/website/src/app/demos/casino-form/db/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import stack from './stack'

export default stack
3 changes: 3 additions & 0 deletions apps/website/src/app/demos/casino-form/db/stack.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const stack = ['React', 'React Custom Hooks', 'zod']

export default stack
8 changes: 8 additions & 0 deletions apps/website/src/app/demos/casino-form/layout.ts
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
39 changes: 39 additions & 0 deletions apps/website/src/app/demos/casino-form/page.tsx
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
15 changes: 15 additions & 0 deletions apps/website/src/app/demos/casino-form/seo.ts
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}

0 comments on commit 4b6dd46

Please sign in to comment.