project book store code
project book store code
project book store code
doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.c
ss" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuC
OmLASjC" crossorigin="anonymous">
<title>Book Store</title>
<style>
body {
background-color: #f8f9fa;
}
nav {
background: linear-gradient(90deg, #4b79a1, #283e51);
}
.navbar-brand, .nav-link {
color: white !important;
}
h1, h2 {
color: #4b79a1;
}
.table-dark {
background-color: #283e51;
color: white;
}
.btn-primary {
background-color: #4b79a1;
border: none;
animation: blink 1s infinite alternate;
}
.btn-primary:hover {
background-color: #283e51;
}
.fade-in {
animation: fadeIn 2s;
}
.row-appear {
animation: rowAppear 1.5s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes blink {
from {
opacity: 1;
}
to {
opacity: 0.5;
}
}
@keyframes rowAppear {
from {
transform: translateX(-100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light">
<div class="container-fluid">
<a class="navbar-brand" href="#">Book Store</a>
<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 me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page"
href="#">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#available-books">Available
Books</a>
</li>
</ul>
<div>
<a class="nav-link" href="#register-form">New Book Register</a>
</div>
</div>
</div>
</nav>
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.
min.js" integrity="sha384-
MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"></script>
<script>
const bookForm = document.getElementById('bookForm');
const booksTable =
document.getElementById('booksTable').querySelector('tbody');
booksTable.appendChild(newRow);
bookForm.reset();
});
</script>
</body>
</html>