diff --git a/src/app/page.tsx b/src/app/page.tsx index 1b00c6d..b41cb2e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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={[ diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..0d6cd29 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -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(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); - +export const SvgTextLogo: React.FC = ({ + text, + className = '', + fontSize = 48, + fontWeight = 700, + letterSpacing = 0, + dominantBaseline = 'middle', +}) => { return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file