Merge version_1 into main #2
@@ -47,21 +47,22 @@ export default function LandingPage() {
|
||||
tag="Custom Cake Creations"
|
||||
tagIcon={Cake}
|
||||
tagAnimation="slide-up"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/vertical-picture-white-delicious-christmas-cake-with-nuts-mandarine_181624-17966.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/vertical-picture-white-delicious-christmas-cake-with-nuts-mandarine_181624-17966.jpg"
|
||||
imageAlt="Stunning custom wedding cake with elegant decoration"
|
||||
mediaAnimation="slide-up"
|
||||
background={{ variant: "glowing-orb" }}
|
||||
testimonials={[
|
||||
{
|
||||
name: "Marie Leblanc", handle: "Wedding Bride", testimonial: "DelyssCreation created the most beautiful wedding cake I could have imagined. Every detail was perfect and absolutely delicious!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-couple-celebrating-new-years-eve_329181-13350.jpg?_wi=1", imageAlt: "happy bride holding wedding cake"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-couple-celebrating-new-years-eve_329181-13350.jpg", imageAlt: "happy bride holding wedding cake"
|
||||
},
|
||||
{
|
||||
name: "Sophie Dupont", handle: "Birthday Parent", testimonial: "My daughter's birthday cake was absolutely magical. The team understood exactly what I wanted and delivered beyond expectations.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/senior-people-celebrating-birthday_23-2148128183.jpg?_wi=1", imageAlt: "happy family birthday cake celebration"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/senior-people-celebrating-birthday_23-2148128183.jpg", imageAlt: "happy family birthday cake celebration"
|
||||
},
|
||||
{
|
||||
name: "Jean Martin", handle: "Corporate Event", testimonial: "Professional, creative, and delicious. DelyssCreation handled our event perfectly with stunning custom creations.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/male-chef-holding-dessert-cake-plates-hat-apron-uniform_176474-8983.jpg?_wi=1", imageAlt: "satisfied customer showing beautiful cake"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/male-chef-holding-dessert-cake-plates-hat-apron-uniform_176474-8983.jpg", imageAlt: "satisfied customer showing beautiful cake"
|
||||
}
|
||||
]}
|
||||
buttons={[
|
||||
@@ -93,11 +94,11 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cupcakes & Cake Pops", description: "Individual gourmet cupcakes and decorative cake pops perfect for parties, events, or gifts. Beautifully frosted and creatively decorated for maximum impact.", imageSrc: "http://img.b2bpic.net/free-photo/creative-cake-pop-concept_23-2148094376.jpg?_wi=1", imageAlt: "decorative cupcakes with frosting design"
|
||||
title: "Cupcakes & Cake Pops", description: "Individual gourmet cupcakes and decorative cake pops perfect for parties, events, or gifts. Beautifully frosted and creatively decorated for maximum impact.", imageSrc: "http://img.b2bpic.net/free-photo/creative-cake-pop-concept_23-2148094376.jpg", imageAlt: "decorative cupcakes with frosting design"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Cape Cakes & Anniversary Cakes", description: "Sophisticated cape cakes and romantic anniversary cakes designed to celebrate love and special milestones with elegance and artistry.", imageSrc: "http://img.b2bpic.net/free-photo/creative-cake-pop-concept_23-2148094376.jpg?_wi=2", imageAlt: "decorative cupcakes with frosting design"
|
||||
title: "Cape Cakes & Anniversary Cakes", description: "Sophisticated cape cakes and romantic anniversary cakes designed to celebrate love and special milestones with elegance and artistry.", imageSrc: "http://img.b2bpic.net/free-photo/creative-cake-pop-concept_23-2148094376.jpg", imageAlt: "decorative cupcakes with frosting design"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -150,6 +151,7 @@ export default function LandingPage() {
|
||||
imageAlt="DelyssCreation professional pastry studio"
|
||||
useInvertedBackground={false}
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="none"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -164,13 +166,13 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Marie Leblanc", role: "Wedding Bride", testimonial: "DelyssCreation created the most breathtaking wedding cake I could have ever imagined. Every petal, every detail was perfect. Our guests are still talking about how delicious it was!", imageSrc: "http://img.b2bpic.net/free-photo/young-couple-celebrating-new-years-eve_329181-13350.jpg?_wi=2", imageAlt: "happy bride holding wedding cake"
|
||||
id: "1", name: "Marie Leblanc", role: "Wedding Bride", testimonial: "DelyssCreation created the most breathtaking wedding cake I could have ever imagined. Every petal, every detail was perfect. Our guests are still talking about how delicious it was!", imageSrc: "http://img.b2bpic.net/free-photo/young-couple-celebrating-new-years-eve_329181-13350.jpg", imageAlt: "happy bride holding wedding cake"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Sophie Dupont", role: "Mother of Three", testimonial: "We've used DelyssCreation for all three of my children's birthday cakes. Each one has been a hit, custom-designed exactly how my kids wanted them. Truly exceptional!", imageSrc: "http://img.b2bpic.net/free-photo/senior-people-celebrating-birthday_23-2148128183.jpg?_wi=2", imageAlt: "happy family birthday cake celebration"
|
||||
id: "2", name: "Sophie Dupont", role: "Mother of Three", testimonial: "We've used DelyssCreation for all three of my children's birthday cakes. Each one has been a hit, custom-designed exactly how my kids wanted them. Truly exceptional!", imageSrc: "http://img.b2bpic.net/free-photo/senior-people-celebrating-birthday_23-2148128183.jpg", imageAlt: "happy family birthday cake celebration"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Jean Martin", role: "Corporate Event Planner", testimonial: "Professional, creative, responsive, and absolutely delicious. DelyssCreation handled our company event perfectly with stunning custom creations that impressed everyone.", imageSrc: "http://img.b2bpic.net/free-photo/male-chef-holding-dessert-cake-plates-hat-apron-uniform_176474-8983.jpg?_wi=2", imageAlt: "satisfied customer showing beautiful cake"
|
||||
id: "3", name: "Jean Martin", role: "Corporate Event Planner", testimonial: "Professional, creative, responsive, and absolutely delicious. DelyssCreation handled our company event perfectly with stunning custom creations that impressed everyone.", imageSrc: "http://img.b2bpic.net/free-photo/male-chef-holding-dessert-cake-plates-hat-apron-uniform_176474-8983.jpg", imageAlt: "satisfied customer showing beautiful cake"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Isabelle Fournier", role: "Anniversary Celebrant", testimonial: "Our 25th anniversary cake from DelyssCreation was romantic perfection. The taste matched the beauty. This is true artistry in cake form!", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-man-celebrating-birthday_23-2150599040.jpg", imageAlt: "delighted guest with gourmet cake slice"
|
||||
@@ -220,7 +222,7 @@ export default function LandingPage() {
|
||||
required: true
|
||||
}}
|
||||
useInvertedBackground={false}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/vertical-picture-white-delicious-christmas-cake-with-nuts-mandarine_181624-17966.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/vertical-picture-white-delicious-christmas-cake-with-nuts-mandarine_181624-17966.jpg"
|
||||
imageAlt="Beautiful custom cake creation"
|
||||
mediaAnimation="slide-up"
|
||||
mediaPosition="right"
|
||||
|
||||
@@ -1,51 +1,35 @@
|
||||
"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' | 'middle' | 'hanging' | 'mathematical';
|
||||
}
|
||||
|
||||
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 50"
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<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%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline={dominantBaseline}
|
||||
className={textClassName}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user