Skip to content

Commit

Permalink
Merge pull request #26 from Siddheshuncodes/main
Browse files Browse the repository at this point in the history
Add books.html
  • Loading branch information
aryad14 authored Oct 31, 2023
2 parents bd100f0 + 995c109 commit 3331392
Show file tree
Hide file tree
Showing 4 changed files with 198 additions and 24 deletions.
74 changes: 74 additions & 0 deletions css/books.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
:root {
--primary-color: #aa5040;
--text-color-light: #ededed;
}

body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: var(--text-color-light);
color: #333;
padding-bottom: 60px;
}

.books-container {
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
width: 100%;
max-width: 1200px;
margin: 0 auto;
}

.book {
display: flex;
margin: 20px;
padding: 20px;
border: 1px solid var(--primary-color);
border-radius: 5px;
width: 100%;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.book-image {
margin-right: 20px;
flex: 0 0 150px;
}

.book-image img {
width: 100%;
height: auto;
}

.book-details {
display: flex;
flex-direction: column;
}

footer {
background-color: var(--primary-color);
color: var(--text-color-light);
padding: 10px;
text-align: center;
position: fixed;
bottom: 0;
width: 100%;
}

footer .contact-info,
footer .static-pages {
display: flex;
justify-content: center;
}

footer .static-pages ul {
padding: 0;
}

footer .static-pages li {
display: inline;
margin: 0 10px;
}
22 changes: 13 additions & 9 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,42 @@

.search input[type="text"] {
padding: 10px;
width: 190px;
width: 250px;
border-radius: 10px;
border: 1px solid var(--primary-color);
}

.search button[type="submit"] {
padding: 10px 20px;
background-color: #333;
background-color: var(--primary-color);
color: var(--text-color-light);
border: none;
cursor: pointer;
border-radius: 10px;
margin-left: 10px;
}

/* Featured books section styles */

.featured-books {
padding: 20px;
overflow: hidden;
text-align: center;
}

.featured-books h2 {
margin-bottom: 10px;
padding: 10px;
}

.img1 {
width: 150px;
display: flex;
.img-container {
display: flex;
justify-content: space-around;
}

.img1 img {
width: 100%;
.img-container img {
width: 100px;
padding: 10px;
float: left;
box-sizing: border-box;
border: 1px solid #ddd;
border-radius: 5px;
}
30 changes: 15 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
<div id="navbar">
<h2 class="site-name">E-Library</h2>
<ul class="navbar-links">
<li class="nav-links"><a href="/">Home</a></li>
<li class="nav-links"><a href="./pages/books.html">Books</a></li>
<li class="nav-links"><a href="./pages/login.html">Log In</a></li>
<li class="nav-links"><a href="./pages/about-us.html">About Us</a></li>
<li class="nav-links"><a href="./pages/contact.html">Contact Us</a></li>
<li class="nav-links"><a href="/">Home</a></li>
<li class="nav-links"><a href="./pages/books.html">Books</a></li>
<li class="nav-links"><a href="./pages/login.html">Log In</a></li>
<li class="nav-links"><a href="./pages/about-us.html">About Us</a></li>
<li class="nav-links"><a href="./pages/contact.html">Contact Us</a></li>
</ul>
</div>
</header>
Expand All @@ -31,15 +31,15 @@ <h1>Welcome to the E-Library</h1>

<div class="search">
<input type="text" placeholder="Search for books">
<button type="submit">Search</button>
<button type="submit">Search</button>
</div>

<section class="featured-books">
<h2>Featured Books</h2>
<div class="img1">
<img class="book-img" src="static/book1.jpeg">
<img class="book-img" src="static/book2.jpeg">
<img class="book-img" src="static/book3.jpeg">
<div class="img-container">
<img class="book-img" src="./static/book1.jpeg" alt="Book 1">
<img class="book-img" src="./static/book2.jpeg" alt="Book 2">
<img class="book-img" src="./static/book3.jpeg" alt="Book 3">
</div>
</section>
</main>
Expand All @@ -50,13 +50,13 @@ <h2>Featured Books</h2>
</div>
<div class="static-pages">
<ul>
<li><a href="pages/about-us.html">About Us</a></li>
<li><a href="pages/contact.html">Contact Us</a></li>
<li><a href="pages/privacy.html">Privacy Policy</a></li>
<li><a href="pages/terms.html">Terms of Service</a></li>
<li><a href="./pages/about-us.html">About Us</a></li>
<li><a href="./pages/contact.html">Contact Us</a></li>
<li><a href="./pages/privacy.html">Privacy Policy</a></li>
<li><a href="./pages/terms.html">Terms of Service</a></li>
</ul>
</div>
</footer>
</body>

</html>
</html>
96 changes: 96 additions & 0 deletions pages/books.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BOOKS</title>
<link rel="stylesheet" href="/css/books.css">
</head>

<body>
<div class="books-container">
<div class="book">
<div class="book-image">
<img src="./images/book1.jpg" alt="Book 1">
</div>
<div class="book-details">
<h3>Harry Potter and the Sorcerer's Stone</h3>
<p>Written by J.K. Rowling</p>
<p>First book in the Harry Potter series.</p>
</div>
</div>

<div class="book">
<div class="book-image">
<img src="./images/book2.jpg" alt="Book 2">
</div>
<div class="book-details">
<h3>To Kill a Mockingbird</h3>
<p>Written by Harper Lee</p>
<p>A classic novel exploring racial injustice and loss of innocence.</p>
</div>
</div>

<div class="book">
<div class="book-image">
<img src="./images/book3.jpg" alt="Book 3">
</div>
<div class="book-details">
<h3>The Great Gatsby</h3>
<p>Written by F. Scott Fitzgerald</p>
<p>Exploration of decadence and idealism in the Jazz Age.</p>
</div>
</div>

<div class="book">
<div class="book-image">
<img src="./images/book4.jpg" alt="Book 4">
</div>
<div class="book-details">
<h3>1984</h3>
<p>Written by George Orwell</p>
<p>A dystopian novel depicting a totalitarian society.</p>
</div>
</div>

<div class="book">
<div class="book-image">
<img src="./images/book5.jpg" alt="Book 5">
</div>
<div class="book-details">
<h3>Brave New World</h3>
<p>Written by Aldous Huxley</p>
<p>An exploration of a utopian society and its dark underbelly.</p>
</div>
</div>

<div class="book">
<div class="book-image">
<img src="./images/book6.jpg" alt="Book 6">
</div>
<div class="book-details">
<h3>The Catcher in the Rye</h3>
<p>Written by J.D. Salinger</p>
<p>A classic novel exploring teenage angst and alienation.</p>
</div>
</div>
</div>

<footer>
<div class="contact-info">
<p>Contact information</p>
</div>
<div class="static-pages">
<ul>
<li><a href="./pages/about-us.html">About Us</a></li>
<li><a href="./pages/contact.html">Contact Us</a></li>
<li><a href="./pages/privacy.html">Privacy Policy</a></li>
<li><a href="./pages/terms.html">Terms of Service</a></li>
</ul>
</div>
</footer>

</body>

</html>

0 comments on commit 3331392

Please sign in to comment.