Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 11:20:57 +00:00
2 changed files with 25 additions and 41 deletions

View File

@@ -17,7 +17,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="medium"
sizing="medium"
background="grid"
background="circleGradient"
cardStyle="inset"
primaryButtonStyle="gradient"
secondaryButtonStyle="glass"
@@ -45,7 +45,7 @@ export default function LandingPage() {
{ text: "Appeler maintenant", href: "tel:+33240200902" },
{ text: "Réserver une commande", href: "#contact" }
]}
background={{ variant: "grid" }}
background={{ variant: "plain" }}
imageSrc="http://img.b2bpic.net/free-photo/view-autumn-food-with-copy-space_23-2148234245.jpg"
imageAlt="Intérieur chaleureux de la boulangerie avec pains et pâtisseries fraîchement cuits"
frameStyle="card"

View File

@@ -1,51 +1,35 @@
"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";
className?: string;
text: string;
fill?: string;
fontSize?: number;
fontFamily?: string;
dominantBaseline?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit';
}
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,
fill = '#000000',
fontSize = 48,
fontFamily = 'Arial, sans-serif',
dominantBaseline = 'middle',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
>
<svg viewBox="0 0 400 100" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet">
<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%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
fill={fill}
fontSize={fontSize}
fontFamily={fontFamily}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;