Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 02:29:10 +00:00
2 changed files with 21 additions and 43 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="smallMedium"
sizing="largeSmall"
background="aurora"
background="circleGradient"
cardStyle="inset"
primaryButtonStyle="double-inset"
secondaryButtonStyle="layered"
@@ -43,7 +43,7 @@ export default function LandingPage() {
title="Stockton's Most Legendary Tortas."
description="Authentic Mexico City-style tortas stacked with flavor, made fresh every day. Generous portions, bold ingredients, and that legendary taste."
tag="🥪 Authentic Mexico City Flavor"
background={{ variant: "aurora" }}
background={{ variant: "plain" }}
imageSrc="http://img.b2bpic.net/free-photo/portioned-russian-napoleon-cake-plate_140725-7048.jpg"
imageAlt="Massive torta being cut open with meat, avocado, and cheese"
buttons={[
@@ -74,11 +74,11 @@ export default function LandingPage() {
features={[
{
id: "1", title: "Super Torta", tags: ["Massive", "Loaded"],
imageSrc: "http://img.b2bpic.net/free-photo/sandwich-chicken_74190-5971.jpg?_wi=1", imageAlt: "Super torta stacked with meats, cheese, avocado, beans"
imageSrc: "http://img.b2bpic.net/free-photo/sandwich-chicken_74190-5971.jpg", imageAlt: "Super torta stacked with meats, cheese, avocado, beans"
},
{
id: "2", title: "Street Tacos", tags: ["Authentic", "Bold"],
imageSrc: "http://img.b2bpic.net/free-photo/delicious-tacos-studio_23-2150770495.jpg?_wi=1", imageAlt: "Traditional street tacos with authentic toppings"
imageSrc: "http://img.b2bpic.net/free-photo/delicious-tacos-studio_23-2150770495.jpg", imageAlt: "Traditional street tacos with authentic toppings"
},
{
id: "3", title: "Micheladas", tags: ["Spicy", "Refreshing"],
@@ -113,10 +113,10 @@ export default function LandingPage() {
id: "2", name: "✔ Authentic Mexican recipes", price: "", imageSrc: "http://img.b2bpic.net/free-photo/vendor-displaying-box-lemons_482257-109956.jpg", imageAlt: "Kitchen staff preparing authentic Mexican food"
},
{
id: "3", name: "✔ Loaded with flavor", price: "", imageSrc: "http://img.b2bpic.net/free-photo/sandwich-chicken_74190-5971.jpg?_wi=2", imageAlt: "Fully loaded torta with all toppings"
id: "3", name: "✔ Loaded with flavor", price: "", imageSrc: "http://img.b2bpic.net/free-photo/sandwich-chicken_74190-5971.jpg", imageAlt: "Fully loaded torta with all toppings"
},
{
id: "4", name: "✔ Made fresh every order", price: "", imageSrc: "http://img.b2bpic.net/free-photo/delicious-tacos-studio_23-2150770495.jpg?_wi=2", imageAlt: "Fresh tacos made to order"
id: "4", name: "✔ Made fresh every order", price: "", imageSrc: "http://img.b2bpic.net/free-photo/delicious-tacos-studio_23-2150770495.jpg", imageAlt: "Fresh tacos made to order"
}
]}
/>

View File

@@ -1,51 +1,29 @@
"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;
}
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 = '' }) => {
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="10"
y="35"
fontSize="32"
fontWeight="bold"
fill="currentColor"
dominantBaseline="auto"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;