Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 01:11:49 +00:00
2 changed files with 42 additions and 50 deletions

View File

@@ -21,7 +21,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="medium"
sizing="large"
background="blurBottom"
background="circleGradient"
cardStyle="glass-elevated"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="layered"
@@ -54,25 +54,25 @@ export default function LandingPage() {
{ text: "View Menu", href: "#menu" }
]}
buttonAnimation="slide-up"
background={{ variant: "blurBottom" }}
background={{ variant: "rotated-rays-animated-grid" }}
carouselItems={[
{
id: "1", imageSrc: "http://img.b2bpic.net/free-photo/crispy-fried-chicken-metal-bucket_84443-81918.jpg?_wi=1", imageAlt: "Crispy golden fried chicken"
id: "1", imageSrc: "http://img.b2bpic.net/free-photo/crispy-fried-chicken-metal-bucket_84443-81918.jpg", imageAlt: "Crispy golden fried chicken"
},
{
id: "2", imageSrc: "http://img.b2bpic.net/free-photo/chicken-burger-served-with-fries-basket-bowl-mayonnaise-ketchup_140725-2490.jpg?_wi=1", imageAlt: "Chicken combo meal box"
id: "2", imageSrc: "http://img.b2bpic.net/free-photo/chicken-burger-served-with-fries-basket-bowl-mayonnaise-ketchup_140725-2490.jpg", imageAlt: "Chicken combo meal box"
},
{
id: "3", imageSrc: "http://img.b2bpic.net/free-photo/sandwich-with-ham-fresh-vegetables_2829-14205.jpg?_wi=1", imageAlt: "Delicious chicken sandwich"
id: "3", imageSrc: "http://img.b2bpic.net/free-photo/sandwich-with-ham-fresh-vegetables_2829-14205.jpg", imageAlt: "Delicious chicken sandwich"
},
{
id: "4", imageSrc: "http://img.b2bpic.net/free-photo/top-view-salted-french-fries_23-2148701465.jpg", imageAlt: "Golden crispy fries"
},
{
id: "5", imageSrc: "http://img.b2bpic.net/free-photo/crispy-fried-chicken-metal-bucket_84443-81918.jpg?_wi=2", imageAlt: "Chicken bucket meal"
id: "5", imageSrc: "http://img.b2bpic.net/free-photo/crispy-fried-chicken-metal-bucket_84443-81918.jpg", imageAlt: "Chicken bucket meal"
},
{
id: "6", imageSrc: "http://img.b2bpic.net/free-photo/two-female-friends-having-coffee-together-caf_23-2147871314.jpg?_wi=1", imageAlt: "ChickenBox restaurant interior"
id: "6", imageSrc: "http://img.b2bpic.net/free-photo/two-female-friends-having-coffee-together-caf_23-2147871314.jpg", imageAlt: "ChickenBox restaurant interior"
}
]}
autoPlay={true}
@@ -93,16 +93,16 @@ export default function LandingPage() {
textboxLayout="default"
products={[
{
id: "1", name: "Classic Chicken Box", price: "₤100", variant: "4 Pieces Fries & Drink", imageSrc: "http://img.b2bpic.net/free-photo/chicken-burger-served-with-fries-basket-bowl-mayonnaise-ketchup_140725-2490.jpg?_wi=2", imageAlt: "Classic chicken combo box", isFavorited: false
id: "1", name: "Classic Chicken Box", price: "₤100", variant: "4 Pieces Fries & Drink", imageSrc: "http://img.b2bpic.net/free-photo/chicken-burger-served-with-fries-basket-bowl-mayonnaise-ketchup_140725-2490.jpg", imageAlt: "Classic chicken combo box", isFavorited: false
},
{
id: "2", name: "Crispy Chicken Sandwich", price: "₤60", variant: "Golden Crispy Fresh Toppings", imageSrc: "http://img.b2bpic.net/free-photo/sandwich-with-ham-fresh-vegetables_2829-14205.jpg?_wi=2", imageAlt: "Crispy chicken sandwich", isFavorited: false
id: "2", name: "Crispy Chicken Sandwich", price: "₤60", variant: "Golden Crispy Fresh Toppings", imageSrc: "http://img.b2bpic.net/free-photo/sandwich-with-ham-fresh-vegetables_2829-14205.jpg", imageAlt: "Crispy chicken sandwich", isFavorited: false
},
{
id: "3", name: "Chicken Wings Box", price: "₤120", variant: "12 Pieces Spicy Sauce", imageSrc: "http://img.b2bpic.net/free-photo/crispy-fried-chicken-metal-bucket_84443-81918.jpg?_wi=3", imageAlt: "Crispy chicken wings", isFavorited: false
id: "3", name: "Chicken Wings Box", price: "₤120", variant: "12 Pieces Spicy Sauce", imageSrc: "http://img.b2bpic.net/free-photo/crispy-fried-chicken-metal-bucket_84443-81918.jpg", imageAlt: "Crispy chicken wings", isFavorited: false
},
{
id: "4", name: "Premium Combo Meal", price: "₤150", variant: "6 Pieces 2 Sides Drink", imageSrc: "http://img.b2bpic.net/free-photo/chicken-burger-served-with-fries-basket-bowl-mayonnaise-ketchup_140725-2490.jpg?_wi=3", imageAlt: "Premium combo meal", isFavorited: false
id: "4", name: "Premium Combo Meal", price: "₤150", variant: "6 Pieces 2 Sides Drink", imageSrc: "http://img.b2bpic.net/free-photo/chicken-burger-served-with-fries-basket-bowl-mayonnaise-ketchup_140725-2490.jpg", imageAlt: "Premium combo meal", isFavorited: false
}
]}
gridVariant="uniform-all-items-equal"
@@ -120,7 +120,7 @@ export default function LandingPage() {
tagIcon={Clock}
tagAnimation="slide-up"
buttons={[{ text: "Learn More", href: "#" }]}
imageSrc="http://img.b2bpic.net/free-photo/two-female-friends-having-coffee-together-caf_23-2147871314.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/two-female-friends-having-coffee-together-caf_23-2147871314.jpg"
imageAlt="ChickenBox restaurant interior"
useInvertedBackground={true}
/>
@@ -133,7 +133,7 @@ export default function LandingPage() {
tag="Fast & Convenient"
tagIcon={Zap}
tagAnimation="slide-up"
imageSrc="http://img.b2bpic.net/free-photo/crispy-fried-chicken-metal-bucket_84443-81918.jpg?_wi=4"
imageSrc="http://img.b2bpic.net/free-photo/crispy-fried-chicken-metal-bucket_84443-81918.jpg"
imageAlt="Delicious chicken ready to serve"
mediaAnimation="slide-up"
accordionItems={[

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;
fontWeight?: number | string;
letterSpacing?: number;
dominantBaseline?: 'auto' | 'baseline' | 'middle' | 'central' | 'hanging' | 'mathematical';
}
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 = '',
fontSize = 48,
fontWeight = 700,
letterSpacing = 0,
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 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
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}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
className="fill-current"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;