Free
Announcement
NutriBite Announcement
A announcement block extracted from the NutriBite template, available in Tailwind CSS, Bootstrap, DaisyUI, and Material Design.
0
17
A announcement block extracted from the NutriBite template, available in Tailwind CSS, Bootstrap, DaisyUI, and Material Design.
<!DOCTYPE html>
<html lang="en">
<head>
<script>
window.FontAwesomeConfig = { autoReplaceSvg: "nest" };
</script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js"
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>NutriBite Announcement | Tailwind CSS UI Block</title>
<meta
name="description"
content="A announcement block extracted from the NutriBite template, available in Tailwind CSS, Bootstrap, DaisyUI, and Material Design."
/>
<meta
name="keywords"
content="healthy meal delivery template, meal subscription landing page, organic food website template, nutrition brand design, wellness food service"
/>
<meta name="author" content="Let's templates">
<link rel="canonical" href="">
<meta property="og:type" content="product">
<meta property="og:site_name" content="Let's templates">
<meta property="og:locale" content="en_US">
<meta property="og:url" content="">
<meta property="og:title" content="NutriBite | Tailwind CSS Healthy Meal Delivery Template">
<meta property="og:description" content="A responsive meal delivery landing page template for healthy food subscriptions, organic meal prep services, nutrition brands, and wellness-focused food businesses.">
<meta property="og:image" content="">
<meta property="og:image:alt" content="NutriBite template preview">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="">
<meta name="twitter:title" content="NutriBite | Tailwind CSS Healthy Meal Delivery Template">
<meta name="twitter:description" content="A responsive meal delivery landing page template for healthy food subscriptions, organic meal prep services, nutrition brands, and wellness-focused food businesses.">
<meta name="twitter:image" content="">
<meta name="twitter:image:alt" content="NutriBite template preview">
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
sage: "#6b7a52",
"sage-dark": "#4a5638",
cream: "#f4eddc",
"cream-dark": "#e8dfc8",
"nb-dark": "#1a1a18",
},
},
},
};
</script>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Fraunces:wght@400;700;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"
/>
<style>
body {
font-family: "Plus Jakarta Sans", sans-serif;
scroll-behavior: smooth;
background-color: #f4eddc;
color: #1a1a18;
}
.font-display {
font-family: "Fraunces", serif;
}
.meal-tab-active {
color: #6b7a52;
border-bottom: 2px solid #6b7a52;
font-weight: 700;
}
.meal-tab:not(.meal-tab-active) {
border-bottom: 2px solid transparent;
}
</style>
</head>
<body class="antialiased">
<!-- block:start announcement -->
<div id="announcement-bar" class="bg-sage text-white text-center py-2.5 text-xs font-semibold tracking-wide">
Free delivery for first-time customers. Use code:
<span class="font-black underline cursor-pointer">NUTRIFRESH</span>
</div>
<!-- block:end announcement -->
<script>
document.querySelectorAll(".meal-tab").forEach(function (tab) {
tab.addEventListener("click", function () {
document.querySelectorAll(".meal-tab").forEach(function (t) {
t.classList.remove("meal-tab-active");
t.classList.add("text-gray-400");
});
this.classList.add("meal-tab-active");
this.classList.remove("text-gray-400");
});
});
const testimonials = [
{
quote: "I never thought healthy eating could be this easy. The portions are perfect, the flavors are great, and I've lost 4 kg in just six weeks without feeling hungry or deprived.",
author: "Sarah Milero",
location: "Sydney",
before: "https://images.unsplash.com/photo-1524594081293-190a2fe0baae?w=400&q=80",
after: "https://images.unsplash.com/photo-1571019613454-1cb2f99b2d8b?w=400&q=80",
beforeAlt: "Sarah before starting the NutriBite Weight Loss Plan",
afterAlt: "Sarah after six weeks on the NutriBite Weight Loss Plan",
},
{
quote: "Within two weeks I felt lighter and more energized. The Fight Bloat meals are satisfying, thoughtfully seasoned, and easy to fit into my busiest workdays.",
author: "Maya Chen",
location: "Melbourne",
before: "https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=400&q=80",
after: "https://images.unsplash.com/photo-1538805060514-97d9cc17730c?w=400&q=80",
beforeAlt: "Maya before starting the NutriBite Fight Bloat Plan",
afterAlt: "Maya feeling energized after the NutriBite Fight Bloat Plan",
},
{
quote: "The Vegan Plan proved that plant-based food can be convenient and genuinely exciting. Every delivery feels fresh, colorful, and completely different from the last.",
author: "Avery Williams",
location: "Brisbane",
before: "https://images.unsplash.com/photo-1518611012118-696072aa579a?w=400&q=80",
after: "https://images.unsplash.com/photo-1518310383802-640c2de311b2?w=400&q=80",
beforeAlt: "Avery before switching to the NutriBite Vegan Plan",
afterAlt: "Avery thriving on the NutriBite Vegan Plan",
},
{
quote: "NutriBite takes the guesswork out of eating well. The Balanced Meal Plan keeps my energy steady, and dinner is one less thing I need to plan every day.",
author: "Daniel Brooks",
location: "Perth",
before: "https://images.unsplash.com/photo-1571019614242-c5c5dee9f50b?w=400&q=80",
after: "https://images.unsplash.com/photo-1581009146145-b5ef050c2e1e?w=400&q=80",
beforeAlt: "Daniel before starting the NutriBite Balanced Meal Plan",
afterAlt: "Daniel after following the NutriBite Balanced Meal Plan",
},
];
let activeTestimonial = 0;
const testimonialQuote = document.getElementById("testimonial-quote");
const testimonialAuthor = document.getElementById("testimonial-author");
const testimonialLocation = document.getElementById("testimonial-location");
const testimonialBeforeImage = document.getElementById("testimonial-before-image");
const testimonialAfterImage = document.getElementById("testimonial-after-image");
const testimonialPlans = document.querySelectorAll(".testimonial-plan");
const testimonialAvatars = document.querySelectorAll(".testimonial-avatar");
function showTestimonial(index) {
activeTestimonial = (index + testimonials.length) % testimonials.length;
const testimonial = testimonials[activeTestimonial];
testimonialQuote.textContent = `“${testimonial.quote}”`;
testimonialAuthor.textContent = testimonial.author;
testimonialLocation.textContent = testimonial.location;
testimonialBeforeImage.src = testimonial.before;
testimonialBeforeImage.alt = testimonial.beforeAlt;
testimonialAfterImage.src = testimonial.after;
testimonialAfterImage.alt = testimonial.afterAlt;
testimonialPlans.forEach(function (plan, planIndex) {
const isActive = planIndex === activeTestimonial;
plan.setAttribute("aria-selected", String(isActive));
plan.classList.toggle("bg-sage", isActive);
plan.classList.toggle("text-white", isActive);
plan.classList.toggle("bg-white", !isActive);
plan.classList.toggle("text-gray-500", !isActive);
});
testimonialAvatars.forEach(function (avatar, avatarIndex) {
const isActive = avatarIndex === activeTestimonial % testimonialAvatars.length;
avatar.classList.toggle("opacity-60", !isActive);
avatar.classList.toggle("ring-2", isActive);
avatar.classList.toggle("ring-sage", isActive);
avatar.classList.toggle("ring-offset-2", isActive);
avatar.classList.toggle("ring-offset-cream", isActive);
});
}
document.getElementById("testimonial-prev").addEventListener("click", function () {
showTestimonial(activeTestimonial - 1);
});
document.getElementById("testimonial-next").addEventListener("click", function () {
showTestimonial(activeTestimonial + 1);
});
testimonialPlans.forEach(function (plan) {
plan.addEventListener("click", function () {
showTestimonial(Number(this.dataset.testimonialIndex));
});
});
</script>
</body>
</html>
Free
Business
Unlock the entire library of premium templates and blocks. Renews automatically, cancel anytime.