-
Notifications
You must be signed in to change notification settings - Fork 0
/
addBook.html
143 lines (141 loc) · 4.65 KB
/
addBook.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Readopia - Add Book</title>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9"
crossorigin="anonymous"
/>
<link rel="shortcut icon" href="./readopia.ico" type="image/x-icon" />
<link rel="stylesheet" href="./bshop.css" />
<script
src="https://kit.fontawesome.com/38647df40d.js"
crossorigin="anonymous"
></script>
</head>
<body class="bg-primary user-select-none">
<nav class="navbar navbar-expand-lg bg-body-tertiary fixed-top shadow">
<div class="container-fluid">
<a class="navbar-brand text-primary" href="./home.html"
><i class="fa-solid fa-book-open-reader"></i> Readopia</a
>
<div class="dropdown">
<button
type="button"
class="btn ms-auto me-3 dropdown-toggle"
data-bs-toggle="dropdown"
>
<i class="fa-solid fa-circle-user"></i>
</button>
<div class="dropdown-menu">
<!-- <a href="./setting.html" class="dropdown-item"
><i class="fa-solid fa-gear"></i> Settings</a
>
<hr class="dropdown-divider" /> -->
<a href="./index.html" class="dropdown-item text-danger"
><i class="fa-solid fa-right-from-bracket"></i> Sign Out</a
>
</div>
</div>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav nav-pills ms-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" aria-current="page" href="./home.html"
><i class="fa-solid fa-home"></i> Home</a
>
</li>
<li class="nav-item">
<a
class="nav-link active"
aria-current="page"
href="./addBook.html"
><i class="fa-solid fa-plus"></i> Add Book</a
>
</li>
<li class="nav-item">
<a class="nav-link" href="./search.html"
><i class="fa-solid fa-magnifying-glass"></i> Search Book</a
>
</li>
</ul>
</div>
</div>
</nav>
<div class="container my-5 py-5">
<div class="bg-light shadow rounded p-3">
<h1 class="text-primary text-center mt-5 display-1">Add Book</h1>
<h4 class="text-center mb-5">
Publish a new book to our library
<br />
<span class="text-primary">Sky</span> is the
<span class="text-uppercase">limit</span>
</h4>
<div class="row gap-1">
<div class="col-lg col-sm-12">
<input
type="text"
name="bname"
id="bname"
placeholder="Book Name"
class="form-control mb-3"
/>
</div>
<div class="col-lg col-sm-12">
<input
type="text"
name="author"
id="author"
placeholder="Author"
class="form-control mb-3"
/>
</div>
</div>
<input
type="text"
name="bimg"
id="bimg"
class="form-control mb-3"
placeholder="Cover Image (URL)"
/>
<div id="addBalert" class="mb-3"></div>
<button
type="submit"
onclick="addBook()"
class="btn btn-primary w-100 mb-3"
>
Add Book
</button>
</div>
</div>
<div class="bg-light shadow p-3">
<hr />
<h4 class="text-center text-muted">
<i class="fa-solid fa-book-open-reader"></i> Readopia
</h4>
<p class="text-center text-muted" style="font-size: 8pt">
Made by Anoof Abdul Kadar
</p>
</div>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm"
crossorigin="anonymous"
></script>
<script src="./logic.js"></script>
</body>
</html>