From 2a338c3eeac8f44e243409ca81d995078ab424a2 Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 19:29:33 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 69d6079..122b880 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -20,7 +20,7 @@ export default function LandingPage() { borderRadius="soft" contentWidth="mediumSmall" sizing="largeSmallSizeLargeTitles" - background="circleGradient" + background="aurora" cardStyle="gradient-mesh" primaryButtonStyle="shadow" secondaryButtonStyle="layered" @@ -46,7 +46,7 @@ export default function LandingPage() { tag="Premium Halal Chinese" tagIcon={Sparkles} tagAnimation="slide-up" - background={{ variant: "circleGradient" }} + background={{ variant: "plain" }} buttons={[ { text: "Order Online", href: "#" }, { text: "View Menu", href: "#menu" } @@ -57,7 +57,7 @@ export default function LandingPage() { imageSrc: "http://img.b2bpic.net/free-photo/couple-enjoying-food-restaurant_23-2149269173.jpg", imageAlt: "Steaming wok with noodles" }, { - imageSrc: "http://img.b2bpic.net/free-photo/chicken-satay_1203-2696.jpg?_wi=1", imageAlt: "Crispy chicken lollipop" + imageSrc: "http://img.b2bpic.net/free-photo/chicken-satay_1203-2696.jpg", imageAlt: "Crispy chicken lollipop" } ]} mediaAnimation="slide-up" @@ -90,22 +90,22 @@ export default function LandingPage() { useInvertedBackground={false} products={[ { - id: "1", name: "Chicken Lollipop", price: "$8.99", imageSrc: "http://img.b2bpic.net/free-photo/chicken-satay_1203-2696.jpg?_wi=2", imageAlt: "Chicken Lollipop" + id: "1", name: "Chicken Lollipop", price: "$8.99", imageSrc: "http://img.b2bpic.net/free-photo/chicken-satay_1203-2696.jpg", imageAlt: "Chicken Lollipop" }, { - id: "2", name: "Chow Mein", price: "$9.99", imageSrc: "http://img.b2bpic.net/free-photo/close-up-delicious-asian-food_23-2149091614.jpg?_wi=1", imageAlt: "Chow Mein" + id: "2", name: "Chow Mein", price: "$9.99", imageSrc: "http://img.b2bpic.net/free-photo/close-up-delicious-asian-food_23-2149091614.jpg", imageAlt: "Chow Mein" }, { - id: "3", name: "Chicken Tikka Biryani", price: "$12.99", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-pakistan-dish-composition_23-2148821519.jpg?_wi=1", imageAlt: "Chicken Tikka Biryani" + id: "3", name: "Chicken Tikka Biryani", price: "$12.99", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-pakistan-dish-composition_23-2148821519.jpg", imageAlt: "Chicken Tikka Biryani" }, { - id: "4", name: "Beef Tehari", price: "$11.99", imageSrc: "http://img.b2bpic.net/free-photo/delicious-pakistan-meal-table_23-2148821579.jpg?_wi=1", imageAlt: "Beef Tehari" + id: "4", name: "Beef Tehari", price: "$11.99", imageSrc: "http://img.b2bpic.net/free-photo/delicious-pakistan-meal-table_23-2148821579.jpg", imageAlt: "Beef Tehari" }, { id: "5", name: "Pan Fried Dumplings", price: "$7.99", imageSrc: "http://img.b2bpic.net/free-photo/close-up-asian-food-with-herbs_23-2148771219.jpg", imageAlt: "Pan Fried Dumplings" }, { - id: "6", name: "Mango Lassi", price: "$3.99", imageSrc: "http://img.b2bpic.net/free-photo/pineapple-smoothie_1339-1115.jpg?_wi=1", imageAlt: "Mango Lassi" + id: "6", name: "Mango Lassi", price: "$3.99", imageSrc: "http://img.b2bpic.net/free-photo/pineapple-smoothie_1339-1115.jpg", imageAlt: "Mango Lassi" } ]} gridVariant="uniform-all-items-equal" @@ -121,19 +121,19 @@ export default function LandingPage() { features={[ { id: 1, - tag: "Halal Certified", title: "Authentic Halal Chinese", subtitle: "Traditional flavors, always halal", description: "We bring authentic Chinese flavors while maintaining strict halal standards. Every dish is prepared with ingredients certified and approved for halal consumption, so everyone can enjoy our cuisine.", imageSrc: "http://img.b2bpic.net/free-photo/chicken-satay_1203-2696.jpg?_wi=3" + tag: "Halal Certified", title: "Authentic Halal Chinese", subtitle: "Traditional flavors, always halal", description: "We bring authentic Chinese flavors while maintaining strict halal standards. Every dish is prepared with ingredients certified and approved for halal consumption, so everyone can enjoy our cuisine.", imageSrc: "http://img.b2bpic.net/free-photo/chicken-satay_1203-2696.jpg" }, { id: 2, - tag: "Fresh Daily", title: "Freshly Cooked", subtitle: "Quality ingredients, every time", description: "Every dish is prepared fresh with the highest quality ingredients. We never compromise on freshness—our kitchen prepares orders to order, ensuring optimal flavor and texture.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-delicious-asian-food_23-2149091614.jpg?_wi=2" + tag: "Fresh Daily", title: "Freshly Cooked", subtitle: "Quality ingredients, every time", description: "Every dish is prepared fresh with the highest quality ingredients. We never compromise on freshness—our kitchen prepares orders to order, ensuring optimal flavor and texture.", imageSrc: "http://img.b2bpic.net/free-photo/close-up-delicious-asian-food_23-2149091614.jpg" }, { id: 3, - tag: "Warmth & Care", title: "Friendly Service", subtitle: "Hospitality that feels like family", description: "Our team treats every customer like family. Customers consistently praise our welcoming atmosphere and warm hospitality. We're not just serving food—we're creating memorable dining experiences.", imageSrc: "http://img.b2bpic.net/free-photo/delicious-pakistan-meal-table_23-2148821579.jpg?_wi=2" + tag: "Warmth & Care", title: "Friendly Service", subtitle: "Hospitality that feels like family", description: "Our team treats every customer like family. Customers consistently praise our welcoming atmosphere and warm hospitality. We're not just serving food—we're creating memorable dining experiences.", imageSrc: "http://img.b2bpic.net/free-photo/delicious-pakistan-meal-table_23-2148821579.jpg" }, { id: 4, - tag: "Generous Portions", title: "Big Portions", subtitle: "Perfect for sharing", description: "We believe in generous portions that are perfect for families and groups. Share meals, share moments, share flavor—our portions bring people together.", imageSrc: "http://img.b2bpic.net/free-photo/side-view-breaded-chicken-with-herbs-bowl-with-lemon-cream-sauce-wood-board-rustic_141793-11088.jpg?_wi=1" + tag: "Generous Portions", title: "Big Portions", subtitle: "Perfect for sharing", description: "We believe in generous portions that are perfect for families and groups. Share meals, share moments, share flavor—our portions bring people together.", imageSrc: "http://img.b2bpic.net/free-photo/side-view-breaded-chicken-with-herbs-bowl-with-lemon-cream-sauce-wood-board-rustic_141793-11088.jpg" } ]} textboxLayout="default" @@ -189,19 +189,19 @@ export default function LandingPage() { features={[ { id: 1, - tag: "Appetizers", title: "Starters", subtitle: "Begin your culinary journey", description: "Chicken Lollipop • Dumplings • Thai Soup • Chicken Wontons", imageSrc: "http://img.b2bpic.net/free-photo/chicken-satay_1203-2696.jpg?_wi=4" + tag: "Appetizers", title: "Starters", subtitle: "Begin your culinary journey", description: "Chicken Lollipop • Dumplings • Thai Soup • Chicken Wontons", imageSrc: "http://img.b2bpic.net/free-photo/chicken-satay_1203-2696.jpg" }, { id: 2, - tag: "Mains", title: "Wok Specials", subtitle: "Sizzling and flavorful", description: "Chili Chicken • Hakka Noodles • Chow Mein • Sizzling Chicken", imageSrc: "http://img.b2bpic.net/free-photo/side-view-breaded-chicken-with-herbs-bowl-with-lemon-cream-sauce-wood-board-rustic_141793-11088.jpg?_wi=2" + tag: "Mains", title: "Wok Specials", subtitle: "Sizzling and flavorful", description: "Chili Chicken • Hakka Noodles • Chow Mein • Sizzling Chicken", imageSrc: "http://img.b2bpic.net/free-photo/side-view-breaded-chicken-with-herbs-bowl-with-lemon-cream-sauce-wood-board-rustic_141793-11088.jpg" }, { id: 3, - tag: "Rice Dishes", title: "Rice & Biryani", subtitle: "Aromatic and satisfying", description: "Chicken Tikka Biryani • Beef Tehari • Fried Rice", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-pakistan-dish-composition_23-2148821519.jpg?_wi=2" + tag: "Rice Dishes", title: "Rice & Biryani", subtitle: "Aromatic and satisfying", description: "Chicken Tikka Biryani • Beef Tehari • Fried Rice", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-pakistan-dish-composition_23-2148821519.jpg" }, { id: 4, - tag: "Beverages", title: "Drinks", subtitle: "Refreshing finishes", description: "Mango Lassi • Soft Drinks • Tea", imageSrc: "http://img.b2bpic.net/free-photo/pineapple-smoothie_1339-1115.jpg?_wi=2" + tag: "Beverages", title: "Drinks", subtitle: "Refreshing finishes", description: "Mango Lassi • Soft Drinks • Tea", imageSrc: "http://img.b2bpic.net/free-photo/pineapple-smoothie_1339-1115.jpg" } ]} textboxLayout="default" -- 2.49.1 From 75753fadfcaab32cb65db04ca4e45123bafbea5c Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 19:29:33 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 68 +++++++++---------- 1 file changed, 32 insertions(+), 36 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..5e40bd7 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,47 @@ -"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?: string | number; + letterSpacing?: number; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + text, + className = '', + fontSize = 24, + fontWeight = 'bold', + letterSpacing = 0, +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.6; + const width = Math.max(textLength * charWidth + letterSpacing * (textLength - 1), 100); + const height = fontSize + 20; return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file -- 2.49.1