<main class="font-sans bg-gray-50">
<!-- Hero Section -->
<section class="relative flex items-center justify-center text-center text-white py-32">
<!-- Gradient Overlay -->
<div class="absolute inset-0 bg-gradient-to-br from-gray-800 via-gray-600 to-gray-800 opacity-90"></div>
<!-- Content -->
<div class="relative z-10 p-8 rounded-lg">
<h2 class="text-5xl font-extrabold mb-4 tracking-tight text-white animate-fade-in">Celebrate with Tea Tribe</h2>
<p class="text-xl mb-6 text-gray-200 animate-fade-in-delay">Exquisite teas for gifting and corporate experiences.</p>
<a href="#gifting" class="bg-gradient-to-r from-yellow-500 to-yellow-600 text-black px-8 py-3 rounded-full font-semibold hover:from-yellow-400 hover:to-yellow-500 transition-all duration-300 transform hover:scale-105 hover:shadow-lg">Explore Now</a>
</div>
</section>
<!-- Dynamic Content Section (Managed via Admin Panel) -->
<section class="container mx-auto py-16 px-4">
<!-- Gifting Section -->
<div id="gifting" class="mb-16">
<h2 class="text-4xl font-bold text-center text-gray-800 mb-8 animate-slide-up">Elegant Tea Gifting</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-10 items-center bg-gradient-to-r from-gray-100 to-gray-200 p-8 rounded-lg shadow-lg hover:shadow-xl transition-shadow duration-300">
<div class="product-img h-72 rounded-lg hover-scale bg-cover bg-center" style="background-image: url('https://teatribestore.com/storage/all-photo/11-1-400x400.jpg');"></div>
<div class="text-center md:text-left">
<p class="text-lg text-gray-700 mb-4 animate-fade-in">{{ gifting_section.description }}</p>
<p class="text-xl font-semibold text-gray-800 mb-4 animate-fade-in-delay">Price: {{ gifting_section.price }}</p>
<a href="{{ gifting_section.cta_link }}" class="bg-gradient-to-r from-yellow-500 to-yellow-600 text-black px-8 py-3 rounded-full font-semibold hover:from-yellow-400 hover:to-yellow-500 transition-all duration-300 transform hover:scale-105 hover:shadow-lg">Shop Gifts</a>
</div>
</div>
</div>
<!-- Corporate Bookings Section -->
<div id="corporate">
<h2 class="text-4xl font-bold text-center text-gray-800 mb-8 animate-slide-up">Corporate Tea Solutions</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-10 items-center bg-gradient-to-r from-gray-100 to-gray-200 p-8 rounded-lg shadow-lg hover:shadow-xl transition-shadow duration-300">
<div class="text-center md:text-left order-last md:order-first">
<p class="text-lg text-gray-700 mb-4 animate-fade-in">{{ corporate_section.description }}</p>
<ul class="list-disc list-inside text-gray-700 mb-4 animate-fade-in-delay">
{% for feature in corporate_section.features %}
<li>{{ feature }}</li>
{% endfor %}
</ul>
<a href="{{ corporate_section.cta_link }}" class="bg-gradient-to-r from-yellow-500 to-yellow-600 text-black px-8 py-3 rounded-full font-semibold hover:from-yellow-400 hover:to-yellow-500 transition-all duration-300 transform hover:scale-105 hover:shadow-lg">Book Now</a>
</div>
<div class="product-img h-72 rounded-lg hover-scale bg-cover bg-center" style="background-image: url('https://teatribestore.com/storage/all-photo/11-1-400x400.jpg');"></div>
</div>
</div>
</section>
<!-- Inline CSS -->
<style>
/* Ensure the container is centered and responsive */
.container {
max-width: 1200px;
margin-left: auto;
margin-right: auto;
}
/* Keyframe Animations for Fade-In and Slide-Up Effects */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeInDelay {
0% {
opacity: 0;
transform: translateY(20px);
}
50% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* Animation Classes */
.animate-fade-in {
animation: fadeIn 1s ease-out forwards;
}
.animate-fade-in-delay {
animation: fadeInDelay 1.5s ease-out forwards;
}
.animate-slide-up {
animation: slideUp 1s ease-out forwards;
}
/* Hover Scale Effect for Images */
.hover-scale {
transition: transform 0.3s ease-in-out;
}
.hover-scale:hover {
transform: scale(1.05);
}
/* Gradient and Shadow Effects for Sections */
.bg-gradient-to-r {
background: linear-gradient(to right, #f3f4f6, #e5e7eb);
}
.bg-gradient-to-br {
background: linear-gradient(to bottom right, #4b5563, #6b7280, #4b5563);
}
.hover\:shadow-xl:hover {
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
/* Button Hover Effects */
a {
transition: all 0.3s ease-in-out;
}
a:hover {
transform: scale(1.05);
}
/* Ensure Images are Responsive */
.product-img {
width: 100%;
height: 18rem; /* 72 * 4 = 288px */
}
@media (max-width: 768px) {
.product-img {
height: 16rem; /* 64 * 4 = 256px */
}
}
</style>
<!-- Script for Dynamic Content Rendering -->
<script>
// Placeholder for dynamic content rendering (e.g., via Strapi Dynamic Zones)
const dynamicContent = {
gifting_section: {
description: "Discover our curated tea collections, perfect for any occasion. Sustainable, premium, and beautifully packaged.",
price: "₹399/-",
cta_link: "/shop"
},
corporate_section: {
description: "Impress clients and employees with our bespoke tea experiences tailored for corporate events.",
features: ["Customizable Tea Kits", "Worldwide Shipping", "Sustainable Sourcing"],
cta_link: "/book"
}
};
// Function to render dynamic content
document.querySelectorAll('[id="gifting"] p')[0].innerHTML = dynamicContent.gifting_section.description;
document.querySelectorAll('[id="gifting"] p')[1].innerHTML = "Price: " + dynamicContent.gifting_section.price;
document.querySelectorAll('[id="gifting"] a')[0].href = dynamicContent.gifting_section.cta_link;
document.querySelectorAll('[id="corporate"] p')[0].innerHTML = dynamicContent.corporate_section.description;
const featureList = document.querySelectorAll('[id="corporate"] ul')[0];
featureList.innerHTML = dynamicContent.corporate_section.features.map(f => `<li>${f}</li>`).join('');
document.querySelectorAll('[id="corporate"] a')[0].href = dynamicContent.corporate_section.cta_link;
</script>
</main>