Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 17:46:33 +00:00
2 changed files with 27 additions and 42 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="smallMedium"
sizing="largeSizeMediumTitles"
background="aurora"
background="circleGradient"
cardStyle="gradient-bordered"
primaryButtonStyle="double-inset"
secondaryButtonStyle="glass"
@@ -45,7 +45,7 @@ export default function LandingPage() {
<HeroSplitKpi
title="Premium Chocolate Ice Cream Crafted for You"
description="Experience the ultimate indulgence with our artisanal chocolate ice cream, made fresh daily using only the finest Belgian chocolate and premium ingredients. From classic dark chocolate to decadent chocolate-hazelnut swirls, discover your new favorite flavor."
background={{ variant: "aurora" }}
background={{ variant: "glowing-orb" }}
kpis={[
{ value: "100%", label: "Premium Ingredients" },
{ value: "15+", label: "Chocolate Flavors" },
@@ -158,10 +158,10 @@ export default function LandingPage() {
useInvertedBackground={false}
testimonials={[
{
id: "1", title: "Best Ice Cream Ever!", quote: "The Dark Chocolate Elegance is absolutely divine. Creamy, rich, and tastes like premium chocolate. I visit every week!", name: "Sarah Mitchell", role: "Local Customer", imageSrc: "http://img.b2bpic.net/free-photo/sideways-shot-beautiful-cheerful-female-model-has-shining-smile-looks-dreamy-into-distance-remembers-pleasant-date-with-boyfriend-has-romantic-feelings-rests-sidewalk-outdoor-cafe_273609-2728.jpg?_wi=1", imageAlt: "Sarah Mitchell"
id: "1", title: "Best Ice Cream Ever!", quote: "The Dark Chocolate Elegance is absolutely divine. Creamy, rich, and tastes like premium chocolate. I visit every week!", name: "Sarah Mitchell", role: "Local Customer", imageSrc: "http://img.b2bpic.net/free-photo/sideways-shot-beautiful-cheerful-female-model-has-shining-smile-looks-dreamy-into-distance-remembers-pleasant-date-with-boyfriend-has-romantic-feelings-rests-sidewalk-outdoor-cafe_273609-2728.jpg", imageAlt: "Sarah Mitchell"
},
{
id: "2", title: "Worth Every Penny", quote: "You can taste the difference when ingredients are premium. This ice cream is smooth, not icy, and the flavor is incredible.", name: "Michael Chen", role: "Food Enthusiast", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-confident-businessman-wearing-glasses_158595-5356.jpg?_wi=1", imageAlt: "Michael Chen"
id: "2", title: "Worth Every Penny", quote: "You can taste the difference when ingredients are premium. This ice cream is smooth, not icy, and the flavor is incredible.", name: "Michael Chen", role: "Food Enthusiast", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-confident-businessman-wearing-glasses_158595-5356.jpg", imageAlt: "Michael Chen"
},
{
id: "3", title: "A Chocolate Lover's Paradise", quote: "Finally found a chocolate ice cream that doesn't taste watered down. The variety of flavors keeps me coming back for new favorites.", name: "Emily Rodriguez", role: "Regular Customer", imageSrc: "http://img.b2bpic.net/free-photo/coffee-break_1098-14791.jpg", imageAlt: "Emily Rodriguez"
@@ -170,10 +170,10 @@ export default function LandingPage() {
id: "4", title: "Perfect for Special Occasions", quote: "We served Chocolate Dreams at our wedding. Every guest raved about it. The team was helpful and professional throughout.", name: "David Kumar", role: "Event Planner", imageSrc: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1613.jpg", imageAlt: "David Kumar"
},
{
id: "5", title: "Allergen-Friendly & Delicious", quote: "Rarely find ice cream that my son can safely enjoy. Chocolate Dreams takes allergies seriously and the product is amazing.", name: "Jessica Thompson", role: "Parent", imageSrc: "http://img.b2bpic.net/free-photo/sideways-shot-beautiful-cheerful-female-model-has-shining-smile-looks-dreamy-into-distance-remembers-pleasant-date-with-boyfriend-has-romantic-feelings-rests-sidewalk-outdoor-cafe_273609-2728.jpg?_wi=2", imageAlt: "Jessica Thompson"
id: "5", title: "Allergen-Friendly & Delicious", quote: "Rarely find ice cream that my son can safely enjoy. Chocolate Dreams takes allergies seriously and the product is amazing.", name: "Jessica Thompson", role: "Parent", imageSrc: "http://img.b2bpic.net/free-photo/sideways-shot-beautiful-cheerful-female-model-has-shining-smile-looks-dreamy-into-distance-remembers-pleasant-date-with-boyfriend-has-romantic-feelings-rests-sidewalk-outdoor-cafe_273609-2728.jpg", imageAlt: "Jessica Thompson"
},
{
id: "6", title: "Consistent Excellence", quote: "Every visit is consistently fantastic. The ice cream quality never varies, and the staff is always friendly and knowledgeable.", name: "Robert Hayes", role: "Corporate Executive", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-confident-businessman-wearing-glasses_158595-5356.jpg?_wi=2", imageAlt: "Robert Hayes"
id: "6", title: "Consistent Excellence", quote: "Every visit is consistently fantastic. The ice cream quality never varies, and the staff is always friendly and knowledgeable.", name: "Robert Hayes", role: "Corporate Executive", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-confident-businessman-wearing-glasses_158595-5356.jpg", imageAlt: "Robert Hayes"
}
]}
/>

View File

@@ -1,51 +1,36 @@
"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;
dominantBaseline?: "auto" | "baseline" | "hanging" | "ideographic" | "mathematical" | "central" | "middle";
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = "", textClassName = "", dominantBaseline = "middle"}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox="0 0 200 80"
xmlns="http://www.w3.org/2000/svg"
className={className}
aria-label={`Logo: ${text}`}
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
}}
x="50%"
y="50%"
dominantBaseline={dominantBaseline}
textAnchor="middle"
className={textClassName}
fontSize="32"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;