Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 09:55:34 +00:00
2 changed files with 38 additions and 46 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="mediumLarge"
sizing="large"
background="noise"
background="circleGradient"
cardStyle="subtle-shadow"
primaryButtonStyle="flat"
secondaryButtonStyle="radial-glow"
@@ -44,13 +44,13 @@ export default function LandingPage() {
title="McDonald's 🍔 - Good Food, Quick Service"
description="Fast food so good you'll forget you came just for fries. Crispy nuggets, legendary ice cream, and yes—we remembered the ketchup this time."
tag="Order Online Now"
background={{ variant: "noise" }}
background={{ variant: "plain" }}
mediaItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/high-protein-meal-burgers-close-up-detail_23-2149098866.jpg", imageAlt: "Delicious McDonald's burgers" },
{ imageSrc: "http://img.b2bpic.net/free-photo/fried-chips_23-2147695722.jpg?_wi=1", imageAlt: "Crispy golden fries" },
{ imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-plates-with-flavored-ice-cream_23-2148421978.jpg?_wi=1", imageAlt: "Soft serve ice cream" },
{ imageSrc: "http://img.b2bpic.net/free-photo/fried-chips_23-2147695722.jpg", imageAlt: "Crispy golden fries" },
{ imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-plates-with-flavored-ice-cream_23-2148421978.jpg", imageAlt: "Soft serve ice cream" },
{ imageSrc: "http://img.b2bpic.net/free-photo/from-chicken-nuggets-with-french-fries-wooden-plate_176474-2615.jpg", imageAlt: "Golden chicken nuggets" },
{ imageSrc: "http://img.b2bpic.net/free-photo/serving-burger-background_1321-4523.jpg?_wi=1", imageAlt: "Legendary cheeseburger" }
{ imageSrc: "http://img.b2bpic.net/free-photo/serving-burger-background_1321-4523.jpg", imageAlt: "Legendary cheeseburger" }
]}
buttons={[
{ text: "Order Before Someone Eats Your Fries", href: "contact" },
@@ -69,15 +69,15 @@ export default function LandingPage() {
features={[
{
id: 1,
title: "⚡ Lightning Fast Service", description: "Our team moves faster than your friend who said they weren't hungry but keeps stealing fries. Ready in minutes, not hours.", imageSrc: "http://img.b2bpic.net/free-photo/fried-chips_23-2147695722.jpg?_wi=2", imageAlt: "Crispy golden fries"
title: "⚡ Lightning Fast Service", description: "Our team moves faster than your friend who said they weren't hungry but keeps stealing fries. Ready in minutes, not hours.", imageSrc: "http://img.b2bpic.net/free-photo/fried-chips_23-2147695722.jpg", imageAlt: "Crispy golden fries"
},
{
id: 2,
title: "🍟 Fries Worth Fighting For", description: "Crispy, salty, and dangerously shareable. Golden perfection every single time. Pro tip: order two.", imageSrc: "http://img.b2bpic.net/free-photo/fried-chips_23-2147695722.jpg?_wi=3", imageAlt: "Crispy golden fries"
title: "🍟 Fries Worth Fighting For", description: "Crispy, salty, and dangerously shareable. Golden perfection every single time. Pro tip: order two.", imageSrc: "http://img.b2bpic.net/free-photo/fried-chips_23-2147695722.jpg", imageAlt: "Crispy golden fries"
},
{
id: 3,
title: "🍦 Ice Cream That Never Misses", description: "The dessert hero. Reliable, creamy, and always the correct decision. Your comfort food awaits.", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-plates-with-flavored-ice-cream_23-2148421978.jpg?_wi=2", imageAlt: "Soft serve ice cream"
title: "🍦 Ice Cream That Never Misses", description: "The dessert hero. Reliable, creamy, and always the correct decision. Your comfort food awaits.", imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-plates-with-flavored-ice-cream_23-2148421978.jpg", imageAlt: "Soft serve ice cream"
}
]}
textboxLayout="default"
@@ -94,7 +94,7 @@ export default function LandingPage() {
tag="Bestsellers"
products={[
{
id: "1", name: "Legendary Cheeseburger", price: "$5.99", variant: "Classic Single with Cheese", imageSrc: "http://img.b2bpic.net/free-photo/serving-burger-background_1321-4523.jpg?_wi=2", imageAlt: "Legendary cheeseburger"
id: "1", name: "Legendary Cheeseburger", price: "$5.99", variant: "Classic Single with Cheese", imageSrc: "http://img.b2bpic.net/free-photo/serving-burger-background_1321-4523.jpg", imageAlt: "Legendary cheeseburger"
},
{
id: "2", name: "Golden Nuggets", price: "$7.49", variant: "6 or 10 Piece Box", imageSrc: "http://img.b2bpic.net/free-photo/top-view-fried-cheee-balls-lettuce-plate-cherry-tomatoes-salt-black-pepper-wooden-spoons-dark-table-free-space_140725-142283.jpg", imageAlt: "Golden chicken nuggets"
@@ -175,7 +175,7 @@ export default function LandingPage() {
tag="Newsletter"
title="Stay Updated with Deals & Offers"
description="Subscribe to our newsletter and be the first to know about new menu items, special promotions, and exclusive McDonald's offers delivered to your inbox."
background={{ variant: "noise" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/restaurant-private-room-with-table-12-blue-chairs-white-brick-walls-wide-window-paintings_140725-8451.jpg"
imageAlt="McDonald's restaurant dining area"

View File

@@ -1,51 +1,43 @@
"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;
fontFamily?: string;
fontWeight?: string | number;
letterSpacing?: string | 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 = 48,
fontFamily = 'system-ui, -apple-system, sans-serif',
fontWeight = 700,
letterSpacing = 'normal',
}) => {
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 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
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="middle"
textAnchor="middle"
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;