-
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.
- Loading branch information
1 parent
02b0e39
commit 7aca112
Showing
28 changed files
with
88 additions
and
117 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,6 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": "src" | ||
}, | ||
"include": ["src"] | ||
} |
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
Binary file not shown.
Binary file not shown.
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 was deleted.
Oops, something went wrong.
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,22 +1,9 @@ | ||
import { Outlet } from "react-router-dom"; | ||
|
||
export default function App() { | ||
|
||
return ( | ||
// <div className="App"> | ||
// <header className="App-header"> | ||
// <p> | ||
// Edit <code>src/App.js</code> and save to reload. | ||
// </p> | ||
// <a | ||
// className="App-link" | ||
// href="https://reactjs.org" | ||
// target="_blank" | ||
// rel="noopener noreferrer" | ||
// > | ||
// Learn React | ||
// </a> | ||
// </header> | ||
// </div> | ||
null | ||
<> | ||
<Outlet /> | ||
</> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
export { BurgerMenu } from "./BurgerMenu"; |
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 @@ | ||
export { PointMenu } from "./PointMenu"; |
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 @@ | ||
export { ResponsiveImage } from "./ResponsiveImage"; |
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,12 +1,15 @@ | ||
import { NavLink } from "react-router-dom"; | ||
import PropTypes from "prop-types"; | ||
import styles from "./StartGameButton.module.scss"; | ||
|
||
const StartGameButton = ({ title }) => { | ||
export const StartGameButton = ({ title }) => { | ||
return ( | ||
<NavLink to={"/game"} className={styles.button}> | ||
<NavLink to={"/millionaire/game"} className={styles.button}> | ||
{title} | ||
</NavLink> | ||
); | ||
}; | ||
|
||
export default StartGameButton; | ||
StartGameButton.propTypes = { | ||
title: PropTypes.string.isRequired, | ||
}; |
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 @@ | ||
export { StartGameButton } from "./StartGameButton"; |
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,32 +1,33 @@ | ||
import React from "react"; | ||
import ReactDOM from "react-dom/client"; | ||
import { createBrowserRouter, RouterProvider } from "react-router-dom"; | ||
import { MobileProvider } from "Context/MobileProvider"; | ||
import App from "App"; | ||
import { Home } from "pages/Home"; | ||
import { Game } from "pages/Game"; | ||
import { End } from "pages/End"; | ||
import "./styles/main.scss"; | ||
// import App from "./App"; | ||
import reportWebVitals from "./reportWebVitals"; | ||
import { MobileProvider } from "./Context/MobileProvider"; | ||
import Home from "./pages/Home/Home"; | ||
import Game from "./pages/Game/Game"; | ||
import End from "./pages/End/End"; | ||
|
||
const root = ReactDOM.createRoot(document.getElementById("root")); | ||
|
||
const router = createBrowserRouter([ | ||
{ path: "/", element: <Home /> }, | ||
{ path: "/game", element: <Game /> }, | ||
{ path: "/end", element: <End /> }, | ||
{ | ||
path: "millionaire", | ||
element: <App />, | ||
children: [ | ||
{ path: "", element: <Home /> }, | ||
{ path: "game", element: <Game /> }, | ||
{ path: "end", element: <End /> }, | ||
], | ||
}, | ||
]); | ||
|
||
root.render( | ||
<React.StrictMode> | ||
<MobileProvider > | ||
<RouterProvider router={router} /> | ||
{/* <App /> */} | ||
<MobileProvider> | ||
<RouterProvider router={router}> | ||
<App /> | ||
</RouterProvider> | ||
</MobileProvider> | ||
</React.StrictMode> | ||
); | ||
|
||
// If you want to start measuring performance in your app, pass a function | ||
// to log results (for example: reportWebVitals(console.log)) | ||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals | ||
reportWebVitals(); |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
export { End } from "./End"; |
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 @@ | ||
export { Game } from "./Game"; |
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 @@ | ||
export { Home } from "./Home"; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.