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

489 lines
10 KiB
PHP

<?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: 30px;
margin-top: 30px;
}
.product-card {
max-width: 1200px;
text-align: left;
}
/* .product-card img {
width: 100%;
} */
.product-card .title {
font-size: 14px;
margin-top: 10px;
}
.product-card .price {
font-weight: 600;
margin-top: 5px;
font-size: 14px;
}
.see-all {
display: block;
text-align: center;
margin-top: 30px;
font-weight: 500;
color: #1a1819;
text-decoration: none;
font-size: 14px;
}
/* -------------------- 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%;
}
}
</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 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 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 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 Paddock Boot</p>
<p class="price">$40.00</p>
</div>
</div>
<a href="#" class="see-all">See all →</a>
</div>
</section>
<?php
get_footer();
?>