-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.html
110 lines (106 loc) · 3.15 KB
/
form.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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Neue Frage hinzufügen</title>
<link rel="stylesheet" href="./styles.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
<script src="./index.js" defer></script>
<script src="./form.js" defer></script>
</head>
<body>
<header>
<h1>Quiz App</h1>
</header>
<main class="content_container">
<section class="add-question">
<fieldset id="fieldset" data-js="fieldset">
<h2>Neue Karte erstellen</h2>
<form id="add-question-form" data-js="add-question-form">
<label for="question">Deine Frage:</label>
<textarea
id="question"
name="question"
data-js="question"
title="Deine Frage"
maxlength="150"
rows="5"
cols="40"
required
></textarea>
<small class="char-count" data-for="question"
>150 Zeichen übrig</small
>
<label for="answer">Deine Antwort:</label>
<textarea
id="answer"
name="answer"
data-js="answer"
title="Deine Antwort"
maxlength="150"
rows="5"
cols="40"
required
></textarea>
<small class="char-count" data-for="answer"
>150 Zeichen übrig</small
>
<label for="tags">Tag:</label>
<input type="text" data-js="tags" id="tags" name="tags" />
<button type="submit">Karte hinzufügen</button>
</form>
</fieldset>
</section>
</main>
<footer>
<nav aria-label="Main navigation">
<ul>
<li>
<a
href="./index.html"
class="nav-button"
aria-label="Startseite"
title="Startseite"
><i class="fa-sharp fa-solid fa-house fa-2xl"></i
></a>
</li>
<li>
<a
href="bookmarks.html"
class="nav-button"
aria-label="Lesezeichen"
title="Lesezeichen"
><i class="fa-regular fa-bookmark fa-2xl"></i
></a>
</li>
<li>
<!-- Hier wird das neue Icon hinzugefügt, das zur Form verlinkt -->
<a
href="form.html"
class="nav-button"
aria-label="Neue Karte erstellen"
title="Neue Karte erstellen"
><i
class="fa-solid fa-circle-plus fa-2xl"
style="color: #74c0fc"
></i
></a>
</li>
<li>
<a
href="profile.html"
class="nav-button"
aria-label="Profil"
title="Profilseite"
><i class="fa-solid fa-user fa-2xl"></i
></a>
</li>
</ul>
</nav>
</footer>
</body>
</html>