Merge version_1 into main #2

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

View File

@@ -52,15 +52,15 @@ export default function LandingPage() {
testimonials={[
{
name: "Thabo M.", handle: "Regular Customer", testimonial: "Best kota in Arcadia! Fast, fresh, and feels like home every time.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/closeup-goodlooking-tender-friendly-pretty-middleaged-30s-woman-extend-arm-hold-camera-hand-smiling-broadly-taking-selfie-photographing-record-videomessage-calling-husband_176420-51274.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/closeup-goodlooking-tender-friendly-pretty-middleaged-30s-woman-extend-arm-hold-camera-hand-smiling-broadly-taking-selfie-photographing-record-videomessage-calling-husband_176420-51274.jpg"
},
{
name: "Sipho K.", handle: "Local Worker", testimonial: "My lunch break isn't complete without MAMOUSH. The owners treat everyone with respect.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/confident-woman-being-body-positive_23-2148974042.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/confident-woman-being-body-positive_23-2148974042.jpg"
},
{
name: "Naledi T.", handle: "Neighborhood Resident", testimonial: "Affordable, delicious, and genuinely welcoming. A real community gem.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-woman-wearing-striped-shirt-eyeglasses_273609-13250.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/young-woman-wearing-striped-shirt-eyeglasses_273609-13250.jpg"
}
]}
buttons={[
@@ -69,7 +69,7 @@ export default function LandingPage() {
]}
buttonAnimation="blur-reveal"
useInvertedBackground={false}
background={{ variant: "circleGradient" }}
background={{ variant: "radial-gradient" }}
/>
</div>
@@ -124,15 +124,15 @@ export default function LandingPage() {
testimonials={[
{
id: "1", name: "Thabo Mthembu", role: "Software Developer", company: "Tech Worker, Arcadia", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/closeup-goodlooking-tender-friendly-pretty-middleaged-30s-woman-extend-arm-hold-camera-hand-smiling-broadly-taking-selfie-photographing-record-videomessage-calling-husband_176420-51274.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/closeup-goodlooking-tender-friendly-pretty-middleaged-30s-woman-extend-arm-hold-camera-hand-smiling-broadly-taking-selfie-photographing-record-videomessage-calling-husband_176420-51274.jpg"
},
{
id: "2", name: "Naledi Thorne", role: "Student", company: "University of Pretoria", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/confident-woman-being-body-positive_23-2148974042.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/confident-woman-being-body-positive_23-2148974042.jpg"
},
{
id: "3", name: "Sipho Khumalo", role: "Construction Manager", company: "Local Builder", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/young-woman-wearing-striped-shirt-eyeglasses_273609-13250.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/young-woman-wearing-striped-shirt-eyeglasses_273609-13250.jpg"
},
{
id: "4", name: "Amahle Mthembu", role: "Nurse", company: "Healthcare Worker", rating: 5,

View File

@@ -1,51 +1,46 @@
"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;
fontSize?: number;
fontFamily?: string;
fontWeight?: number | string;
textAnchor?: 'start' | 'middle' | 'end';
dominantBaseline?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit';
fill?: 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 = '',
fontSize = 24,
fontFamily = 'system-ui, -apple-system, sans-serif',
fontWeight = 600,
textAnchor = 'middle',
dominantBaseline = 'middle',
fill = 'currentColor',
}) => {
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 ${Math.max(100, text.length * 15)} 100`}
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%"
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
textAnchor={textAnchor}
dominantBaseline={dominantBaseline}
fill={fill}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;