From c67d0d704b11cf7b5d89d85106ddf89ff4cee361 Mon Sep 17 00:00:00 2001 From: bender Date: Mon, 8 Jun 2026 10:29:37 +0000 Subject: [PATCH] Switch to version 3: added src/pages/HomePage/sections/About.tsx --- src/pages/HomePage/sections/About.tsx | 95 +++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 src/pages/HomePage/sections/About.tsx diff --git a/src/pages/HomePage/sections/About.tsx b/src/pages/HomePage/sections/About.tsx new file mode 100644 index 0000000..be308ae --- /dev/null +++ b/src/pages/HomePage/sections/About.tsx @@ -0,0 +1,95 @@ +import React, { useState, useEffect } from 'react'; +import { Wheat, Heart, Truck, Clock } from "lucide-react"; +import Tag from "@/components/ui/Tag"; +import ImageOrVideo from "@/components/ui/ImageOrVideo"; +import ScrollReveal from "@/components/ui/ScrollReveal"; + +export default function AboutSection() { + const [timeLeft, setTimeLeft] = useState(5 * 60); + + useEffect(() => { + const timer = setInterval(() => { + setTimeLeft((prev) => (prev > 0 ? prev - 1 : 0)); + }, 1000); + return () => clearInterval(timer); + }, []); + + const minutes = Math.floor(timeLeft / 60); + const seconds = timeLeft % 60; + + return ( +
+
+
+ +
+ +
+ +
+

+ Crafting Joy, One Bake at a Time +

+

+ At Sweet Delights Bakery, we believe in the magic of fresh ingredients and traditional techniques. Every pastry, cake, and bread is baked with passion and precision, ensuring a delightful experience with every bite. From our family kitchen to your table, we bring you the taste of homemade perfection. +

+
+ +
+ {[ + { + icon: Wheat, + title: "Premium Ingredients", + description: "Sourced locally and globally for the finest quality and flavor." + }, + { + icon: Heart, + title: "Handcrafted with Love", + description: "Each item is carefully prepared by our skilled bakers." + }, + { + icon: Truck, + title: "Convenient Delivery", + description: "Freshness brought directly to your home or office." + } + ].map((item, idx) => ( +
+
+ +
+
+

{item.title}

+

{item.description}

+
+
+ ))} +
+
+ + +
+ + + {/* Countdown Timer Overlay */} +
+
+ + Today's Offer Ends +
+
+ {String(minutes).padStart(2, '0')}:{String(seconds).padStart(2, '0')} +
+ +
+
+
+
+
+
+ ); +}