40 lines
1.5 KiB
HTML
40 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Document</title>
|
|
<link rel="stylesheet" href="reset.css">
|
|
<link rel="stylesheet" href="style.css">
|
|
<script src="script.js" defer></script>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
</head>
|
|
<body>
|
|
<dialog>
|
|
<form method="dialog" id="form">
|
|
<section><label for="title">title: </label> <input type="text" name="title" id="title" required></section>
|
|
<section><label for="author">author: </label> <input type="text" name="author" id="author" required></section>
|
|
<section><label for="pages">pages: </label> <input type="number" name="pages" id="pages" required></section>
|
|
<section>
|
|
<label for="">status: </label>
|
|
<input type="radio" name="status" id="yes" value="true" required checked>
|
|
<label for="yes">Read</label>
|
|
<input type="radio" name="status" id="no" value="false">
|
|
<label for="no">Not read yet</label>
|
|
</section>
|
|
<section>
|
|
<button type="submit">Add book</button>
|
|
</section>
|
|
</form>
|
|
</dialog>
|
|
<header>
|
|
<h1>boocks</h1>
|
|
<button type="button" id="new-book">
|
|
<i class="fa-solid fa-plus"></i> New book
|
|
</button>
|
|
</header>
|
|
<div id="books">
|
|
|
|
</div>
|
|
</body>
|
|
</html> |