top-javascript-projects/library-app/index.html
2025-01-05 09:36:53 -05:00

41 lines
No EOL
1.7 KiB
HTML

<!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>
</head>
<body class="bg-gray-50">
<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>
<div class="container grid grid-cols-3 gap-4 mx-auto p-6" id="main"></div>
<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>
<input type="checkbox" name="haveread" id="haveread" value="haveread">
</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">
</form>
</dialog>
<script src="js/javascript.js"></script>
</body>
</html>