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
19 changes: 13 additions & 6 deletions css/books.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,57 @@
--text-color-light: #ededed;
}

/* Reset default styles for the body element */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: var(--text-color-light);
color: #333;
padding-bottom: 60px;
padding-bottom: 60px;
}

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

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

/* Style the book cover image */
.book-image {
margin-right: 20px;
flex: 0 0 150px;
flex: 0 0 150px;
}

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

/* Style the book details section */
.book-details {
display: flex;
flex-direction: column;
}

/* Style the footer */
footer {
background-color: var(--primary-color);
color: var(--text-color-light);
Expand All @@ -58,6 +64,7 @@ footer {
width: 100%;
}

/* Style the contact info and static pages in the footer */
footer .contact-info,
footer .static-pages {
display: flex;
Expand Down
132 changes: 72 additions & 60 deletions css/contact.css
Original file line number Diff line number Diff line change
@@ -1,127 +1,139 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
*{

* {
padding: 0;
margin: 0;
box-sizing: border-box;
font-family: 'poppins',sans-serif;
font-family: 'Poppins', sans-serif;
}
.contact-form{
position: relative;

.contact-form {
min-height: 100vh;
z-index: 0;
background-color: #ededed;
background-repeat: no-repeat;
padding: 30px;
display: flex;
flex-direction: column;
justify-content: center;
display: grid;
grid-template-rows: 1fr auto 1fr;
align-items: center;
background: linear-gradient(to bottom, #ff6b6b, #aa5040);
padding: 30px;
}
.container{

.container {
max-width: 700px;
margin-top: 0 auto;
margin: 0 auto;
}
.contact-form h1{

.contact-form h1 {
text-align: center;
font-size: 2.5rem;
font-weight: 400;
color: #aa5040;
font-family: 'poppins';
color: #fff;
}
.contact-form h2{
line-height: 40px;
margin-bottom: 5px;

.contact-form h2 {
text-align: center;
font-size: 30px;
font-weight: 500;
color: #aa5040;
text-align: center;
color: #fff;
margin: 10px 0;
}
.contact-form .main{
position: relative;

.contact-form .main {
display: flex;
margin: 30px 0;
}
.content{

.content {
flex-basis: 50%;
padding: 3em 3em;
padding: 2em;
background: #fff;
box-shadow: 2px 9px 49px -17px rgba(156, 39, 148, 0.1);
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
border-radius: 8px;
}
.form-img{

.form-img {
flex-basis: 50%;
background: #f0f4f8;
background-size: cover;
padding: 40px;
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
border-radius: 8px;
display: flex;
align-items: center;
display: grid;
}
.form-img img{

.form-img img {
max-width: 100%;
}

.btn,
button,
input{
input {
border-radius: 35px;
transition: 0.3s; /* Add a transition for smoother hover effect */
}

.btn:hover,
button:hover{
color: #ededed;
transition: 0.5s ease;
button:hover {
color: #fff;
background: #ff6b6b;
border: 1px solid #ff6b6b;
}
.contact-form form{

.contact-form form {
margin: 30px 0;
}

.contact-form input,
textarea{
.contact-form textarea {
outline: none;
margin-bottom: 15px;
font-stretch: 16px;
color: #999;
font-size: 16px;
color: #333;
padding: 14px 20px;
width: 100%;
display: inline-block;
box-sizing: border-box;
border: none;
border: 1px solid #ccc;
background: #fcfcfc;
transition: 0.3s ease;
transition: 0.3s;
}
.contact-form input:focus{
background: transparent;

.contact-form input:focus {
background: #fff;
border: 1px solid #aa5040;
}
.contact-form button{

.contact-form button {
font-size: 18px;
color: #fff;
width: 100%;
background: #aa5040;
font-weight: 600;
transition: 0.3s ease;
padding: 14px 15px;
border: 1px solid #aa5040;

}
@media(max-width:736px){
.contact-form .main{

@media (max-width: 736px) {
.contact-form .main {
flex-direction: column;
}
.contact-form form{
margin-top: 30px;
margin-bottom: 10px;

.contact-form form {
margin: 20px 0;
}
.form-img{

.form-img {
border-radius: 0;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
order: 2;
}
.content{
order: 1;
border-top-left-radius: 8px;
border-top-right-radius: 0;
}

.content {
border-top-left-radius: 0;
border-top-right-radius: 8px;
}
}
}


/*

*/
8 changes: 4 additions & 4 deletions pages/books.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ <h3>The Catcher in the Rye</h3>
</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/terms.html">Privacy Policy</a></li>
<li><a href="/pages/terms.html">Terms of Service</a></li>
</ul>
</div>
</footer>
Expand Down