-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from aryad14/minor-fixes
[Refactor] change in links and styling
- Loading branch information
Showing
5 changed files
with
159 additions
and
155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,123 +1,120 @@ | ||
* { | ||
margin: 0; | ||
padding: 0; | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; | ||
} | ||
|
||
nav { | ||
background-color: #aa5040; | ||
padding: 10px; | ||
} | ||
|
||
#navbar { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0 20px; | ||
} | ||
|
||
#navbar h2 { | ||
margin: 0; | ||
} | ||
|
||
#navbar ul { | ||
list-style-type: none; | ||
display: flex; | ||
margin-left: auto; | ||
} | ||
|
||
#navbar ul li { | ||
margin-left: 10px; | ||
} | ||
|
||
#navbar ul li a { | ||
text-decoration: none; | ||
color: #333; | ||
} | ||
|
||
.welcome { | ||
background-color: #ffffff; | ||
padding: 20px; | ||
text-align: center; | ||
} | ||
|
||
.search { | ||
text-align: center; | ||
padding: 20px; | ||
} | ||
|
||
.search input[type="text"] { | ||
padding: 10px; | ||
width: 190px; | ||
border-radius: 10px; | ||
} | ||
|
||
.search button[type="submit"] { | ||
padding: 10px 20px; | ||
background-color: #333; | ||
color: #fff; | ||
border: none; | ||
cursor: pointer; | ||
border-radius: 10px; | ||
} | ||
|
||
/* Featured books section styles */ | ||
.featured-books { | ||
padding: 20px; | ||
overflow: hidden; | ||
} | ||
|
||
.featured-books h2 { | ||
margin-bottom: 10px; | ||
padding: 10px; | ||
} | ||
|
||
.img1 { | ||
width: 150px; | ||
display: flex; | ||
} | ||
|
||
.img1 img { | ||
width: 100%; | ||
padding: 10px; | ||
float: left; | ||
box-sizing: border-box; | ||
} | ||
|
||
/* Footer styles */ | ||
footer { | ||
background-color: #aa5040; | ||
padding: 10px; | ||
text-align: center; | ||
} | ||
|
||
.contact-info p { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.static-pages ul { | ||
list-style-type: none; | ||
} | ||
|
||
.static-pages ul li { | ||
display: inline; | ||
margin-right: 10px; | ||
} | ||
|
||
.static-pages ul li a { | ||
text-decoration: none; | ||
color: #333; | ||
} | ||
|
||
.i1 { | ||
float: left; | ||
} | ||
|
||
.i2 { | ||
float: left; | ||
} | ||
|
||
.i3 { | ||
float: left; | ||
} | ||
|
||
margin: 0; | ||
padding: 0; | ||
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; | ||
} | ||
|
||
:root { | ||
--primary-color: #aa5040; | ||
--text-color-light: #ededed; | ||
} | ||
|
||
header { | ||
background-color: var(--primary-color); | ||
padding: 10px; | ||
} | ||
|
||
#navbar { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding: 0 20px; | ||
} | ||
|
||
#navbar h2 { | ||
margin: 0; | ||
} | ||
|
||
#navbar ul { | ||
list-style-type: none; | ||
display: flex; | ||
margin-left: auto; | ||
} | ||
|
||
#navbar ul li { | ||
margin-left: 16px; | ||
} | ||
|
||
#navbar ul li a { | ||
text-decoration: none; | ||
color: var(--text-color-light); | ||
} | ||
|
||
.welcome { | ||
background-color: var(--text-color-light); | ||
padding: 20px; | ||
text-align: center; | ||
} | ||
|
||
.search { | ||
text-align: center; | ||
padding: 20px; | ||
} | ||
|
||
.search input[type="text"] { | ||
padding: 10px; | ||
width: 190px; | ||
border-radius: 10px; | ||
} | ||
|
||
.search button[type="submit"] { | ||
padding: 10px 20px; | ||
background-color: #333; | ||
color: var(--text-color-light); | ||
border: none; | ||
cursor: pointer; | ||
border-radius: 10px; | ||
} | ||
|
||
/* Featured books section styles */ | ||
.featured-books { | ||
padding: 20px; | ||
overflow: hidden; | ||
} | ||
|
||
.featured-books h2 { | ||
margin-bottom: 10px; | ||
padding: 10px; | ||
} | ||
|
||
.img1 { | ||
width: 150px; | ||
display: flex; | ||
} | ||
|
||
.img1 img { | ||
width: 100%; | ||
padding: 10px; | ||
float: left; | ||
box-sizing: border-box; | ||
} | ||
|
||
/* Footer styles */ | ||
footer { | ||
background-color: var(--primary-color); | ||
padding: 10px; | ||
text-align: center; | ||
} | ||
|
||
.contact-info p { | ||
margin-bottom: 10px; | ||
color: var(--text-color-light); | ||
} | ||
|
||
.static-pages ul { | ||
list-style-type: none; | ||
} | ||
|
||
.static-pages ul li { | ||
display: inline; | ||
margin-right: 10px; | ||
} | ||
|
||
.static-pages ul li a { | ||
text-decoration: none; | ||
color: var(--text-color-light); | ||
} | ||
|
||
.book-img { | ||
float: left; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,61 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>E-Library</title> | ||
<link rel="stylesheet" type="text/css" href="./css/index.css"> | ||
<link rel="stylesheet" href="./css/index.css"> | ||
</head> | ||
|
||
<body> | ||
<nav> | ||
<header> | ||
<div id="navbar"> | ||
<h2>E-Library</h2> | ||
<ul> | ||
<li><a href="index.html">Home</a></li> | ||
<li><a href="books.html">Books</a></li> | ||
<li><a href="./html/login.html">Log In</a></li> | ||
<li><a href="./html/about-us.html">About Us</a></li> | ||
<li><a href="contact.html">Contact</a></li> | ||
<li><a href="pages/books.html">Books</a></li> | ||
<li><a href="pages/login.html">Log In</a></li> | ||
<li><a href="pages/about-us.html">About Us</a></li> | ||
<li><a href="pages/contact.html">Contact</a></li> | ||
</ul> | ||
</div> | ||
</nav> | ||
</header> | ||
|
||
<div class="welcome"> | ||
<h1>Welcome to the E-Library</h1> | ||
<p>A brief introduction to the e-library.</p> | ||
</div> | ||
<main> | ||
<div class="welcome"> | ||
<h1>Welcome to the E-Library</h1> | ||
<p>A brief introduction to the e-library.</p> | ||
</div> | ||
|
||
<div class="search"> | ||
<input type="text" placeholder="Search for books"> | ||
<div class="search"> | ||
<input type="text" placeholder="Search for books"> | ||
<button type="submit">Search</button> | ||
</div> | ||
|
||
<section class="featured-books"> | ||
<h2>Featured Books</h2> | ||
<div class="img1"> | ||
<img class="i1" src="./static/book1.jpeg" > | ||
<img class="i2" src="./static/book2.jpeg" > | ||
<img class="i3" src="./static/book3.jpeg" > | ||
</div> | ||
</section> | ||
|
||
<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> | ||
</section> | ||
</main> | ||
|
||
<footer> | ||
<div class="contact-info"> | ||
<p>Contact information</p> | ||
</div> | ||
<div class="static-pages"> | ||
<ul> | ||
<li><a href="about.html">About Us</a></li> | ||
<li><a href="contact.html">Contact</a></li> | ||
<li><a href="privacy.html">Privacy Policy</a></li> | ||
<li><a href="terms.html">Terms of Service</a></li> | ||
<li><a href="pages/about.html">About Us</a></li> | ||
<li><a href="pages/contact.html">Contact</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.