feat: add dice game page
This commit is contained in:
parent
fc58a1c7eb
commit
0eb96f290e
3 changed files with 26 additions and 2 deletions
18
frontend/casino/src/app/pages/DiceGamePage/DiceGamePage.tsx
Normal file
18
frontend/casino/src/app/pages/DiceGamePage/DiceGamePage.tsx
Normal file
|
@ -0,0 +1,18 @@
|
|||
import ContainerLayout from "../../utils/ContainerLayout"
|
||||
|
||||
export const DiceGamePage = () => {
|
||||
return (
|
||||
<ContainerLayout>
|
||||
<p className="text-white text-[46px] font-bold uppercase">
|
||||
брось кубики онлайн!
|
||||
</p>
|
||||
<div className="justify-center flex">
|
||||
<div className="absolute w-[710px] h-[456px] bg-lime-800 rounded-[187px] blur-[300px]" />
|
||||
</div>
|
||||
<div className="flex flex-row min-w-full justify-center gap-10 relative mt-12">
|
||||
<img src="src/assets/img/dice-img.png" alt="Dice" />
|
||||
<img src="src/assets/img/dice-img.png" alt="Dice" />
|
||||
</div>
|
||||
</ContainerLayout>
|
||||
)
|
||||
}
|
|
@ -1,8 +1,10 @@
|
|||
import { createBrowserRouter, Navigate, type RouteObject } from 'react-router-dom'
|
||||
|
||||
import { AppLayout } from '../components/App'
|
||||
import {MainPage} from "./MainPage/MainPage.tsx";
|
||||
import {NotMainPage} from "./NotMainPage/NotMainPage.tsx";
|
||||
import { MainPage } from "./MainPage/MainPage.tsx";
|
||||
import { NotMainPage } from "./NotMainPage/NotMainPage.tsx";
|
||||
import { DiceGamePage } from './DiceGamePage/DiceGamePage.tsx';
|
||||
|
||||
const routes: RouteObject[] = [
|
||||
{
|
||||
path: '/',
|
||||
|
@ -12,6 +14,10 @@ const routes: RouteObject[] = [
|
|||
path: '/example',
|
||||
element: <NotMainPage />,
|
||||
},
|
||||
{
|
||||
path: '/dice',
|
||||
element: <DiceGamePage />,
|
||||
},
|
||||
{
|
||||
path: '*',
|
||||
element: <Navigate replace to={'/'} />,
|
||||
|
|
BIN
frontend/casino/src/assets/img/dice-img.png
Normal file
BIN
frontend/casino/src/assets/img/dice-img.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 34 KiB |
Loading…
Reference in a new issue