Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 08:37:44 +00:00
2 changed files with 45 additions and 44 deletions

View File

@@ -57,11 +57,11 @@ export default function LandingPage() {
buttonAnimation="slide-up"
carouselItems={[
{ id: "carousel-1", imageSrc: "http://img.b2bpic.net/free-photo/lifestyle-queer-couples-celebrating-birthday_23-2149667998.jpg", imageAlt: "Beautiful celebration cake" },
{ id: "carousel-2", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-fruity-cake-slice_23-2148536830.jpg?_wi=1", imageAlt: "Blueberry Cheesecake" },
{ id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/pie-with-jam-raspberries-top_140725-6294.jpg?_wi=1", imageAlt: "Niagra Rainbow Pastry" },
{ id: "carousel-4", imageSrc: "http://img.b2bpic.net/free-photo/chocolate-frappe-with-vanilla-ice-cream_1339-6959.jpg?_wi=1", imageAlt: "KitKat Shake" },
{ id: "carousel-5", imageSrc: "http://img.b2bpic.net/free-photo/strawberry-smoothies_74190-2523.jpg?_wi=1", imageAlt: "Dry Fruit Falooda" },
{ id: "carousel-6", imageSrc: "http://img.b2bpic.net/free-photo/top-view-baked-bangles-delicious-pastries-along-with-milk-coffee-light-desk-sweet-pastry-cookie-sugar-bake_140725-32858.jpg?_wi=1", imageAlt: "Sausage Bun" }
{ id: "carousel-2", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-fruity-cake-slice_23-2148536830.jpg", imageAlt: "Blueberry Cheesecake" },
{ id: "carousel-3", imageSrc: "http://img.b2bpic.net/free-photo/pie-with-jam-raspberries-top_140725-6294.jpg", imageAlt: "Niagra Rainbow Pastry" },
{ id: "carousel-4", imageSrc: "http://img.b2bpic.net/free-photo/chocolate-frappe-with-vanilla-ice-cream_1339-6959.jpg", imageAlt: "KitKat Shake" },
{ id: "carousel-5", imageSrc: "http://img.b2bpic.net/free-photo/strawberry-smoothies_74190-2523.jpg", imageAlt: "Dry Fruit Falooda" },
{ id: "carousel-6", imageSrc: "http://img.b2bpic.net/free-photo/top-view-baked-bangles-delicious-pastries-along-with-milk-coffee-light-desk-sweet-pastry-cookie-sugar-bake_140725-32858.jpg", imageAlt: "Sausage Bun" }
]}
autoPlay={true}
autoPlayInterval={4000}
@@ -83,6 +83,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-photo/waitress-holding-berries-sponge-cake_23-2147984966.jpg"
imageAlt="Zelebrae Pastries cozy cafe interior"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
useInvertedBackground={false}
/>
</div>
@@ -94,12 +95,12 @@ export default function LandingPage() {
tag="Available Daily"
tagAnimation="slide-up"
products={[
{ id: "1", brand: "Zelebrae Pastries", name: "Blueberry Cheesecake", price: "₹450", rating: 5, reviewCount: "120+", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-fruity-cake-slice_23-2148536830.jpg?_wi=2", imageAlt: "Blueberry Cheesecake" },
{ id: "2", brand: "Zelebrae Pastries", name: "Niagra Rainbow Pastry", price: "₹380", rating: 5, reviewCount: "98+", imageSrc: "http://img.b2bpic.net/free-photo/pie-with-jam-raspberries-top_140725-6294.jpg?_wi=2", imageAlt: "Niagra Rainbow Pastry" },
{ id: "3", brand: "Zelebrae Pastries", name: "KitKat Shake", price: "₹220", rating: 5, reviewCount: "156+", imageSrc: "http://img.b2bpic.net/free-photo/chocolate-frappe-with-vanilla-ice-cream_1339-6959.jpg?_wi=2", imageAlt: "KitKat Shake" },
{ id: "1", brand: "Zelebrae Pastries", name: "Blueberry Cheesecake", price: "₹450", rating: 5, reviewCount: "120+", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-fruity-cake-slice_23-2148536830.jpg", imageAlt: "Blueberry Cheesecake" },
{ id: "2", brand: "Zelebrae Pastries", name: "Niagra Rainbow Pastry", price: "₹380", rating: 5, reviewCount: "98+", imageSrc: "http://img.b2bpic.net/free-photo/pie-with-jam-raspberries-top_140725-6294.jpg", imageAlt: "Niagra Rainbow Pastry" },
{ id: "3", brand: "Zelebrae Pastries", name: "KitKat Shake", price: "₹220", rating: 5, reviewCount: "156+", imageSrc: "http://img.b2bpic.net/free-photo/chocolate-frappe-with-vanilla-ice-cream_1339-6959.jpg", imageAlt: "KitKat Shake" },
{ id: "4", brand: "Zelebrae Pastries", name: "Chicken Burger", price: "₹180", rating: 5, reviewCount: "87+", imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-cheeseburger-dark-background_179666-19336.jpg", imageAlt: "Chicken Burger" },
{ id: "5", brand: "Zelebrae Pastries", name: "Dry Fruit Falooda", price: "₹210", rating: 5, reviewCount: "134+", imageSrc: "http://img.b2bpic.net/free-photo/strawberry-smoothies_74190-2523.jpg?_wi=2", imageAlt: "Dry Fruit Falooda" },
{ id: "6", brand: "Zelebrae Pastries", name: "Sausage Bun", price: "₹140", rating: 5, reviewCount: "76+", imageSrc: "http://img.b2bpic.net/free-photo/top-view-baked-bangles-delicious-pastries-along-with-milk-coffee-light-desk-sweet-pastry-cookie-sugar-bake_140725-32858.jpg?_wi=2", imageAlt: "Sausage Bun" }
{ id: "5", brand: "Zelebrae Pastries", name: "Dry Fruit Falooda", price: "₹210", rating: 5, reviewCount: "134+", imageSrc: "http://img.b2bpic.net/free-photo/strawberry-smoothies_74190-2523.jpg", imageAlt: "Dry Fruit Falooda" },
{ id: "6", brand: "Zelebrae Pastries", name: "Sausage Bun", price: "₹140", rating: 5, reviewCount: "76+", imageSrc: "http://img.b2bpic.net/free-photo/top-view-baked-bangles-delicious-pastries-along-with-milk-coffee-light-desk-sweet-pastry-cookie-sugar-bake_140725-32858.jpg", imageAlt: "Sausage Bun" }
]}
gridVariant="three-columns-all-equal-width"
animationType="slide-up"

View File

@@ -1,51 +1,51 @@
"use client";
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
import React from 'react';
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
text?: string;
className?: string;
textClassName?: string;
animateOnHover?: boolean;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text = 'LOGO',
className = '',
textClassName = '',
animateOnHover = true,
}) => {
const id = React.useId();
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width="200"
height="80"
viewBox="0 0 200 80"
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<linearGradient id={`gradient-${id}`} x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style={{ stopColor: '#3b82f6', stopOpacity: 1 }} />
<stop offset="100%" style={{ stopColor: '#8b5cf6', stopOpacity: 1 }} />
</linearGradient>
</defs>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="middle"
className={`text-lg font-bold ${textClassName}`}
fill={`url(#gradient-${id})`}
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
fontSize: '24px',
fontWeight: 'bold',
transition: animateOnHover ? 'transform 0.3s ease' : 'none',
}}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;