Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-13 00:27:47 +00:00
2 changed files with 39 additions and 48 deletions

View File

@@ -50,15 +50,15 @@ export default function LandingPage() {
testimonials={[
{
name: "Sarah Mitchell", handle: "Regular Customer", testimonial: "What a gem hidden away. The food is delicious, portions are generous, and the staff are incredibly friendly.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-business-woman-posing-outdoors_23-2148603023.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-business-woman-posing-outdoors_23-2148603023.jpg"
},
{
name: "James Chen", handle: "Coffee Enthusiast", testimonial: "GREAT coffee. Obsessed with the bagels. I keep coming back again and again.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/handsome-young-man-wearing-trendy-hat-sitting-wooden-table-coffee-shop_273609-1622.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/handsome-young-man-wearing-trendy-hat-sitting-wooden-table-coffee-shop_273609-1622.jpg"
},
{
name: "Emma Rodriguez", handle: "Bellville Local", testimonial: "Awesome little café. Clearly a local favourite. Great coffee, great sandwiches, and great service.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3947.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3947.jpg"
}
]}
testimonialRotationInterval={5000}
@@ -68,6 +68,7 @@ export default function LandingPage() {
]}
buttonAnimation="slide-up"
useInvertedBackground={false}
background={{ variant: "plain" }}
/>
</div>
@@ -79,15 +80,15 @@ export default function LandingPage() {
testimonials={[
{
id: "1", name: "Amanda Lawson", role: "Entrepreneur", company: "Bellville Business Co.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-business-woman-posing-outdoors_23-2148603023.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/front-view-smiley-business-woman-posing-outdoors_23-2148603023.jpg"
},
{
id: "2", name: "David Pieterse", role: "Designer", company: "Local Creative Studio", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/handsome-young-man-wearing-trendy-hat-sitting-wooden-table-coffee-shop_273609-1622.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/handsome-young-man-wearing-trendy-hat-sitting-wooden-table-coffee-shop_273609-1622.jpg"
},
{
id: "3", name: "Lisa Van Der Merwe", role: "Marketing Manager", company: "Cape Town Tech", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3947.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/girl-with-cheesecake_1303-3947.jpg"
},
{
id: "4", name: "Marcus Johnson", role: "Teacher", company: "Local School", rating: 5,
@@ -114,7 +115,7 @@ export default function LandingPage() {
{ value: "10+", title: "Years Roasting Excellence" },
{ value: "100%", title: "Freshly Roasted Daily" }
]}
imageSrc="http://img.b2bpic.net/free-photo/beautiful-blond-girl-with-blue-eyes-bright-pink-lips-sitting-coffee-shop-chair-she-holds-smartphone-her-hand_197531-83.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/beautiful-blond-girl-with-blue-eyes-bright-pink-lips-sitting-coffee-shop-chair-she-holds-smartphone-her-hand_197531-83.jpg"
imageAlt="Boston Coffee Roasters cozy café interior"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
@@ -130,11 +131,11 @@ export default function LandingPage() {
products={[
{
id: "1", brand: "Boston Coffee Roasters", name: "Bacon Feta Avo Toastie", price: "R85", rating: 5,
reviewCount: "340+", imageSrc: "http://img.b2bpic.net/free-photo/breakfast-with-two-breads_23-2147788617.jpg?_wi=1", imageAlt: "Bacon feta avocado toastie on sourdough"
reviewCount: "340+", imageSrc: "http://img.b2bpic.net/free-photo/breakfast-with-two-breads_23-2147788617.jpg", imageAlt: "Bacon feta avocado toastie on sourdough"
},
{
id: "2", brand: "Boston Coffee Roasters", name: "Flat White Espresso", price: "R45", rating: 5,
reviewCount: "890+", imageSrc: "http://img.b2bpic.net/free-photo/coffee-with-latte-art-decoration_1150-6325.jpg?_wi=1", imageAlt: "Silky smooth flat white coffee"
reviewCount: "890+", imageSrc: "http://img.b2bpic.net/free-photo/coffee-with-latte-art-decoration_1150-6325.jpg", imageAlt: "Silky smooth flat white coffee"
},
{
id: "3", brand: "Boston Coffee Roasters", name: "Fresh Bagel Selection", price: "R55", rating: 5,
@@ -164,15 +165,15 @@ export default function LandingPage() {
features={[
{
id: "1", title: "Artisan Coffee Excellence", author: "Daily Fresh Roasted", description: "Every bean is carefully selected and roasted to perfection, delivering the finest coffee experience in Cape Town.", tags: ["Premium", "Craft"],
imageSrc: "http://img.b2bpic.net/free-photo/coffee-with-latte-art-decoration_1150-6325.jpg?_wi=2", imageAlt: "Premium espresso coffee preparation"
imageSrc: "http://img.b2bpic.net/free-photo/coffee-with-latte-art-decoration_1150-6325.jpg", imageAlt: "Premium espresso coffee preparation"
},
{
id: "2", title: "Warm Community Atmosphere", author: "Beloved Local Favorite", description: "Friendly faces behind the counter and a welcoming space where every customer feels like family.", tags: ["Community", "Friendly"],
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-blond-girl-with-blue-eyes-bright-pink-lips-sitting-coffee-shop-chair-she-holds-smartphone-her-hand_197531-83.jpg?_wi=2", imageAlt: "Cozy café interior with customers"
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-blond-girl-with-blue-eyes-bright-pink-lips-sitting-coffee-shop-chair-she-holds-smartphone-her-hand_197531-83.jpg", imageAlt: "Cozy café interior with customers"
},
{
id: "3", title: "Fresh, Delicious Food", author: "Generously Portioned", description: "Freshly made toasted sandwiches, pastries, and daily specials that keep locals coming back again and again.", tags: ["Fresh", "Homemade"],
imageSrc: "http://img.b2bpic.net/free-photo/breakfast-with-two-breads_23-2147788617.jpg?_wi=2", imageAlt: "Fresh toasted sandwich with quality ingredients"
imageSrc: "http://img.b2bpic.net/free-photo/breakfast-with-two-breads_23-2147788617.jpg", imageAlt: "Fresh toasted sandwich with quality ingredients"
}
]}
animationType="slide-up"
@@ -218,6 +219,8 @@ export default function LandingPage() {
]}
buttonAnimation="slide-up"
useInvertedBackground={true}
background={{ variant: "plain" }}
testimonials={[]}
/>
</div>

View File

@@ -1,51 +1,39 @@
"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;
fontSize?: number;
fontFamily?: string;
fill?: string;
className?: string;
}
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,
fontSize = 24,
fontFamily = 'Arial, sans-serif',
fill = '#000000',
className = '',
}) => {
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 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
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"
}}
y="50%"
fontSize={fontSize}
fontFamily={fontFamily}
fill={fill}
dominantBaseline="middle"
textAnchor="start"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;