Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 08:11:19 +00:00
2 changed files with 35 additions and 41 deletions

View File

@@ -23,7 +23,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="mediumSmall"
sizing="large"
background="noiseDiagonalGradient"
background="circleGradient"
cardStyle="gradient-radial"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="glass"
@@ -51,8 +51,8 @@ export default function LandingPage() {
tag="Welcome to Belle Café"
tagIcon={Coffee}
tagAnimation="slide-up"
background={{ variant: "noiseDiagonalGradient" }}
imageSrc="http://img.b2bpic.net/free-photo/elevated-view-baked-croissant-fruits-tea-dryfruits-white-tablecloth_23-2147907266.jpg?_wi=1"
background={{ variant: "plain" }}
imageSrc="http://img.b2bpic.net/free-photo/elevated-view-baked-croissant-fruits-tea-dryfruits-white-tablecloth_23-2147907266.jpg"
imageAlt="Belle Café artistic brunch setting"
buttons={[
{ text: "Visit Us Today", href: "#contact" },
@@ -76,7 +76,7 @@ export default function LandingPage() {
textboxLayout="default"
useInvertedBackground={true}
mediaAnimation="slide-up"
imageSrc="http://img.b2bpic.net/free-photo/man-enjoying-his-virtual-date_23-2149307285.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/man-enjoying-his-virtual-date_23-2149307285.jpg"
imageAlt="Belle Café artistic interior with local art"
imagePosition="right"
bulletPoints={[
@@ -130,10 +130,10 @@ export default function LandingPage() {
animationType="slide-up"
metrics={[
{
id: "1", value: "2,500+", title: "Monthly Visitors", description: "Locals and tourists discovering Belle Café", imageSrc: "http://img.b2bpic.net/free-photo/elevated-view-baked-croissant-fruits-tea-dryfruits-white-tablecloth_23-2147907266.jpg?_wi=2", imageAlt: "Busy café filled with satisfied customers"
id: "1", value: "2,500+", title: "Monthly Visitors", description: "Locals and tourists discovering Belle Café", imageSrc: "http://img.b2bpic.net/free-photo/elevated-view-baked-croissant-fruits-tea-dryfruits-white-tablecloth_23-2147907266.jpg", imageAlt: "Busy café filled with satisfied customers"
},
{
id: "2", value: "50+", title: "Local Artists Featured", description: "Showcasing Christchurch's creative community", imageSrc: "http://img.b2bpic.net/free-photo/man-enjoying-his-virtual-date_23-2149307285.jpg?_wi=2", imageAlt: "Gallery wall featuring local artworks"
id: "2", value: "50+", title: "Local Artists Featured", description: "Showcasing Christchurch's creative community", imageSrc: "http://img.b2bpic.net/free-photo/man-enjoying-his-virtual-date_23-2149307285.jpg", imageAlt: "Gallery wall featuring local artworks"
}
]}
/>

View File

@@ -1,51 +1,45 @@
"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;
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 = 48,
fill = 'currentColor',
className = '',
}) => {
const textLength = text.length;
const charWidth = fontSize * 0.6;
const width = charWidth * textLength + 20;
const height = fontSize + 20;
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
className={className}
role="img"
aria-label={`${logoText} logo`}
aria-label={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="10"
y={fontSize + 5}
fontSize={fontSize}
fill={fill}
fontFamily="inherit"
fontWeight="bold"
dominantBaseline="auto"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;