top-javascript-projects/library-app/index.html

46 lines
1.6 KiB
HTML
Raw Normal View History

<!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
</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-04 08:18:56 -05:00
<div class="container grid grid-cols-3 gap-4 mx-auto p-6" id="main">
<div class="p-6 border border-slate-300 bg-white rounded-xl shadow-xl flex flex-col gap-x-4">
<h3>Book Title</h3>
<p>Book Author</p>
<p>Total Pages: 300</p>
<p>Have Read</p>
</div>
<div class="p-6 border border-slate-300 bg-white rounded-xl shadow-xl flex flex-col gap-x-4">
<h3>Book Title</h3>
<p>Book Author</p>
<p>Total Pages: 300</p>
<p>Have Read</p>
</div>
</div>
2025-01-04 09:08:58 -05:00
<dialog>
<form>
<label for="title">Book Title</label>
<input type="text" name="title" id="title">
<label for="author">Author</label>
<input type="text" name="author" id="author">
<label for="pages">Total Pages</label>
<input type="number" name="pages" id="pages">
<label for="haveread">Read Book?</label>
<input type="checkbox" name="haveread" id="haveread">
</form>
</dialog>
2025-01-04 08:18:56 -05:00
<script src="js/javascript.js"></script>
</body>
</html>