-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.tsx
51 lines (47 loc) · 1.39 KB
/
app.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import styles from './app.module.scss';
import { Route, Routes } from 'react-router-dom';
import Game from './components/game/game';
import Home from './components/home/home';
import Rules from './components/rules/rules';
import End from './components/end/end';
import Error from './components/error/error';
export function App() {
return (
<>
<header>
<img
className={styles['elastic-logo']}
alt="Elastic Logo"
src="logo-elastic-horizontal-color-reverse.svg"
/>
<h1 className={styles['games-title']}>
<a href='/'>Fu-Finder</a></h1>
</header>
<main>
<Routes>
<Route path="/" element={<Home />}/>
<Route path="/play" element={<Game />} errorElement={<Error />}/>
<Route path="/rules" element={<Rules />} />
<Route path="/end" element={<End />} />
<Route path="/error" element={<Error />} />
</Routes>
</main>
<footer>
Made by Carly Richmond{' '}
<span aria-label="avocado" role="img">
🥑
</span>{' '}
with{' '}
<span aria-label="heart" role="img">
💜
</span>{' '}
and{' '}
<span aria-label="heart" role="img">
🍵
</span>
</footer>
</>
);
}
export default App;