-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
48 lines (48 loc) · 1.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Library</title>
<link rel="stylesheet" href="styles.css">
<script src="script.js" defer></script>
</head>
<body>
<div id="background"></div>
<div id="welcome-wrapper">
<h1>Welcome to your library.</h1>
<button type="button" id="start-button" name="start">Start my collection</button>
</div>
<div id="main-wrapper">
<div>
<dialog>
<form method="dialog">
<div>
<label for="title">Book title</label>
<input type="text" id="title" name="title" autocapitalize="on" maxlength="100" required/>
</div>
<div>
<label for="author">Author name</label>
<input type="text" id="author" name="author" autocapitalize="words" maxlength="100" required/>
</div>
<div>
<label for="pages">Number of pages</label>
<input type="number" id="pages" name="pages" required/>
</div>
<div>
<label for="notes">Notes</label>
<textarea id="notes" name="notes"></textarea>
</div>
<div>
<button type="submit" id="confirm" name="confirm">Confirm</button>
<button type="button" id="cancel" name="cancel">Cancel</button>
</div>
</form>
</dialog>
<button type="button" id="add" name="add">Add a new book</button>
<div id="books-container">
</div>
</div>
</div>
</body>
</html>