-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
9 changed files
with
144 additions
and
58 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,45 @@ | ||
import { createBrowserRouter , RouterProvider } from "react-router-dom"; | ||
import { Login } from "../components/Login"; | ||
const router = createBrowserRouter([ | ||
{ | ||
path:"/", | ||
element:<Login/>, | ||
}, | ||
{ | ||
path:"/Home", | ||
lazy: async () => {let { Home } = await import("../components/Home") | ||
return { Component: Home }}, | ||
}, | ||
{ | ||
path:"/Play", | ||
lazy: async () => {let { Play } = await import("../components/Play") | ||
return { Component: Play }}, | ||
}, | ||
{ | ||
path:"/Settings", | ||
lazy: async () => {let { Setting } = await import("../components/Settings") | ||
|
||
return { Component: Setting }}, | ||
}, | ||
{ | ||
path:"/Lobby", | ||
lazy: async () => {let { Lobby } = await import("../components/Lobby/index") | ||
return { Component: Lobby }}, | ||
}, | ||
{ | ||
path:"/Profile/:id", | ||
lazy: async () => {let { Profile } = await import("../components/Profile") | ||
return { Component: Profile }}, | ||
}, | ||
{ | ||
path:"*", | ||
lazy: async () => {let { Error } = await import("../components/404/") | ||
return { Component: Error }}, | ||
}, | ||
]) | ||
|
||
export const AllRouters = () => { | ||
return ( | ||
<RouterProvider router={router} /> | ||
) | ||
} |
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
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
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,16 @@ | ||
.avatar.myonline:before { | ||
content: ""; | ||
position: absolute; | ||
z-index: 10; | ||
display: block; | ||
border-radius: 9999px; | ||
--tw-bg-opacity: 1; | ||
background-color: hsl(var(--su) / var(--tw-bg-opacity)); | ||
outline-style: solid; | ||
outline-width: 2px; | ||
outline-color: hsl(var(--b1) / 1); | ||
width: 25%; | ||
height: 25%; | ||
bottom: 0; | ||
right: 0; | ||
} |
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,4 @@ | ||
export const Loading = () => { | ||
return (<span className="relative top-14 left-10 loading loading-bars loading-lg"></span>) | ||
|
||
} |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { Chart } from './assets/Chart' | ||
import { Table } from './assets/Table' | ||
export const History = () => { | ||
export const History = (props:any) => { | ||
return ( | ||
<div className='flex flex-col rounded-2xl justify-start items-start mt-6 sm:h-full h-full w-full bg-base-200 overflow-scroll no-scrollbar'> | ||
<div className="flex justify-start items-start pl-2 pt-2 sm:pl-12 sm:pt-12 gap-x-4 py-4"> | ||
<Chart/> <span className='font-montserrat'>Matches History</span> | ||
|
||
</div> | ||
<Table /> | ||
<Table props={props}/> | ||
</div> | ||
) | ||
} |
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
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
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