Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-13 03:54:43 +00:00
2 changed files with 30 additions and 38 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="small"
sizing="largeSmallSizeLargeTitles"
background="noise"
background="circleGradient"
cardStyle="inset"
primaryButtonStyle="shadow"
secondaryButtonStyle="glass"
@@ -42,7 +42,7 @@ export default function LandingPage() {
<HeroCentered
title="San Diego's Favorite Pizza Slice Spot"
description="Authentic NY-style pizza by the slice and our famous Dirty Flat Top smash burger. Quick, casual, and always good vibes in North Park."
background={{ variant: "noise" }}
background={{ variant: "plain" }}
avatars={[
{ src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=zdq6i2", alt: "Happy customer 1" },
{ src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=637x5h", alt: "Happy customer 2" },
@@ -70,6 +70,7 @@ export default function LandingPage() {
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=jdlwlh"
imageAlt="Chef preparing authentic NY-style pizza dough"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,42 @@
"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;
fontWeight?: number | string;
fill?: string;
className?: string;
dominantBaseline?: 'auto' | 'text-top' | 'hanging' | 'central' | 'middle' | 'text-bottom' | 'ideographic' | '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 = 'Webild',
fontSize = 24,
fontWeight = 600,
fill = '#000',
className = '',
dominantBaseline = 'middle',
}) => {
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"
width="200"
height="50"
className={className}
>
<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="25"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
dominantBaseline={dominantBaseline}
fontFamily="inherit"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;