Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navbar and Footer on AudioBook Page(issue #3158) #3483

Merged
merged 1 commit into from
Oct 16, 2024
Merged
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
276 changes: 207 additions & 69 deletions audiobook.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
<meta name="theme-color" content="#ffffff" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" href="./assets/css/MenuClick.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
Expand Down Expand Up @@ -106,7 +105,7 @@
list-style: none;
padding: 0;
margin: 0;
gap: 3rem;
gap: 2rem;
}

/* Navbar items */
Expand All @@ -127,21 +126,21 @@
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
.container {
flex-direction: column; /* Stack logo and navbar vertically */
align-items: center;
}

.navbar-list {
flex-direction: column;
margin-top: 20px;
}

.navbar-item {
margin: 10px 0;
}
}
/* @media (max-width: 768px) {
.container {
flex-direction: column;
align-items: center;
}

.navbar-list {
flex-direction: column;
margin-top: 20px;
}

.navbar-item {
margin: 10px 0;
}
} */

.action {
display: flex;
Expand Down Expand Up @@ -200,36 +199,30 @@
}

/* Responsive adjustments */
@media (max-width: 768px) {
.navbar-list {
@media (max-width: 660px) {
.container {
flex-direction: column;
align-items: center;
}

.navbar-item {
margin: 10px 0;
}

.logo img {
width: 120px;
.header {
padding: 0 10px 20px 10px;
}

}

@media (max-width: 425px) {
@media (max-width: 500px) {
.header {
flex-direction: column;
padding: 10px;
padding: 0 10px 20px 10px;
}

.navbar {
display: none;

.navbar-list {
gap: 1em;
padding: 0 2rem;
justify-content: center;
}

.logo img {
width: 100px;
.navbar-item {
margin-left: 10px;
}
}

body {
font-family: Arial, sans-serif;
margin: 0;
Expand Down Expand Up @@ -306,36 +299,37 @@
transform: scale(1.1); /* Zoom effect when playing */
}

.spotlight-card:hover {
transform: translateY(-20px); /* Hover lift effect */
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.spotlight-card:hover {
transform: translateY(-20px); /* Hover lift effect */
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.spotlight-card .content {
transition: transform 0.3s ease;
}
.spotlight-card .content {
transition: transform 0.3s ease;
}

.spotlight-card:hover .content {
transform: translateY(20px); /* Ensure content moves up within the card */
}
.spotlight-card:hover .content {
transform: translateY(
20px
); /* Ensure content moves up within the card */
}

.spotlight-card .imgBx img {
border-radius: 15px 15px 0 0;
width: 100%;
height: 250px;
object-fit: cover;
transition: opacity 0.3s ease;
}
.spotlight-card .imgBx img {
border-radius: 15px 15px 0 0;
width: 100%;
height: 250px;
object-fit: cover;
transition: opacity 0.3s ease;
}

.spotlight-card:hover .imgBx img {
opacity: 0.9;
}
.spotlight-card:hover .imgBx img {
opacity: 0.9;
}

.spotlight-card:hover h3,
.spotlight-card:hover p {
color: #ff6347;
}
.spotlight-card:hover h3,
.spotlight-card:hover p {
color: #ff6347;
}

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
body {
Expand All @@ -347,25 +341,27 @@
padding: 0;
box-sizing: border-box;
}
.container {
max-width: 1170px;
margin: auto;
}

.row {
display: flex;
flex-wrap: wrap;
flex-direction: row;
}
ul {
list-style: none;
}
.footer {
background-color: palevioletred;
padding: 70px 0;
padding: 70px 100px;
margin:0 auto;
}
.footer-col {
width: 25%;
padding: 0 15px;
}
.footer-col .social-links {
display: flex;
flex-direction: column;
}
.footer-col h4 {
font-size: 18px;
color: #ffffff;
Expand Down Expand Up @@ -417,19 +413,123 @@
color: #24262b;
background-color: #ffffff;
}

@media (max-width: 900px) {
.row{
flex-wrap: wrap;
}
.footer{
padding:70px 20px;
}

}
/*responsive*/
@media (max-width: 767px) {
.footer-col {
width: 50%;
margin-bottom: 30px;
}
.footer-col .social-links{
display:flex;
flex-direction: row;
}
}
@media (max-width: 574px) {
.footer-col {
width: 100%;
}
}

/* newsletter */
.newsletter {
background-color: #ffd1d1;
padding: 30px;
max-width: 400px;
margin: auto;
border-radius: 8px;
text-align: center;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.newsletter h1 {
color: #c62828;
font-size: 20px;
margin-bottom: 10px;
}

.newsletter p {
color: #8c8c8c;
font-size: 16px;
margin-bottom: 20px;
}

.input-group {
position: relative;
margin-bottom: 15px;
}

.input-group i {
position: absolute;
top: 50%;
left: 10px;
transform: translateY(-50%);
color: #c62828;
}

.input-group input {
width: 100%;
padding: 12px 40px;
border: 2px solid #c62828;
border-radius: 5px;
font-size: 14px;
color: #333;
background-color: #ffecec;
transition: border-color 0.3s ease;
}

.input-group input:focus {
border-color: #ff6f6f;
outline: none;
}

.subscribe {
width: 100%;
background-color: #b71c1c;
color: white;
border: none;
padding: 12px;
font-size: 16px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}

.subscribe:hover {
background-color: #ff6f6f;
}

subscribe:active {
transform: scale(0.98);
}
subscribe:focus {
outline: none;
}

.newsletter:hover {
background: linear-gradient(hwb(357 68% 7%), #d26d6d);
}

.success-message {
margin-top: 20px;
font-size: 18px;
color: #388e3c;
display: none;
}

@media (max-width: 500px) {
.newsletter {
padding: 20px;
}
}
</style>
</head>
<body>
Expand Down Expand Up @@ -621,6 +721,44 @@ <h4>follow us</h4>
<a href="#"><i class="fab fa-linkedin-in"></i></a>
</div>
</div>
<div class="newsletter">
<h1>Subscribe to Our Newsletter</h1>
<p>Stay updated with our latest news and offers</p>

<form id="newsform" onsubmit="return showSuccessMessage();">
<div class="input-group">
<i class="fas fa-user"></i>
<input
type="text"
id="name"
placeholder="Your Name"
required=""
pattern="[a-zA-Z ]+"
oninvalid="this.setCustomValidity('Numbers and Symbols are not allowed')"
oninput="this.setCustomValidity('')"
/>
</div>
<div class="input-group">
<i class="fas fa-envelope"></i>
<input
type="email"
id="email"
placeholder="Your Email Address"
required=""
/>
</div>
<button type="submit" class="subscribe" id="subs">
Subscribe
</button>
</form>
<div
id="successmessage"
class="success-message"
style="display: none"
>
Thank you for subscribing!
</div>
</div>
</div>
</div>
</footer>
Expand Down
Loading