-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
215 lines (214 loc) · 7.34 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
<!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.0" />
<title>Quiz-App</title>
<link rel="stylesheet" href="./styles.css" />
<!-- added line below to connect with index.js -->
<script src="./index.js" defer></script>
</head>
<body>
<header class="header">
<h1 class="header__title">Quiz-App</h1>
</header>
<main>
<ul class="card-list">
<!--
FIRST CARD
-->
<li class="card-list__item">
<article class="card">
<h2 class="card__question">
In the Kingdom Heart series who provides the english voice for
Master Eraqus?
</h2>
<button
class="card__button-answer"
type="button"
data-js="card__button-answer"
>
Show answer
</button>
<p class="card__answer" data-js="card__answer">Mark Hamill</p>
<ul class="card__tag-list">
<li class="card__tag-list-item">#kingdomheart</li>
<li class="card__tag-list-item">#mastereraqus</li>
<li class="card__tag-list-item">#english voices</li>
</ul>
<div class="card__button-bookmark">
<button
class="bookmark"
aria-label="bookmark"
type="button"
data-js="bookmark"
>
<svg
class="bookmark__icon"
xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 24 24"
>
<path
d="M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"
/>
</svg>
</button>
</div>
</article>
</li>
<!--
SECOND CARD
-->
<li class="card-list__item">
<article class="card">
<h2 class="card__question">
Daniel Radcliffe became a global star in the film industry due to
his performance in which film franchise?
</h2>
<button class="card__button-answer" type="button">
Show answer
</button>
<p class="card__answer card__answer--active">Harry Potter</p>
<ul class="card__tag-list">
<li class="card__tag-list-item">#danielradcliffe</li>
<li class="card__tag-list-item">#hewhomustnotbenamed</li>
<li class="card__tag-list-item">#abracadabra</li>
</ul>
<div class="card__button-bookmark">
<button
class="bookmark bookmark--active"
aria-label="bookmark"
type="button"
>
<svg
class="bookmark__icon"
xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 24 24"
>
<path
d="M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"
/>
</svg>
</button>
</div>
</article>
</li>
<!--
THIRD CARD
-->
<li class="card-list__item">
<article class="card">
<h2 class="card__question">
Which former US president was nicknamed "Teddy" after he
refused to shoot a defenseless black bear?
</h2>
<button class="card__button-answer" type="button">
Show answer
</button>
<p class="card__answer">Theodore Roosevelt</p>
<ul class="card__tag-list">
<li class="card__tag-list-item">#usa</li>
<li class="card__tag-list-item">#president</li>
<li class="card__tag-list-item">#teddybear</li>
</ul>
<div class="card__button-bookmark">
<button class="bookmark" aria-label="bookmark" type="button">
<svg
class="bookmark__icon"
xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 24 24"
>
<path
d="M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2z"
/>
</svg>
</button>
</div>
</article>
</li>
</ul>
</main>
<nav class="navigation">
<ul class="navigation__list">
<li class="navigation__list-item navigation__list-item--active">
<a
class="navigation__link"
href="/index.html"
aria-label="go to home page"
>
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewbox="0 0 24 24"
width="24px"
>
<path
d="M12 5.69l5 4.5V18h-2v-6H9v6H7v-7.81l5-4.5M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z"
/>
</svg>
</a>
</li>
<li class="navigation__list-item">
<a
class="navigation__link"
href="/bookmarks.html"
aria-label="go to bookmarks page"
>
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewbox="0 0 24 24"
width="24px"
>
<path
d="M17 3H7c-1.1 0-2 .9-2 2v16l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"
/>
</svg>
</a>
</li>
<!--adding a new list element in order to add a link
to the form page in the toolbar -->
<li class="navigation__list-item">
<a
class="navigation__link"
href="/form.html"
aria-label="go to add cards page"
>
<!-- svg hierherkopiert von https://pictogrammers.com/library/mdi/icon/plus-box-outline/ ; width hinzugefügt-->
<!-- unter width kann man fill oder stroke einfügen; stroke="red"; oder besser der svg eine cklass zuweisen, die eine fill-Wert bekommt -->
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
width="24px"
>
<title>plus-box-outline</title>
<path
d="M19,19V5H5V19H19M19,3A2,2 0 0,1 21,5V19A2,2 0 0,1 19,21H5A2,2 0 0,1 3,19V5C3,3.89 3.9,3 5,3H19M11,7H13V11H17V13H13V17H11V13H7V11H11V7Z"
/>
</svg>
</a>
</li>
<!-- bis hier isses neu -->
<li class="navigation__list-item">
<a
class="navigation__link"
href="/profile.html"
aria-label="go to profile page"
>
<svg
xmlns="http://www.w3.org/2000/svg"
height="24px"
viewbox="0 0 24 24"
width="24px"
>
<path
d="M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 9c2.7 0 5.8 1.29 6 2v1H6v-.99c.2-.72 3.3-2.01 6-2.01m0-11C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z"
/>
</svg>
</a>
</li>
</ul>
</nav>
</body>
</html>