Reequestrian/wp-content/themes/twentytwentyfive-child/page-template/home.php
2025-04-18 18:03:19 +05:30

844 lines
20 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/*
Template Name: Home page
*/
get_header();
?>
<style>
.hero-section {
background:
linear-gradient(to left,rgba(117, 117, 117, 0) 0%,rgb(46, 42, 42) ),
url('<?php echo get_stylesheet_directory_uri(); ?>/assets/images/hero-bg.png') no-repeat center center/cover;
color: #fff;
height: 100vh;
position: relative;
display: flex;
flex-direction: column;
}
.hero-header {
background-color: rgba(255, 255, 255, 0.95);
padding: 15px 50px;
display: flex;
align-items: center;
justify-content: space-between;
font-family: 'Poppins', sans-serif;
position: relative;
z-index: 2;
}
.hero-container {
display: flex;
align-items: center;
width: 100%;
max-width: 1200px;
margin: 0 auto;
}
.logo img {
height: 40px;
}
.hero-nav {
flex-grow: 1;
display: flex;
justify-content: start;
}
.nav-menu {
display: flex;
list-style: none;
gap: 40px;
margin: 0;
padding: 0;
}
.nav-menu li {
position: relative;
}
.nav-menu > li > a {
text-decoration: none;
color: #000;
font-weight: 400;
font-size: 16px;
font-family: 'Poppins';
}
.has-dropdown:hover .dropdown {
display: block;
}
.dropdown {
position: absolute;
top: 100%;
left: 0;
background-color: white;
padding: 10px 0;
list-style: none;
display: none;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
z-index: 10;
}
.dropdown li a {
display: block;
padding: 10px 20px;
color: #000;
text-decoration: none;
white-space: nowrap;
font-weight: 400;
font-size: 16px;
font-family: 'Poppins';
}
.dropdown li a:hover {
background-color: #f0f0f0;
}
.search-container {
position: relative;
width: 100%;
max-width: 360px;
}
.search-input {
width: 100%;
padding: 10px 16px 10px 16px; /* padding-right for icon space */
border: 1px solid #ccc;
border-radius: 1px;
font-size: 16px;
font-family: 'Poppins', sans-serif;
box-sizing: border-box;
}
.search-container img {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
width: 25px;
height: 25px;
pointer-events: none;
opacity: 0.6;
}
.hero-content {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
/* padding: 0 100px; */
margin-left:315px;
max-width: 800px;
z-index: 1;
}
.hero-content h1 {
font-family:'Cormorant';
font-size: 88px;
font-weight: 600;
margin-bottom: 20px;
color: #fff;
}
.hero-content p {
font-family:'Poppins';
font-weight: 400;
font-size: 18px;
line-height: 1.6;
margin-bottom: 30px;
color: #eee;
}
.hero-button {
background-color: #004225;
color: #fff;
padding: 12px 24px;
text-decoration: none;
border-radius: 5px;
font-weight: 400;
display: inline-block;
width: 136px;
font-size: 16px;
}
.hero-button:hover{
color: #ffffff;
text-decoration: none;
}
.home-section {
font-family: 'Poppins', sans-serif;
padding: 40px 20px;
background: #fff;
color: #1a1819;
}
/* Subheading and heading */
.subheading {
color: #B08722;
font-size: 14px;
letter-spacing: 1px;
font-weight: 500;
text-transform: uppercase;
text-align: center;
}
.heading {
font-family:'Cormorant';
font-weight:500;
font-size: 44px;
text-align: center;
margin: 10px 0 30px;
}
/* Categories Grid */
.categories-grid {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 28px;
}
.category-item {
max-width: 309px;
text-align: center;
}
.category-item img {
width: 100%;
margin-bottom: 10px;
}
.category-item p {
font-style:'Poppins';
font-size: 18px;
font-weight: 400;
}
/* Rider Sale Banner */
.rider-sale-banner {
display: flex;
position: relative;
margin: 60px auto;
max-width: 1320px;
overflow: hidden;
}
.rider-sale-banner img {
/* width: 100%; */
height: auto;
display: block;
}
.sale-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #fff;
padding: 20px;
text-align: center;
max-width: 410px;
}
.sale-content .discount {
font-size: 18px;
color: #1A1819;
font-weight: 500;
margin-bottom: 8px;
letter-spacing: 1px;
}
.sale-content h3 {
font-size: 32px;
font-family:'Cormorant';
font-weight:600;
line-height:44px;
margin-bottom: 10px;
}
.sale-content p {
font-size: 14px;
margin-bottom: 20px;
color: #1A1819;
}
.btn {
background: transparent;
border: 1px solid #143D28;
color: #1a1819;
padding: 10px 28px;
text-decoration: none;
font-weight: 400;
transition: 0.3s;
display: block;
}
.btn:hover {
background: #1a1819;
color: #fff;
}
/* Discover Section */
.discover-grid {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 40px;
margin-top: 30px;
}
.product-card {
max-width: 1200px;
text-align: left;
}
/* .product-card img {
width: 100%;
} */
.product-card .title {
font-size: 16px;
margin-top: 10px;
}
.product-card .price {
font-weight: 500;
margin-top: 5px;
font-size: 16px;
}
.see-all {
display: block;
text-align: center;
margin-top: 30px;
font-weight: 400;
color: #1a1819;
text-decoration: none;
font-size: 18px;
}
/* -------------------- Responsive -------------------- */
@media (max-width: 992px) {
.heading {
font-size: 28px;
}
.categories-grid,
.discover-grid {
gap: 20px;
}
.rider-sale-banner .sale-content {
padding: 20px;
width: 90%;
}
}
@media (max-width: 768px) {
.categories-grid,
.discover-grid {
flex-direction: column;
align-items: center;
}
.category-item,
.product-card {
width: 100%;
max-width: 280px;
}
.sale-content {
max-width: 85%;
}
}
/* Sellers styling */
.section-title {
text-align: center;
text-transform: uppercase;
font-size: 14px;
letter-spacing: 1px;
color: #B08722;
margin-bottom: 10px;
}
.section-heading {
font-family:'Cormorant';
text-align: center;
font-size: 44px;
font-weight: 500;
margin-bottom: 40px;
color:#1A1819;
}
/* Verified Sellers */
.verified-sellers {
display: flex;
flex-wrap: wrap;
/* gap: 20px; */
justify-content: center;
align-items: center;
}
.seller-card {
flex: 1 1 45%;
background-color: #f6f6f6;
/* text-align: center; */
/* padding: 30px; */
position: relative;
}
.seller-card img {
max-width: 525px;
height: auto;
/* margin-bottom: 20px; */
}
.seller-card h3 {
font-size: 20px;
margin-bottom: 10px;
}
.visit-store {
font-size: 14px;
color: #1a1a1a;
text-decoration: none;
border-bottom: 1px solid;
}
.visit-store:hover {
color: #A08B42;
}
/* Testimonials */
.testimonials {
/* background-color: #fafafa; */
}
.testimonial-wrapper {
display: flex;
flex-wrap: wrap;
gap: 28px;
justify-content: center;
}
.testimonial {
/* background: #fff; */
padding: 10px;
max-width: 443px;
border-radius: 8px;
margin-bottom: 50px;
}
.testimonial img {
object-fit: cover;
float: left;
margin-right: 2px;
}
.testimonial p {
font-family:'Poppins';
font-weight: 400;
font-size: 16px;
/* margin: 10px 0; */
line-height: 1.5;
}
.stars {
color: #FFA500;
margin-top: 10px;
}
.author {
font-size: 14px;
font-style: normal;
color: #555;
margin-top: 10px;
display: flex;
justify-content:space-evenly;
}
/* Responsive */
@media (max-width: 768px) {
.seller-card {
flex: 1 1 100%;
}
.testimonial-wrapper {
flex-direction: column;
align-items: center;
}
}
.verified-sellers-section {
max-width: 1320px;
margin: auto;
display: flex;
/* gap: 30px; */
align-items: stretch;
flex-wrap: wrap;
margin-block: 70px;s
}
.seller-text {
flex: 1 1 100%;
max-width: 300px;
}
.seller-text .label {
font-size: 14px;
font-family:'Poppins';
font-weight:500;
text-transform: uppercase;
color: #B08722;
letter-spacing: 1px;
margin-bottom: 10px;
}
.seller-text h2 {
font-family:'Cormorant';
font-weight:500;
font-size: 44px;
font-weight: normal;
line-height: 1.4;
}
.seller-images {
display: flex;
flex: 1 1 60%;
/* gap: 20px; */
flex-wrap: wrap;
}
.seller-card {
position: relative;
flex: 1 1 45%;
/* border-radius: 6px; */
overflow: hidden;
}
.seller-card img {
/* height: 100%; */
object-fit: cover;
display: block;
}
.seller-card .overlay {
position: absolute;
bottom: 20px;
left: 20px;
color: #1a1a1a;
/* background-color: rgba(255, 255, 255, 0.9); */
padding: 10px 14px;
border-radius: 6px;
max-width: 90%;
}
.seller-card .overlay h3 {
font-family:'Cormorant';
font-weight: 500;
font-size: 36px;
margin-bottom: 4px;
}
.seller-card .overlay a {
font-family:'Poppins';
font-size: 16px;
font-weight: 400;
text-decoration: none;
}
.seller-card .overlay a:hover {
text-decoration: underline;
}
/* Responsive */
@media (max-width: 768px) {
.verified-sellers-section {
flex-direction: column;
}
.seller-images {
flex-direction: column;
}
.seller-card {
flex: 1 1 100%;
}
.seller-text {
max-width: 100%;
margin-bottom: 20px;
}
}
</style>
<section class="hero-section">
<header class="hero-header">
<div class="hero-container">
<nav class="hero-nav">
<ul class="nav-menu">
<li class="has-dropdown"><a href="#">Apparel <img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/drop_down.png" alt="Dropdown Arrow" class="dropdown-icon" /></a>
<ul class="dropdown">
<li><a href="#">Jackets</a></li>
<li><a href="#">Shirts</a></li>
<li><a href="#">T-Shirts</a></li>
</ul>
</li>
<li class="has-dropdown"><a href="#">Footwear <img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/drop_down.png" alt="Dropdown Arrow" class="dropdown-icon" /></a>
<ul class="dropdown">
<li><a href="#">Tall Boots</a></li>
<li><a href="#">short Boots</a></li>
</ul>
</li>
<li class="has-dropdown"><a href="#">Accessories <img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/drop_down.png" alt="Dropdown Arrow" class="dropdown-icon" /></a>
<ul class="dropdown">
<li><a href="#">Gloves</a></li>
<li><a href="#">Helmets</a></li>
</ul>
</li>
<li class="has-dropdown"><a href="#">Miscellaneous <img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/drop_down.png" alt="Dropdown Arrow" class="dropdown-icon" /></a>
<ul class="dropdown">
<li><a href="#">More Questions</a></li>
<li><a href="#">Reach out to us</a></li>
</ul>
</li>
</ul>
</nav>
<div class="search-container">
<input type="text" class="search-input" placeholder="Search">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/search.png" alt="Dropdown Arrow"/>
</div>
</div>
</header>
<div class="hero-content">
<h1>Saddle Up for New <br> Arrivals Daily</h1>
<p>Explore our carefully curated collection of premium equestrian gear,<br>
designed to bring comfort and performance to every ride.</p>
<a href="#" class="hero-button">Shop Now</a>
</div>
</section>
<section class="home-section">
<!-- Categories Section -->
<div class="categories-section">
<p class="subheading">Explore Gear</p>
<h2 class="heading">Our Categories</h2>
<div class="categories-grid">
<div class="category-item">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/apparel.png" alt="apparel"/>
<p>Apparel</p>
</div>
<div class="category-item">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/footwear.png" alt="footwear"/>
<p>Footwear</p>
</div>
<div class="category-item">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/accessories.png" alt="accessories"/>
<p>Accessories</p>
</div>
<div class="category-item">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/miscellaneous.png" alt="miscellaneous"/>
<p>Miscellaneous</p>
</div>
</div>
</div>
<!-- Rider Sale Banner -->
<div class="rider-sale-banner">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/cowboy_left.png" alt="boot 1"/>
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/cowboy_right.png" alt="boot 1"/>
<div class="sale-content">
<p class="discount">UP TO 30% OFF</p>
<h3>The Riders Sale</h3>
<p>Helmets, Riding Boots, Breeches, Gloves, Vests and more—for less</p>
<a href="#" class="btn">Shop Now</a>
</div>
</div>
<!-- Discover More Section -->
<div class="discover-section">
<p class="subheading">Explore</p>
<h2 class="heading">Discover More</h2>
<div class="discover-grid">
<div class="product-card">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/boot_1.png" alt="boot 1"/>
<p class="title">ARIAT Unisex-Child Scout Zip <br> Paddock Boot</p>
<p class="price">$40.00</p>
</div>
<div class="product-card">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/boot_2.png" alt="boot 2"/>
<p class="title">ARIAT Unisex-Child Scout Zip <br> Paddock Boot</p>
<p class="price">$40.00</p>
</div>
<div class="product-card">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/boot_3.png" alt="boot 2"/>
<p class="title">ARIAT Unisex-Child Scout Zip <br> Paddock Boot</p>
<p class="price">$40.00</p>
</div>
<div class="product-card">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/boot_4.png" alt="boot 2"/>
<p class="title">ARIAT Unisex-Child Scout Zip <br> Paddock Boot</p>
<p class="price">$40.00</p>
</div>
</div>
<a href="#" class="see-all">See all <img src="<?php echo get_stylesheet_directory_uri();?>/assets/images/see-all.png" alt="see-all"></a>
</div>
</section>
<section class="apparel">
<div class="rider-sale-banner">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/apparel-banner.png" alt="boot 1"/>
<!-- <div class="sale-content">
<h3>Apparel</h3>
</div> -->
</div>
<div class="discover-section">
<p class="subheading">Top Picks</p>
<h2 class="heading">Galloping Gear: This Week's Top Picks for Young Riders</h2>
<div class="discover-grid">
<div class="product-card">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/boot_1.png" alt="boot 1"/>
<p class="title">ARIAT Unisex-Child Scout Zip <br> Paddock Boot</p>
<p class="price">$40.00</p>
</div>
<div class="product-card">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/boot_2.png" alt="boot 2"/>
<p class="title">ARIAT Unisex-Child Scout Zip <br> Paddock Boot</p>
<p class="price">$40.00</p>
</div>
<div class="product-card">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/boot_3.png" alt="boot 2"/>
<p class="title">ARIAT Unisex-Child Scout Zip <br> Paddock Boot</p>
<p class="price">$40.00</p>
</div>
<div class="product-card">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/boot_4.png" alt="boot 2"/>
<p class="title">ARIAT Unisex-Child Scout Zip <br> Paddock Boot</p>
<p class="price">$40.00</p>
</div>
</div>
</div>
</section>
<section class="verified-sellers-section">
<!-- Left Text Column -->
<div class="seller-text">
<div class="label">Sellers</div>
<h2>Meet Our<br>Verified Sellers</h2>
</div>
<!-- Right Image Cards -->
<div class="seller-images">
<div class="seller-card">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/hats.png" alt="Fedora Hats">
<div class="overlay">
<h3>Fedora Hats</h3>
<a href="#">Visit Store →</a>
</div>
</div>
<div class="seller-card">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/boots.jpg" alt="Fedora boots">
<div class="overlay">
<h3>Paddock Boots</h3>
<a href="#">Visit Store →</a>
</div>
</div>
</div>
</section>
<!-- Testimonials Section -->
<section class="testimonials">
<div class="section-title">Testimonials</div>
<div class="section-heading">Happy Customers</div>
<div class="testimonial-wrapper multiple-items">
<div class="testimonial">
<img src="<?php echo get_stylesheet_directory_uri();?>/assets/images/client-1.png" alt="Customer">
<div class="stars">★★★★★</div>
<p>The quality of the riding boots I purchased is outstanding. Comfortable, durable, fit perfectly, provide excellent support and stylish — I couldnt ask for more!</p>
<div class="author"> Emily R., Competitive Rider</div>
</div>
<div class="testimonial">
<img src="<?php echo get_stylesheet_directory_uri();?>/assets/images/client-2.png" alt="Customer">
<div class="stars">★★★★★</div>
<p>Finally, gear that keeps up with my rides! The saddle I bought provides excellent support, and my horse seems happier too.</p>
<div class="author"> Jack M., Trail Rider</div>
</div>
<div class="testimonial">
<img src="<?php echo get_stylesheet_directory_uri();?>/assets/images/client-3.png" alt="Customer">
<div class="stars">★★★★★</div>
<p>I love how this store combines elegance and practicality. My new riding jacket looks fantastic both in the arena and around town!</p>
<div class="author"> Rachel K., First-Time Rider</div>
</div>
<div class="testimonial">
<img src="<?php echo get_stylesheet_directory_uri();?>/assets/images/client-1.png" alt="Customer">
<div class="stars">★★★★★</div>
<p>I love how this store combines elegance and practicality. My new riding jacket looks fantastic both in the arena and around town!</p>
<div class="author"> Rachel K., First-Time Rider</div>
</div>
<div class="testimonial">
<img src="<?php echo get_stylesheet_directory_uri();?>/assets/images/client-2.png" alt="Customer">
<div class="stars">★★★★★</div>
<p>I love how this store combines elegance and practicality. My new riding jacket looks fantastic both in the arena and around town!</p>
<div class="author"> Rachel K., First-Time Rider</div>
</div>
<div class="testimonial">
<img src="<?php echo get_stylesheet_directory_uri();?>/assets/images/client-3.png" alt="Customer">
<div class="stars">★★★★★</div>
<p>I love how this store combines elegance and practicality. My new riding jacket looks fantastic both in the arena and around town!</p>
<div class="author"> Rachel K., First-Time Rider</div>
</div>
</div>
</section>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/slick-carousel@1.8.1/slick/slick.min.js"></script>
<script>
$('.multiple-items').slick({
infinite: true,
slidesToShow: 3,
slidesToScroll: 2,
arrows: false, // Disable arrows
dots: false, // Optional: show dots navigation
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 2,
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 1,
}
}
]
});
</script>
<?php
get_footer();
?>