Skip to content

Commit

Permalink
add back button
Browse files Browse the repository at this point in the history
  • Loading branch information
BhartiNagpure committed Jul 20, 2023
1 parent defc53d commit 931be11
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 2 deletions.
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.22.5",
"@babel/standalone": "^7.22.5",
"@fortawesome/fontawesome-free": "^6.4.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.4.3",
Expand Down
5 changes: 5 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@
content="Step into The Nostalgia Gaming Collection and embark on a captivating journey back to the 90s. Relive the excitement and joy of timeless classics such as Tic Tac Toe, Pacman, and more. Let nostalgia be your guide as you are transported to a magical era, reminding you to pause, unwind, and savor the simple pleasures of life. Rediscover the enchantment of gaming's golden age with our carefully curated collection."
/>
<meta property="twitter:image" content="" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"
/>

</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
8 changes: 7 additions & 1 deletion src/Homepage/Homepage/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
font-family: 'Press Start 2p';
align-items: center;
display: flex;
justify-content: space-around;
justify-content:space-around;
margin-top: 10px;
padding: 10px;
}
Expand Down Expand Up @@ -62,4 +62,10 @@
box-shadow: none;
position: relative;
top: .2em;
}

.backicon{
color: aqua;
font-size: 20px;
margin-top: -10px;
}
1 change: 1 addition & 0 deletions src/Homepage/Homepage/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ function Navbargo() {
return (
<React.Fragment>
<div className="body_navbar center">

<div className="video-game-button" onClick={handleAButtonClick}>
A
</div>
Expand Down
6 changes: 5 additions & 1 deletion src/Routes/AllRoutes.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { lazy, Suspense } from "react";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import { BrowserRouter as Router, Route, Routes , Link} from "react-router-dom";
import PacmanLoader from "react-spinners/PacmanLoader";
import TypingMaster from "../Games/typingMaster/typing";


const Homepage = lazy(() => import("../Homepage/Homepage/Homepage"));
const ErrorPage = lazy(() => import("../ErrorPage/ErrorPage"));
const Tictactoe = lazy(() => import("../Games/Tictactoe/tictactoe"));
Expand Down Expand Up @@ -51,6 +52,9 @@ function AllRoutes() {
</div>
}
>
<Link to="/">
<i className="fa fa-arrow-left backicon" />
</Link>
<Routes>
{/* Add all the routes with the right path here after importing them */}
<Route path="/" element={<Homepage />} />
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,11 @@
dependencies:
"@floating-ui/core" "^1.2.6"

"@fortawesome/fontawesome-free@^6.4.0":
"integrity" "sha512-0NyytTlPJwB/BF5LtRV8rrABDbe3TdTXqNB3PdZ+UUUZAEIrdOJdmABqKjt4AXwIoJNaRVVZEXxpNrqvE1GAYQ=="
"resolved" "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.4.0.tgz"
"version" "6.4.0"

"@humanwhocodes/config-array@^0.11.10":
"integrity" "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ=="
"resolved" "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz"
Expand Down

0 comments on commit 931be11

Please sign in to comment.