-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
142 lines (133 loc) · 4.5 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
<!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">
<meta name="description" content="A library application to store your books">
<style>
/* import Bulma */
@import "https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css";
</style>
<title>Library</title>
</head>
<body>
<header class="container">
<nav class="navbar" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<figure class="image is-32x32 mt-4 ml-2">
<img src="assets/library-outline.svg" alt="library symbol as a logo" width="32px" height="32px">
</figure>
<h1 class="navbar-item title mb-0">
Library
</h1>
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div id="navbarBasicExample" class="navbar-menu">
<div class="navbar-start">
<p class="navbar-item">
A vanilla JS project from <strong> The Odin Project </strong> curriculum.
</p>
</div>
<div class="navbar-end">
<div class="navbar-item">
<div class="buttons">
<a class="button is-light" href="https://github.com/mohammedsobhi">
<span class="icon">
<figure class="image is-16x16">
<img src="assets/logo-github.svg">
</figure>
</span>
<span>my GitHub</span>
</a>
<a class="button" href="https://github.com/mohammedsobhi/TOP-library">
<span class="icon">
<figure class="image is-16x16">
<img src="assets/logo-github.svg">
</figure>
</span>
<span>Source code</span>
</a>
</div>
</div>
</div>
</div>
</nav>
</header>
<main class="container is-max-desktop mt-4">
<div class="card mb-5">
<div class="card-content">
<p class="title is-4">
Add new book
</p>
<form>
<div class="columns">
<div class="column field mb-0">
<label class="label" for="book">Book</label>
<div class="control">
<input class="input" id="book" name="book" type="text" placeholder="Text input">
</div>
</div>
<div class="column field mb-0">
<label class="label" for="author">Author</label>
<div class="control">
<input class="input" id="author" name="author" type="text" placeholder="Text input">
</div>
</div>
<div class="column is-2 field mb-0">
<label class="label" for="pages">Pages</label>
<div class="control">
<input class="input" id="pages" name="pages" type="number" placeholder="Text input" step="1">
</div>
</div>
<div class="column is-2 field mb-0">
<label class="label" for="statue">Statue</label>
<div class="control">
<div class="select">
<select id="statue" name="statue">
<option value="read">read</option>
<option value="not read">not read</option>
</select>
</div>
</div>
</div>
</div>
<div class="field">
<div class="control">
<button class="button is-dark" >
Submit
</button>
</div>
</div>
</form>
</div>
</div>
<div class="container">
<h2 class="title ml-2">
my Books
</h2>
<div class="table-container">
<table class="table is-fullwidth is-striped books">
<thead>
<tr>
<th>Book</th>
<th>Author</th>
<th>Pages</th>
<th>Statue</th>
<th>Delete</th>
</tr>
</thead>
<tbody id="books_container">
</tbody>
</table>
</div>
</div>
</main>
<script src="ui.js"></script>
<script src="app.js"></script>
</body>
</html>