From a757ad8d38976e96545cd7f9b1fe559f3eb12c13 Mon Sep 17 00:00:00 2001 From: Arya Danech <95949958+aryad14@users.noreply.github.com> Date: Tue, 31 Oct 2023 10:23:30 +0530 Subject: [PATCH] Revert "made some changes in HTML and CSS" --- css/books.css | 74 ------------------------------------- css/index.css | 22 +++++------ index.html | 30 +++++++-------- pages/books.html | 96 ------------------------------------------------ 4 files changed, 24 insertions(+), 198 deletions(-) delete mode 100644 css/books.css delete mode 100644 pages/books.html diff --git a/css/books.css b/css/books.css deleted file mode 100644 index da3e3d5..0000000 --- a/css/books.css +++ /dev/null @@ -1,74 +0,0 @@ -: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; -} diff --git a/css/index.css b/css/index.css index 36f0930..a12e0f5 100644 --- a/css/index.css +++ b/css/index.css @@ -16,26 +16,23 @@ .search input[type="text"] { padding: 10px; - width: 250px; + width: 190px; border-radius: 10px; - border: 1px solid var(--primary-color); } .search button[type="submit"] { padding: 10px 20px; - background-color: var(--primary-color); + background-color: #333; 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 { @@ -43,15 +40,14 @@ padding: 10px; } -.img-container { - display: flex; - justify-content: space-around; +.img1 { + width: 150px; + display: flex; } -.img-container img { - width: 100px; +.img1 img { + width: 100%; padding: 10px; + float: left; box-sizing: border-box; - border: 1px solid #ddd; - border-radius: 5px; } diff --git a/index.html b/index.html index 71a62f3..7eeee58 100644 --- a/index.html +++ b/index.html @@ -14,11 +14,11 @@ @@ -31,15 +31,15 @@

Welcome to the E-Library

@@ -50,13 +50,13 @@

Featured Books

- + \ No newline at end of file diff --git a/pages/books.html b/pages/books.html deleted file mode 100644 index 00c5be2..0000000 --- a/pages/books.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - BOOKS - - - - -
-
-
- Book 1 -
-
-

Harry Potter and the Sorcerer's Stone

-

Written by J.K. Rowling

-

First book in the Harry Potter series.

-
-
- -
-
- Book 2 -
-
-

To Kill a Mockingbird

-

Written by Harper Lee

-

A classic novel exploring racial injustice and loss of innocence.

-
-
- -
-
- Book 3 -
-
-

The Great Gatsby

-

Written by F. Scott Fitzgerald

-

Exploration of decadence and idealism in the Jazz Age.

-
-
- -
-
- Book 4 -
-
-

1984

-

Written by George Orwell

-

A dystopian novel depicting a totalitarian society.

-
-
- -
-
- Book 5 -
-
-

Brave New World

-

Written by Aldous Huxley

-

An exploration of a utopian society and its dark underbelly.

-
-
- -
-
- Book 6 -
-
-

The Catcher in the Rye

-

Written by J.D. Salinger

-

A classic novel exploring teenage angst and alienation.

-
-
-
- - - - - -