Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions books.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
[
{
"title": "The Great Gatsby",
"author": "F. Scott Fitzgerald",
"image": "images/gatsby.png",
"genre": "Tragedy",
"year": 1925,
"language": "English"
},
{
"title": "To Kill a Mockingbird",
"author": "Harper Lee",
"image": "images/to-kill-a-mockingbird.png",
"genre": "Southern Gothic",
"year": 1960,
"language": "English"
},
{
"title": "1984",
"author": "George Orwell",
"image": "images/1984.png",
"genre": "Dystopian",
"year": 1949,
"language": "English"
},
{
"title": "Moby Dick",
"author": "Herman Melville",
"image": "images/moby-dick.png",
"genre": "Adventure",
"year": 1851,
"language": "English"
},
{
"title": "The Catcher in the Rye",
"author": "J.D. Salinger",
"image": "images/catcher.png",
"genre": "Realistic",
"year": 1951,
"language": "English"
},
{
"title": "Pride and Prejudice",
"author": "Jane Austen",
"image": "images/pride-and-prejudice.png",
"genre": "Classic Regency",
"year": 1813,
"language": "English"
},
{
"title": "Hiroshima",
"author": "John Hersey",
"image": "images/hiroshima.jpg",
"genre": "Historic",
"year": 1946,
"language": "English"
},
{
"title": "The Hobbit",
"author": "J.R.R. Tolkien",
"image": "images/hobbit.png",
"genre": "Fantasy",
"year": 1937,
"language": "English"
},
{
"title": "Fahrenheit 451",
"author": "Ray Bradbury",
"image": "images/fahrenheit.png",
"genre": "Science Fiction",
"year": 1953,
"language": "English"
},
{
"title": "Енеїда",
"author": "Іван Котляревський",
"image": "images/eneyida.jpeg",
"genre": "Burlesque",
"year": 1798,
"language": "Українська"
},
{
"title": "Кайдашева Сім'я",
"author": "Іван Нечуй-Левицький",
"image": "images/kaydasheva-simya.jpg",
"genre": "Social",
"year": 1879,
"language": "Українська"
}

]
80 changes: 80 additions & 0 deletions favorites.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Online Book Library</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style/style.css">
<script src="./src/main.js" defer></script>
</head>

<body>
<div class="container">
<header class="header mobile-or-normal-display">
<h1 class="header-title mobile-display">Online Library</h1>
<h1 class="header-title normal-display">ONLINE LIBRARY</h1>
<div class="header-actions">
<button class="filter-button">Filter</button>
<button class="sort-button">Sort</button>
</div>
</header>

<header class="header desktop-display">
<h1 class="header-title">Online Book Library</h1>
<div class="desktop-button-container">
<button class="back-to-main-button" onclick="window.location.href='index.html'">Back to main</button>
<button class="sign-in-button">Sign In</button>
</div>
</header>


<main class="main-layout">
<aside class="filter-panel desktop-display">
<h2>Filter</h2>
<section class="filter-group" id="genre-section">
<h3>Genre</h3>
</section>
<section class="filter-group" id="author-section">
<h3>Author</h3>
<input class="author-field" type="text" name="author" placeholder="Enter author">
</section>
<section class="filter-group" id="year-section">
<h3>Year</h3>
</section>
<section class="filter-group" id="language-section">
<h3>Language</h3>
</section>
</aside>
<section class="featured-books">
<div class="mobile-normal-featured-header mobile-or-normal-display">
<h2 class="featured-heading mobile-display">Favorite Books</h2>
<h2 class="featured-heading normal-display">Favorites</h2>
<button class="back-to-main-button" onclick="window.location.href='index.html'">Back to main</button>
</div>

<div class="featured-header desktop-display">
<h2 class="featured-heading">Favorites</h2>

<select class="dropdown" name="sort-options" id="sort-options">
<option value="default">Sort by:</option>
<option value="date-newest">Newest</option>
<option value="date-oldest">Oldest</option>
<option value="genre">Genre</option>
</select>
</div>

<div class="books" id="book-list"></div>
</section>
</main>
</div>
<div class="modal-overlay hidden" id="modal-overlay">
<div class="modal" id="book-modal">
<button class="modal-close" id="modal-close">✖</button>
<div class="modal-content" id="modal-content"></div>
</div>
</div>
</body>
</html>
Binary file added images/1984.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/catcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/eneyida.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/fahrenheit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/gatsby.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/hiroshima.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/hobbit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/kaydasheva-simya.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/moby-dick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/pride-and-prejudice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sapiens.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/to-kill-a-mockingbird.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 73 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,83 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simple HTML Page</title>
<title>Online Book Library</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./style/style.css">
<script src="./src/main.js" defer></script>
</head>

<body>
<div class="container">
<header class="header mobile-or-normal-display">
<h1 class="header-title mobile-display">Online Library</h1>
<h1 class="header-title normal-display">ONLINE LIBRARY</h1>
<div class="header-actions">
<button class="filter-button">Filter</button>
<select class="sort-button dropdown">
<option value="default">Sort</option>
<option value="date-newest">Newest</option>
<option value="date-oldest">Oldest</option>
<option value="genre">Genre</option>
</select>
</div>
</header>

<header class="header desktop-display">
<h1 class="header-title">Online Book Library</h1>
<div class="desktop-button-container">
<button class="favorites-page-button" onclick="window.location.href='favorites.html'">Favorites</button>
<button class="sign-in-button">Sign In</button>
</div>

</header>


<main class="main-layout">
<aside class="filter-panel desktop-display">
<h2>Filter</h2>
<section class="filter-group" id="genre-section">
<h3>Genre</h3>
</section>
<section class="filter-group" id="author-section">
<h3>Author</h3>
<input class="author-field" type="text" name="author" placeholder="Enter author">
</section>
<section class="filter-group" id="year-section">
<h3>Year</h3>
</section>
<section class="filter-group" id="language-section">
<h3>Language</h3>
</section>
</aside>
<section class="featured-books">
<div class="mobile-normal-featured-header mobile-or-normal-display">
<h2 class="featured-heading mobile-display">Featured Books</h2>
<h2 class="featured-heading normal-display">Featured</h2>
<button class="favorites-page-button" onclick="window.location.href='favorites.html'">Favorites</button>
</div>
<div class="featured-header desktop-display">
<h2 class="featured-heading">Featured</h2>

<select class="dropdown" name="sort-options" id="sort-options">
<option value="default">Sort by:</option>
<option value="date-newest">Newest</option>
<option value="date-oldest">Oldest</option>
<option value="genre">Genre</option>
</select>
</div>

<div class="books" id="book-list"></div>
</section>
</main>
</div>
<div class="modal-overlay hidden" id="modal-overlay">
<div class="modal" id="book-modal">
<button class="modal-close" id="modal-close">✖</button>
<div class="modal-content" id="modal-content"></div>
</div>
</div>
</body>
</html>
Loading