2024-12-30 15:35:21 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Library App</title>
|
|
|
|
<link rel="stylesheet" href="css/styles.css">
|
|
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
2025-01-04 08:18:56 -05:00
|
|
|
|
2024-12-30 15:35:21 -05:00
|
|
|
</head>
|
|
|
|
<body class="bg-gray-50">
|
2025-01-04 09:08:58 -05:00
|
|
|
<div class="min-h-2 flex justify-end align-center p-2">
|
|
|
|
<button class="mr-8 bg-blue-400 p-2 border border-slate-300 rounded-xl text-white" id="addBook">Add Book</button>
|
|
|
|
</div>
|
|
|
|
|
2025-01-05 08:51:02 -05:00
|
|
|
<div class="container grid grid-cols-3 gap-4 mx-auto p-6" id="main"></div>
|
2024-12-30 15:35:21 -05:00
|
|
|
|
2025-01-05 08:51:02 -05:00
|
|
|
<dialog class="w-3/5 p-2 border border-slate-300 rounded-xl">
|
|
|
|
<form class="flex flex-col min-w-full gap-4">
|
|
|
|
<div class="flex gap-4">
|
|
|
|
<label for="title">Book Title</label>
|
|
|
|
<input type="text" name="title" id="title" class="border border-slate-300">
|
|
|
|
</div>
|
|
|
|
<div class="flex gap-4">
|
|
|
|
<label for="author">Author</label>
|
|
|
|
<input type="text" name="author" id="author" class="border border-slate-300">
|
|
|
|
</div>
|
|
|
|
<div class="flex gap-4">
|
|
|
|
<label for="pages">Total Pages</label>
|
|
|
|
<input type="number" name="pages" id="pages" class="border border-slate-300">
|
|
|
|
</div>
|
|
|
|
<div class="flex gap-4">
|
|
|
|
<label for="haveread">Read Book?</label>
|
2025-01-05 09:36:53 -05:00
|
|
|
<input type="checkbox" name="haveread" id="haveread" value="haveread">
|
2025-01-05 08:51:02 -05:00
|
|
|
</div>
|
|
|
|
<input type="submit" value="Add Book" id="submitbook" class="mr-8 bg-blue-400 p-2 border border-slate-300 rounded-xl text-white">
|
2025-01-04 09:08:58 -05:00
|
|
|
</form>
|
|
|
|
</dialog>
|
2025-01-04 08:18:56 -05:00
|
|
|
<script src="js/javascript.js"></script>
|
2024-12-30 15:35:21 -05:00
|
|
|
</body>
|
|
|
|
</html>
|