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
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# project-library
# project-library
Netlify: https://read-more-about-books.netlify.app/
140 changes: 137 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,145 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<!-- 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 -->
<header>
<!-- Some kind of logo and navbar -->
<div class="header-content-width">
<p class="main-logo"><span>ß</span> ookish </p>
<!-- menu desktop -->
<nav class="nav-desktop">
<ul>
<li class="nav-menu-item-desktop">News</li>
<li class="nav-menu-item-desktop">About us</li>
<li class="nav-menu-item-desktop">Library</li>
<li class="nav-menu-item-desktop btn-nav">Log in</li>
</ul>
</nav>
<!-- menu tablet/mobile -->
<nav class="nav-small-screen">
<p class="btn-nav">Log in</p>
<ul>
<li class="nav-menu-item-small-screen"></li>
<li class="nav-menu-item-small-screen"></li>
<li class="nav-menu-item-small-screen"></li>
</ul>
</nav>
</div>
</header>

<section class="big-news">
<!-- The big news content -->
<div class="big-news-content-width">

<div class="big-news-text">
<h1 class="header-news-h1">Project Library</h1>
<h3 class="header-news-h3">Filter on genre</h3>
<div class="big-news-btn-flex">
<button class="big-news-btn" data-action="all">All</button>
<button class="big-news-btn" data-action="fantasy">Fantasy</button>
<button class="big-news-btn" data-action="fiction">Fiction</button>
<button class="big-news-btn" data-action="science-fiction">Science Fiction</button>
<button class="big-news-btn" id="sort-by-year" data-action="sort-year">Sort by year</button>
<button class="big-news-btn" id="sort-by-letter" data-action="sort-title">Sort A-Z</button>
<button class="big-news-btn random-book-btn" data-action="random">Choose random book</button>
</div>
</div>
</div>
</section>


<section class="small-box-news" id="book-list">

</section>


<footer>
<div>
<p>All rights reserved</p>
</div>
</footer>

<!-- Don't forget to connect the JavaScript file -->
<script src="script.js"></script>
</body>
</html>
</html>


<!-- The other news -->
<!-- <article class="small-box-news-item">
<img src="./books-images/1984.jpg" class="small-box-news-item-img" alt="Library of books">
<div>
<h3>1984</h3>
<p>Tags: Thriller</p>
<a href="#" target="_blank"><button class="small-news-btn">Read more</button></a>
</div>
</article>

<article class="small-box-news-item">
<img src="./books-images/harry-potter-and-the-sorcerer.jpg" class="small-box-news-item-img" alt="Library of books">
<div>
<h3>Harry Potter & the sorcerer stone</h3>
<p>Tags: Adventure</p>
<a href="#" target="_blank"><button class="small-news-btn">Read more</button></a>
</div>
</article>

<article class="small-box-news-item">
<img src="./books-images/moby-dick.jpg" class="small-box-news-item-img" alt="Library of books">
<div>
<h3>Moby Dick</h3>
<p>Tags: Adventure</p>
<a href="#" target="_blank"><button class="small-news-btn">Read more</button></a>
</div>
</article>

<article class="small-box-news-item">
<img src="./books-images/pride-and-prejudice.jpg" class="small-box-news-item-img" alt="Library of books">
<div>
<h3>Pride & prejudice</h3>
<p>Tags: Romance</p>
<a href="#" target="_blank"><button class="small-news-btn">Read more</button></a>
</div>
</article>

<article class="small-box-news-item">
<img src="./books-images/the-chronicles-of-narnia.jpg" class="small-box-news-item-img" alt="Library of books">
<div>
<h3>The chronicles of Narnia</h3>
<p>Tags: Adventure</p>
<a href="#" target="_blank"><button class="small-news-btn">Read more</button></a>
</div>
</article>

<article class="small-box-news-item">
<img src="./books-images/the-great-gatsby.jpg" class="small-box-news-item-img" alt="Library of books">
<div>
<h3>The great Gatsby</h3>
<p>Tags: Romance</p>
<a href="#" target="_blank"><button class="small-news-btn">Read more</button></a>
</div>
</article>

<article class="small-box-news-item">
<img src="./books-images/the-hobbit.jpg" class="small-box-news-item-img" alt="Library of books">
<div>
<h3>The Hobbit</h3>
<p>Tags: Adventure</p>
<a href="#" target="_blank"><button class="small-news-btn">Read more</button></a>
</div>
</article>

<article class="small-box-news-item">
<img src="./books-images/the-lord-of-the-rings.jpg" class="small-box-news-item-img" alt="Library of books">
<div>
<h3>Lord of the rings</h3>
<p>Tags: Adventure</p>
<a href="#" target="_blank"><button class="small-news-btn">Read more</button></a>
</div>
</article> -->

6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading