Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On.book - project library #51

Open
wants to merge 48 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 47 commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
e0813d7
first draft
jacquelinekellyhunt Sep 16, 2024
622ca03
dropdown sort menu
zoe-lindqvist Sep 17, 2024
068cc7d
Added our own list of books to js
jacquelinekellyhunt Sep 17, 2024
d586a0e
Merge pull request #1 from jacquelinekellyhunt/kellybranch
jacquelinekellyhunt Sep 17, 2024
cf3cee6
functionality on dropdown sort btn
zoe-lindqvist Sep 17, 2024
1f45c3e
Added the right label to the right book
jacquelinekellyhunt Sep 17, 2024
99502ba
Merge pull request #2 from jacquelinekellyhunt/kellybranch
jacquelinekellyhunt Sep 17, 2024
7e71952
added the given books
zoe-lindqvist Sep 17, 2024
9cacd8b
uneven book titles in progress
zoe-lindqvist Sep 17, 2024
ef63c2d
test
zoe-lindqvist Sep 17, 2024
2557fa7
Merge remote-tracking branch 'origin/main' into zoeBranch
zoe-lindqvist Sep 17, 2024
e78ecf2
Merge pull request #4 from jacquelinekellyhunt/zoeBranch
zoe-lindqvist Sep 17, 2024
e851e0b
dropdown menu
zoe-lindqvist Sep 17, 2024
1ce1376
Merge pull request #5 from jacquelinekellyhunt/zoeBranch
zoe-lindqvist Sep 17, 2024
3d34dcd
arrow functions
zoe-lindqvist Sep 17, 2024
77b450d
Merge pull request #6 from jacquelinekellyhunt/zoeBranch
zoe-lindqvist Sep 17, 2024
04b3016
tried adding a filter-function
Fannyhenriques Sep 17, 2024
9da9b62
resolved merge conflict
Fannyhenriques Sep 17, 2024
d791dfd
Merge branch 'zoeBranch'
zoe-lindqvist Sep 18, 2024
cfa40ae
Added new book data to the library and media queries
zoe-lindqvist Sep 18, 2024
abc7f27
Add search bar
jacquelinekellyhunt Sep 18, 2024
dc98937
Removed some books
jacquelinekellyhunt Sep 18, 2024
c11806f
Updated responsive design for multiple screen sizes
zoe-lindqvist Sep 18, 2024
597c8e6
Add Search function
jacquelinekellyhunt Sep 18, 2024
8ab306a
Change the Button styling
jacquelinekellyhunt Sep 18, 2024
92b5304
Merge pull request #7 from jacquelinekellyhunt/searchFunction
jacquelinekellyhunt Sep 18, 2024
3894f60
h2 to p
jacquelinekellyhunt Sep 18, 2024
3d62ee0
media queries
zoe-lindqvist Sep 18, 2024
500621c
Merge remote-tracking branch 'origin/main' into zoeBranch
zoe-lindqvist Sep 18, 2024
5e750cc
Merge branch 'main' of https://github.com/jacquelinekellyhunt/project…
zoe-lindqvist Sep 18, 2024
f2c6b42
"Media queries on small screens"
zoe-lindqvist Sep 18, 2024
70545ee
"debug"
zoe-lindqvist Sep 18, 2024
24c79cd
update
zoe-lindqvist Sep 18, 2024
7f7427d
update
zoe-lindqvist Sep 18, 2024
50482e5
Merge branch 'main' of https://github.com/jacquelinekellyhunt/project…
zoe-lindqvist Sep 18, 2024
7155521
css update
zoe-lindqvist Sep 18, 2024
0b8a197
responsive breakpoints
zoe-lindqvist Sep 18, 2024
19e739a
Merge pull request #8 from jacquelinekellyhunt/zoeBranch
zoe-lindqvist Sep 18, 2024
23afd30
Inner CSS
jacquelinekellyhunt Sep 19, 2024
bf2ebdf
Merge pull request #9 from jacquelinekellyhunt/innerCSS
jacquelinekellyhunt Sep 19, 2024
30aa0f7
hide navbar for small screens
zoe-lindqvist Sep 19, 2024
076e981
Merge branch 'zoeBranch'
zoe-lindqvist Sep 19, 2024
e5cad39
commented out redundant code and added filterfunction for genre
Fannyhenriques Sep 20, 2024
9491046
Last version
zoe-lindqvist Sep 22, 2024
077f01a
Update README.md
zoe-lindqvist Sep 22, 2024
9c3ba5a
Update README.md
zoe-lindqvist Sep 22, 2024
ff09add
Update pull_request_template.md
zoe-lindqvist Sep 22, 2024
a9b69f2
Change from keyword to arrow function
jacquelinekellyhunt Sep 30, 2024
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
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
# project-library
# project-library

On.Book is a dynamic website that displays and interacts with a curated array of books. The project addresses the problem by offering an intuitive interface where users can view, filter, sort, and search for books based on various criteria.

# Technologies Used:

- HTML: Structure the content.
- CSS: Style the interface.
- JavaScript: Implement dynamic functionality like filtering, sorting, and random selection of items.

# View it live

https://on-book.netlify.app/
Binary file removed books-images/1984.jpg
Binary file not shown.
Binary file added books-images/alchemist.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 books-images/book1.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 books-images/book10.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 books-images/book11.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 books-images/book12.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 books-images/book2.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 books-images/book3.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 books-images/book4.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 books-images/book5.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 books-images/book6.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 books-images/book7.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 books-images/book8.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 books-images/book9.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 removed books-images/harry-potter-and-the-sorcerer.jpg
Binary file not shown.
Binary file added books-images/little-women.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 removed books-images/moby-dick.jpg
Binary file not shown.
Binary file removed books-images/pride-and-prejudice.jpg
Binary file not shown.
Binary file added books-images/road.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 removed books-images/the-chronicles-of-narnia.jpg
Binary file not shown.
Binary file added books-images/the-girl-with-the-dragon-tattoo.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 books-images/the-giver.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 removed books-images/the-great-gatsby.jpg
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed books-images/the-hobbit.jpg
Binary file not shown.
Binary file added books-images/the-hunger-games-hunger-games.jpg
Binary file removed books-images/the-lord-of-the-rings.jpg
Diff not rendered.
Binary file removed books-images/to-kill-a-mockingbird.jpg
Diff not rendered.
Binary file removed books-images/unknown.jpg
Diff not rendered.
127 changes: 116 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,118 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Don't forget to change the title and connect the CSS file -->
<title>Project Library</title>
</head>
<body>
<h1>Project Library</h1>
<!-- Don't forget to connect the JavaScript file -->
</body>
</html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>On.Book Library</title>
<link rel="stylesheet" href="style.css" />
<!-- Preconnect to Google Fonts to optimize font loading -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<!-- Google Font: PT Serif (for typography) -->
<link
href="https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap"
rel="stylesheet"
/>
</head>

<body>
<header>
<div class="navbar">
<div class="logo">
<h1>On.Book</h1>
</div>
<!-- Navigation Links -->
<nav>
<ul>
<li><a href="#">Books</a></li>
<li><a href="#">Categories</a></li>
<li><a href="#">Wishlist</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">About Us</a></li>
</ul>
</nav>
<!-- Search and Sign-in Section -->
<div class="search-signin">
<div class="search-box">
<input type="text" placeholder="Search book..." />
</div>
<!-- Divider between search and sign-in -->
<span class="divider">|</span>

<a href="javascript:void(0)" class="search-button">Search</a>
</div>
</div>
</header>
<!-- Hero Section: Introduction and Featured Books Slider -->
<section class="hero">
<div class="hero-content">
<div class="text-content">
<h2>Find Your Next Book</h2>
<p>
Our most popular and trending <b>On.Book</b> perfect.<br />Not sure
what to read now? Read the perfect book to match your mood.
</p>
<button>Explore Now</button>
</div>
<div class="book-slider">
<!-- First Book -->
<div class="book framed">
<img src="books-images/book1.jpg" alt="The Stranger" />
<p>The Stranger<br /><small>Albert Camus</small></p>
</div>
<!-- Middle Book (reverse-rounded with title/author above the image) -->
<div class="book framed reverse">
<p>Der Process<br /><small>Franz Kafka</small></p>
<img src="books-images/book2.jpg" alt="Der Process" />
</div>
<!-- Third Book -->
<div class="book framed">
<img src="books-images/book3.jpg" alt="The Divine Comedy" />
<p>The Divine Comedy<br /><small>Dante</small></p>
</div>
</div>
</div>
</section>
<!-- Bestsellers Section: Displays the Bestselling Books -->
<section class="bestsellers">
<div class="bestsellers-header">
<h2>Bestsellers</h2>
<!-- Sorting and Filtering Options -->
<div class="sort-filter">
<!-- Sort Dropdown -->
<select id="sort-dropdown">
<option value="" disabled selected>Sort by</option>
<option value="titleAZ">Title (A-Z)</option>
<option value="titleZA">Title (Z-A)</option>
<option value="yearNewest">Year (Newest)</option>
<option value="yearOldest">Year (Oldest)</option>
<option value="ratingHighest">Rating (Highest)</option>
<option value="ratingLowest">Rating (Lowest)</option>
</select>
<!-- Sort Button -->
<button class="sort-btn" id="sort-button">Sort</button>
<!-- Genre Filter Dropdown -->
<div class="genre-filter">
<button class="genre-btn" id="genre-button">Genre</button>
<div id="dropdown-menu" class="dropdown-content">
<select id="filter-dropdown">
<option value="" disabled selected>Filter By:</option>
<option value="fiction">Fiction</option>
<option value="nonfiction">Nonfiction</option>
<option value="art-history">Art History</option>
<option value="psychology">Psychology</option>
<option value="mystery">Mystery</option>
<option value="fantasy">Fantasy</option>
<option value="crime-fiction">Crime Fiction</option>
<option value="dystopian">Dystopian</option>
</select>
</div>
</div>
</div>
</div>
<!-- Container for Displaying the List of Books -->
<div class="book-list" id="book-list"></div>
</section>
<script src="script.js"></script>
</body>
</html>
9 changes: 4 additions & 5 deletions instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,29 @@ In order to simplify the execution of this project, we have provided you with tw

## How to get started


## Requirements

- Your page should display all of the elements (and their information) in the chosen array when the website is loaded
- Your page should have at least one `filter`, e.g. on genre or cuisine type
- Your page should be able to `sort` on at least one property, e.g.:
- *for books*:
- _for books_:
- from newest to oldest and vice versa
- from the highest to lowest rating and vice versa
- *for recipes*:
- from most to least ingredients and vice versa
- from longest to shortest cooking time and vice versa
- Your page should feature a button that selects a random book/recipe, and your page should display the selected item

## Stretch Goals

So you’ve completed all the steps above? Great job! Make sure you've committed and pushed a version of your project before starting on the stretch goals. Remember that the stretch goals are optional.

### Intermediate stretch goals

- Go wild with the filtering. Add a filter to:
- only show the recipes with less than 5 or 10 ingredients
- only show the books from the 21st century
- Go wild with the sorting. Sort on:
- Alphabetical order

### Advanced stretch goals

- Create a search bar where the user can search for specific keywords
- Recreate the same design as the one provided in the example on Figma
9 changes: 5 additions & 4 deletions pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
## Netlify link
Add your Netlify link here.
PS. Don't forget to add it in your readme as well.
https://on-book.netlify.app/

## Collaborators
Add your collaborators here. Write their GitHub usernames in square brackets. If there's more than one, separate them with a comma, like this:
[github-username-1, github-username-2]

- [https://github.com/zoe-lindqvist]
- [https://github.com/jacquelinekellyhunt]
- [https://github.com/Fannyhenriques]
Binary file removed recipe-images/baked-chicken.jpg
Diff not rendered.
Binary file removed recipe-images/cheat’s-cheesy-focaccia.jpg
Diff not rendered.
Binary file removed recipe-images/chicken-paprikash.jpg
Diff not rendered.
Binary file removed recipe-images/deep-fried-fish-bones.jpg
Diff not rendered.
Binary file removed recipe-images/fish-dish.jpg
Diff not rendered.
Binary file removed recipe-images/grilled.jpg
Diff not rendered.
Binary file removed recipe-images/individual-vegetarian-lasagnes.jpg
Diff not rendered.
Binary file removed recipe-images/meat.jpg
Diff not rendered.
Binary file removed recipe-images/vegetarian-shepherd's-pie.jpg
Diff not rendered.
Binary file removed recipe-images/vegetarian-stir-fried-garlic-s.jpg
Diff not rendered.
Loading