-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
160 lines (149 loc) · 5.05 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="description" content="Library Project using Javascript" />
<meta name="keywords" content="HTML, CSS, JavaScript" />
<meta name="author" content="Library" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
/>
<link
href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<section class="books">
<div class="container">
<div class="row">
<div class="col-lg-12 col-sm-12 text-center">
<!-- <h1 class="sec-title">Library Project</h1> -->
</div>
<div class="col-lg-12 col-sm-12 text-right text-xs-center mb-4">
<a
class="btn btn-primary"
href="javascript:void(0);"
data-target="#add_new"
data-toggle="modal"
>Add new book</a
>
</div>
</div>
<div class="row myRow">
<!-- <div class="col-lg-4 col-sm-4 col-xs-12 mb-3">
<div class="card">
<figure></figure>
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">
Some quick example text to build on the card title and make up
the bulk of the card's content.
</p>
<div class="btns">
<a href="javascript:void(0);" class="btn status btn-primary"
>Read</a
>
<a class="delete btn btn-danger" href="javascript:void(0);"
><i class="fa fa-trash-alt"></i>Delete</a
>
</div>
</div>
</div>
</div> -->
</div>
</div>
</section>
<!-- Modal -->
<div
class="modal fade"
id="add_new"
tabindex="-1"
role="dialog"
aria-labelledby="exampleModalLabel"
aria-hidden="true"
>
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Add new book</h5>
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form class="add_book">
<div class="row">
<div class="col-lg-12 col-sm-12">
<input
required
class="form-control"
type="text"
name="title"
placeholder="Title"
/>
</div>
<div class="col-lg-12 col-sm-12">
<input
required
class="form-control"
type="text"
name="author"
placeholder="Author"
/>
</div>
<div class="col-lg-12 col-sm-12">
<input
required
class="form-control"
type="number"
name="pages"
min="0"
placeholder="Number of pages"
/>
</div>
<div class="col-lg-12 col-sm-12">
<select class="form-control" name="status">
<option disabled>Reading status</option>
<option>Want to read</option>
<option>Already read</option>
</select>
</div>
<div class="col-lg-12 col-sm-12">
<textarea
class="form-control"
name="details"
placeholder="Tell us a little about this book"
></textarea>
</div>
<div class="col-lg-12 col-sm-12 text-center">
<button type="submit" class="btn btn-primary">
Add book
</button>
</div>
</div>
</form>
<div class="alert alert-success d-none mt-4">
New book successfully added!
</div>
</div>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<script src="script.js"></script>
</body>
</html>