Merge version_1 into main

Merge version_1 into main
This commit was merged in pull request #3.
This commit is contained in:
2026-03-12 16:46:07 +00:00
2 changed files with 37 additions and 41 deletions

View File

@@ -48,7 +48,7 @@ export default function LandingPage() {
tag="Artisanal Bakery"
tagIcon={Croissant}
tagAnimation="slide-up"
background={{ variant: "circleGradient" }}
background={{ variant: "plain" }}
leftCarouselItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/cake-pan-with-basket-apples_23-2148368328.jpg", imageAlt: "Golden buttery croissants fresh from oven" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-close-up-view-cake-lemon-cinnamon-star-anise-cup-tea-cake-with-red-currants-cupcakes_140725-123303.jpg", imageAlt: "Italian bomboloni pastries artisanal filled" },
@@ -127,20 +127,17 @@ export default function LandingPage() {
{
id: "1", title: "Premium Quality Ingredients", descriptions: [
"European butter, Belgian chocolate, and finest grains", "Direct-sourced from heritage suppliers", "No artificial preservatives or shortcuts"
],
imageSrc: "http://img.b2bpic.net/free-photo/male-baker-s-hand-kneading-dough-kitchen-table_23-2147872733.jpg", imageAlt: "Premium baking ingredients fresh european sourced"
], imageSrc: "http://img.b2bpic.net/free-photo/male-baker-s-hand-kneading-dough-kitchen-table_23-2147872733.jpg", imageAlt: "Premium baking ingredients fresh european sourced"
},
{
id: "2", title: "Warm Café Atmosphere", descriptions: [
"Cozy, intimate seating designed for connection", "Instagram-worthy European aesthetic", "Perfect for morning meetings or afternoon gatherings"
],
imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-baker-wearing-apron_23-2149233711.jpg", imageAlt: "Warm cozy cafe atmosphere comfortable seating"
], imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-baker-wearing-apron_23-2149233711.jpg", imageAlt: "Warm cozy cafe atmosphere comfortable seating"
},
{
id: "3", title: "Local, Community-Focused", descriptions: [
"Supporting Apex, NC and surrounding neighborhoods", "Employing local artisans and staff", "Part of the fabric of our community"
],
imageSrc: "http://img.b2bpic.net/free-photo/group-pretty-women-enjoying-some-coffee-together-restaurant-gossiping_662251-762.jpg", imageAlt: "Local community gathering place bakery cafe"
], imageSrc: "http://img.b2bpic.net/free-photo/group-pretty-women-enjoying-some-coffee-together-restaurant-gossiping_662251-762.jpg", imageAlt: "Local community gathering place bakery cafe"
}
]}
gridVariant="three-columns-all-equal-width"

View File

@@ -1,51 +1,50 @@
"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;
fontWeight?: number | string;
fill?: string;
letterSpacing?: number;
}
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 = 32,
fontWeight = 'bold',
fill = 'currentColor',
letterSpacing = 0,
}) => {
const estimatedWidth = text.length * (fontSize * 0.6);
const padding = 20;
const width = estimatedWidth + padding * 2;
const height = fontSize + padding * 2;
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}`}
xmlns="http://www.w3.org/2000/svg"
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={padding}
y={padding + fontSize * 0.75}
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
letterSpacing={letterSpacing}
dominantBaseline="middle"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;