-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
117 lines (97 loc) · 5.07 KB
/
index.html
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Donutspell: A word game for 6-9 year olds. Save the donut before Ripley the dog eats them by guessing the hidden words.">
<meta name="keywords" content="word game, spelling, key stage 1, key stage 2, uk curriculum, primary education">
<title>Donutspell | Home</title>
<!-- Main stylesheet -->
<link rel="stylesheet" href="assets/css/style.css">
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicons/favicon-16x16.png">
</head>
<body>
<!-- Wrapper for the grid layout -->
<div class="wrapper">
<header>
<!-- Logo -->
<div id="logo">
<h1><a href="index.html"><img src="assets/images/donut-logo.svg" alt="Illustrated donut"> Donutspell</a></h1>
</div>
<!-- Main navigation -->
<nav id="main-nav">
<ul class="nav">
<li class="nav__item nav__item--active"><a href="index.html"><i class="ph-house-fill ph-fw"></i>Home</a></li>
<li class="nav__item"><a href="contact.html"><i class="ph-envelope-simple-fill ph-fw"></i>Contact</a></li>
</ul>
</nav>
</header>
<div class="main">
<!-- Initial content -->
<section id="content--home">
<!-- Introduction to the game -->
<div class="intro">
<h2>Save donuts from Ripley the dog!</h2>
<p>A word game for 6-9 year olds. Save the donut before Ripley eats it, by guessing the words correctly.</p>
</div>
<!-- Level selection box -->
<div class="choose-level white-box">
<p>Choose a level to get started</p>
<button id="easy" class="level">Easy</button>
<button id="medium" class="level">Tricky</button>
<button id="hard" class="level">Difficult</button>
</div>
</section>
<!-- Game content -->
<section id="content--game">
<div class="game-grid">
<!-- How to play the game -->
<div class="intro">
<h2 id="game-title">Guess the word!</h2>
<p id="game-text">Type or click on the letters below to spell the hidden word. Guess correctly to keep the donut for yourself!</p>
<p id="game-word">Word to be guessed goes here</p>
<!-- Word hints, fetched from an API -->
<div id="hint"></div>
<!-- Restart game button, hidden by default -->
<a id="restart" href="index.html" class="button">Play again</a>
</div>
<div class="donut--game white-box">
<!-- Remaining incorrect guesses-->
<div class="remaining-donut">Donut left: <span id="percent">100</span>% of 100%</div>
<img id="donut" src="assets/images/donut-100.svg" alt="Illustration of a donut">
</div>
<!-- The game keyboard -->
<div id="keyboard"></div>
</div>
</section>
</div>
<!-- Illustration of Ripley the dog -->
<div class="ripley">
<img src="assets/images/ripley.svg" alt="Ripley the dog" id="ripley">
</div>
<!-- Footer -->
<footer>
<div class="social">
<!-- Social media link icons -->
<ul class="social__links">
<li><a href="https://www.facebook.com/" target="_blank" rel="noopener" aria-label="Facebook"><i class="ph-facebook-logo-fill ph-xl"></i></a></li>
<li><a href="https://www.instagram.com/" target="_blank" rel="noopener" aria-label="Instagram"><i class="ph-instagram-logo-fill ph-xl"></i></a></li>
<li><a href="https://twitter.com/" target="_blank" rel="noopener" aria-label="Twitter"><i class="ph-twitter-logo-fill ph-xl"></i></a></li>
</ul>
</div>
</footer>
</div>
<!-- Game script -->
<script src="assets/js/words.js"></script>
<script src="assets/js/game.js"></script>
<script src="assets/js/app.js"></script>
<!-- Phosphor icons - powering the social media icons -->
<script src="https://unpkg.com/phosphor-icons"></script>
<!-- Confetti script - https://github.com/catdad/canvas-confetti -->
</body>
</html>