feat: add dice game page

This commit is contained in:
Mikhail Saveliev 2023-12-20 04:53:00 +03:00
parent fc58a1c7eb
commit 0eb96f290e
3 changed files with 26 additions and 2 deletions

View 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>
)
}

View file

@ -1,8 +1,10 @@
import { createBrowserRouter, Navigate, type RouteObject } from 'react-router-dom' import { createBrowserRouter, Navigate, type RouteObject } from 'react-router-dom'
import { AppLayout } from '../components/App' import { AppLayout } from '../components/App'
import {MainPage} from "./MainPage/MainPage.tsx"; import { MainPage } from "./MainPage/MainPage.tsx";
import {NotMainPage} from "./NotMainPage/NotMainPage.tsx"; import { NotMainPage } from "./NotMainPage/NotMainPage.tsx";
import { DiceGamePage } from './DiceGamePage/DiceGamePage.tsx';
const routes: RouteObject[] = [ const routes: RouteObject[] = [
{ {
path: '/', path: '/',
@ -12,6 +14,10 @@ const routes: RouteObject[] = [
path: '/example', path: '/example',
element: <NotMainPage />, element: <NotMainPage />,
}, },
{
path: '/dice',
element: <DiceGamePage />,
},
{ {
path: '*', path: '*',
element: <Navigate replace to={'/'} />, element: <Navigate replace to={'/'} />,

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB