-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathinstructions.tsx
68 lines (65 loc) · 1.85 KB
/
instructions.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import React from "react";
import GitHubButton from "react-github-btn";
import styles from "../styles/instructions.module.scss";
import Button from "./button";
import Score from "./score";
interface Props {
highscore: number;
start: () => void;
}
export default function Instructions(props: Props) {
const { highscore, start } = props;
return (
<div className={styles.instructions}>
<div className={styles.wrapper}>
<h2>Place the cards on the timeline in the correct order.</h2>
{highscore !== 0 && (
<div className={styles.highscoreWrapper}>
<Score score={highscore} title="Best streak" />
</div>
)}
<Button onClick={start} text="Start game" />
<div className={styles.about}>
<div>
All data sourced from{" "}
<a
href="https://www.wikidata.org"
target="_blank"
rel="noopener noreferrer"
>
Wikidata
</a>{" "}
and{" "}
<a
href="https://www.wikipedia.org"
target="_blank"
rel="noopener noreferrer"
>
Wikipedia
</a>
.
</div>
<div>
Have feedback? Please report it on{" "}
<a
href="https://github.com/tom-james-watson/wikitrivia/issues/"
target="_blank"
rel="noopener noreferrer"
>
GitHub
</a>
.
</div>
<GitHubButton
href="https://github.com/tom-james-watson/wikitrivia"
data-size="large"
data-show-count="true"
aria-label="Star tom-james-watson/wikitrivia on GitHub"
>
Star
</GitHubButton>
</div>
</div>
</div>
);
}