-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddForm.html
More file actions
104 lines (98 loc) · 4.4 KB
/
AddForm.html
File metadata and controls
104 lines (98 loc) · 4.4 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Add a New Book</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<style>
/* Custom Background */
body {
background-image: url('https://wallpaperaccess.com/full/253418.jpg'); /* Replace with your image path */
background-size: cover; /* Ensures the image covers the entire page */
background-repeat: no-repeat;
background-attachment: fixed; /* Keeps the background fixed while scrolling */
background-color: rgba(0, 0, 0, 0.7); /* Dark overlay color for readability */
background-blend-mode: overlay;
color: white; /* Text color for better readability on dark background */
}
.navbar {
background-color: #343a40; /* Dark background for navbar */
}
.form-container {
max-width: 600px;
margin: 50px auto;
padding: 20px;
background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent for a darkened effect */
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}
.card {
transition: transform 0.3s; /* Animation effect */
}
.card:hover {
transform: scale(1.05); /* Scale up on hover */
}
.get-started-btn {
display: block;
text-align: center;
margin-top: 20px;
background-color: #007bff;
color: white;
padding: 10px;
text-decoration: none;
border-radius: 5px;
}
.get-started-btn:hover {
background-color: #0056b3;
}
h1 {
text-align: center;
margin-bottom: 20px;
}
.submit-btn {
width: 100%;
}
</style>
</head>
<body>
<!-- Navigation Bar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Library Management System</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item"><a class="nav-link" href="index.html">Home</a></li>
<li class="nav-item"><a class="nav-link" href="AddForm.html">Add Book</a></li>
<li class="nav-item"><a class="nav-link" href="UpdateForm.html">Update Book</a></li>
<li class="nav-item"><a class="nav-link" href="Reservation.html">Reservation</a></li>
<li class="nav-item"><a class="nav-link" href="ViewBook.html">View Book</a></li>
<li class="nav-item"><a class="nav-link" href="FineCal.html">Fine Calculation</a></li>
<li class="nav-item"><a class="nav-link" href="Contact.html">Contact Info</a></li>
</ul>
</div>
</nav>
<!-- Form Section -->
<div class="form-container">
<h1>Add a New Book</h1>
<form action="insertBook.php" method="POST">
<label for="title">Book Title:</label>
<input type="text" id="title" name="title" class="form-control" required><br>
<label for="author">Author:</label>
<input type="text" id="author" name="author" class="form-control" required><br>
<label for="genre">Genre:</label>
<input type="text" id="genre" name="genre" class="form-control" required><br>
<label for="year">Publication Year:</label>
<input type="number" id="year" name="year" class="form-control" required><br>
<button type="submit" class="btn btn-primary submit-btn">Add Book</button>
</form>
<a href="UpdateForm.html" class="get-started-btn">Update Form</a>
</div>
</body>
</html>