Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 13:44:23 +00:00
2 changed files with 22 additions and 48 deletions

View File

@@ -66,6 +66,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-photo/male-barista-pouring-water-through-grounds-making-pouron-coffee_176420-7893.jpg"
imageAlt="Cai and the Chealsons team preparing specialty coffee"
mediaAnimation="blur-reveal"
metricsAnimation="slide-up"
useInvertedBackground={false}
/>
</div>
@@ -128,28 +129,22 @@ export default function LandingPage() {
tag="Customer Love"
testimonials={[
{
id: "1", name: "James Mitchell", handle: "@jamesmitchell", testimonial: "So great to see Cai and the team at Chealsons sustaining us with outstanding coffee and service. This place is a true gem on Bankside.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-typing-her-laptop_231208-13559.jpg", imageAlt: "happy customer portrait professional headshot smiling"
id: "1", name: "James Mitchell", handle: "@jamesmitchell", testimonial: "So great to see Cai and the team at Chealsons sustaining us with outstanding coffee and service. This place is a true gem on Bankside.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-typing-her-laptop_231208-13559.jpg", imageAlt: "happy customer portrait professional headshot smiling"
},
{
id: "2", name: "Sophie Richardson", handle: "@sophierichards", testimonial: "What a lovely experience and all adds to the atmosphere here as the winter sun goes down. The coffee is exceptional and the hospitality is genuine.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/close-up-man-with-bright-smile_23-2148563438.jpg", imageAlt: "professional man headshot business portrait smiling"
id: "2", name: "Sophie Richardson", handle: "@sophierichards", testimonial: "What a lovely experience and all adds to the atmosphere here as the winter sun goes down. The coffee is exceptional and the hospitality is genuine.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/close-up-man-with-bright-smile_23-2148563438.jpg", imageAlt: "professional man headshot business portrait smiling"
},
{
id: "3", name: "Marcus Chen", handle: "@marcusc", testimonial: "Chealsons has become my daily ritual. The quality of the beans, the skill of the baristas, and the warmth of the space make every visit worthwhile.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/cheerful-young-caucasian-female-wearing-her-red-hair-bun-laughing-out-loud_273609-9260.jpg", imageAlt: "creative professional woman portrait confident smile"
id: "3", name: "Marcus Chen", handle: "@marcusc", testimonial: "Chealsons has become my daily ritual. The quality of the beans, the skill of the baristas, and the warmth of the space make every visit worthwhile.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/cheerful-young-caucasian-female-wearing-her-red-hair-bun-laughing-out-loud_273609-9260.jpg", imageAlt: "creative professional woman portrait confident smile"
},
{
id: "4", name: "Elena Rossi", handle: "@elenarossi", testimonial: "Outstanding coffee paired with outstanding service. Cai and the team genuinely care about their craft and their customers. Highly recommended.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/person-indian-origin-having-fun_23-2150285308.jpg", imageAlt: "friendly professional man portrait headshot confident"
id: "4", name: "Elena Rossi", handle: "@elenarossi", testimonial: "Outstanding coffee paired with outstanding service. Cai and the team genuinely care about their craft and their customers. Highly recommended.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/person-indian-origin-having-fun_23-2150285308.jpg", imageAlt: "friendly professional man portrait headshot confident"
},
{
id: "5", name: "David Thompson", handle: "@davidthompson", testimonial: "A sanctuary for coffee lovers. The attention to detail is evident in every aspect—from the sourcing of beans to the presentation of each cup.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-beautiful-businesswoman-smiling-workplace-office_176420-6981.jpg", imageAlt: "happy woman customer professional portrait smiling"
id: "5", name: "David Thompson", handle: "@davidthompson", testimonial: "A sanctuary for coffee lovers. The attention to detail is evident in every aspect—from the sourcing of beans to the presentation of each cup.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-beautiful-businesswoman-smiling-workplace-office_176420-6981.jpg", imageAlt: "happy woman customer professional portrait smiling"
},
{
id: "6", name: "Lena Bergström", handle: "@lenaberg", testimonial: "Perfect coffee, perfect atmosphere, perfect service. Chealsons sets the standard for specialty coffee on the South Bank.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/happy-young-businessman-walking-near-business-center_171337-19803.jpg", imageAlt: "satisfied customer man portrait professional smiling"
id: "6", name: "Lena Bergström", handle: "@lenaberg", testimonial: "Perfect coffee, perfect atmosphere, perfect service. Chealsons sets the standard for specialty coffee on the South Bank.", rating: 5, imageSrc: "http://img.b2bpic.net/free-photo/happy-young-businessman-walking-near-business-center_171337-19803.jpg", imageAlt: "satisfied customer man portrait professional smiling"
}
]}
showRating={true}

View File

@@ -1,51 +1,30 @@
"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;
}
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 = '' }) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
viewBox="0 0 200 50"
className={`w-auto h-8 ${className}`}
aria-label={text}
role="img"
aria-label={`${logoText} logo`}
>
<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="10"
y="35"
fontSize="32"
fontWeight="bold"
fill="currentColor"
dominantBaseline="middle"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;