Merge version_1 into main #2

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

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="medium"
sizing="largeSmallSizeLargeTitles"
background="grid"
background="circleGradient"
cardStyle="gradient-radial"
primaryButtonStyle="gradient"
secondaryButtonStyle="glass"
@@ -47,7 +47,7 @@ export default function LandingPage() {
tag="Sabor Português Autêntico"
tagIcon={Utensils}
tagAnimation="slide-up"
background={{ variant: "grid" }}
background={{ variant: "canvas-reveal" }}
imageSrc="http://img.b2bpic.net/free-photo/view-ready-eat-oysters-with-lemons-ice_52683-111695.jpg"
imageAlt="Polvo grelhado fresco e arroz de marisco"
buttons={[
@@ -69,7 +69,7 @@ export default function LandingPage() {
{ value: "25+", title: "Anos de tradição culinária" },
{ value: "Diário", title: "Peixe e marisco fresco" }
]}
imageSrc="http://img.b2bpic.net/free-photo/couple-having-fun-night_23-2149236897.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/couple-having-fun-night_23-2149236897.jpg"
imageAlt="Interior acolhedor do restaurante Maré da Casa"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
@@ -125,7 +125,7 @@ export default function LandingPage() {
},
{
id: 3,
title: "Ambiente Familiar", description: "Um espaço acolhedor onde familias, amigos e viajantes se reúnem para partilhar momentos de convívio e boa comida.", imageSrc: "http://img.b2bpic.net/free-photo/couple-having-fun-night_23-2149236897.jpg?_wi=2", imageAlt: "Interior acolhedor do restaurante"
title: "Ambiente Familiar", description: "Um espaço acolhedor onde familias, amigos e viajantes se reúnem para partilhar momentos de convívio e boa comida.", imageSrc: "http://img.b2bpic.net/free-photo/couple-having-fun-night_23-2149236897.jpg", imageAlt: "Interior acolhedor do restaurante"
}
]}
/>

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";
text: string;
className?: string;
textClassName?: 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,
className = '',
textClassName = '',
}) => {
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 200 50"
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%"
dominantBaseline="central"
textAnchor="middle"
className={textClassName}
fontSize="24"
fontWeight="bold"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;