Skip to content

Commit

Permalink
Merge pull request #60 from microsoft/anpethel/howToPlay
Browse files Browse the repository at this point in the history
creating How to play screen
  • Loading branch information
andrewpethel authored Sep 20, 2024
2 parents e6a7f3f + c48e43b commit 4058e42
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Client/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@ import { AdminScreen } from "./screens/AdminScreen/AdminScreen";
import { AboutScreen } from "./screens/AboutScreen/AboutScreen";
import { PartnersScreen } from "./screens/PartnersScreen/PartnersScreen";
import { ContactUsScreen } from "./screens/ContactUsScreen/ContactUsScreen";
import { HowToPlayScreen } from "./screens/HowToPlayScreen";

function App() {
return (
<Layout>
<Routes>
<Route path="/" element={<StartScreen />} />
<Route path="/career-game" element={<GameScreen />} />
<Route path="/howToPlay" element={<HowToPlayScreen />} />
<Route
path="/career-game/results"
element={<ResultScreen />}
Expand Down
5 changes: 5 additions & 0 deletions Client/src/components/Layout/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ export function Header(): React.ReactElement {
Career game
</Link>
</li>
<li className="nav-list-item">
<Link to="/howToPlay" title="How to play">
How to play
</Link>
</li>
<li className="nav-list-item">
<Link to="/about" title="Go to CareerCraft About Us page">
About Us
Expand Down
28 changes: 28 additions & 0 deletions Client/src/screens/HowToPlayScreen/HowToPlayScreen.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from "react";
import { H1 } from "../../components/Typography";
import { H2 } from "../../components/Typography";
import { usePageTracking } from "../../hooks/usePageTracking";

export function HowToPlayScreen(): React.ReactElement {
usePageTracking("HowToPlayScreen");

return (
<div>
<H1>How To Play</H1>
<div className="game-screen-margin-top">
<H2>Guidance</H2>
<p>
This game helps you explore career options and
gain valuable skillsets along the way. To get
started, please enter your first name, a career
that interests you how many rounds you want to
play. Each round will consist of a Scenario and
3 Options for you to choose from that will lead
to the next Scenario. After all the rounds finish,
we will recap the learnings. Have fun and happy
learning! Look for a surprise at the end as well.
</p>
</div>
</div>
);
}
1 change: 1 addition & 0 deletions Client/src/screens/HowToPlayScreen/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./HowToPlayScreen";

0 comments on commit 4058e42

Please sign in to comment.