From 0f0776b2815e2fc0cb9b71409d316d2dfb4de48f Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 04:01:53 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 6ab8e5c..2ad0569 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -19,7 +19,7 @@ export default function LandingPage() { borderRadius="soft" contentWidth="smallMedium" sizing="mediumSizeLargeTitles" - background="grid" + background="circleGradient" cardStyle="glass-elevated" primaryButtonStyle="diagonal-gradient" secondaryButtonStyle="radial-glow" @@ -51,14 +51,14 @@ export default function LandingPage() { { text: "Visit Us Today", href: "#contact" } ]} buttonAnimation="slide-up" - background={{ variant: "grid" }} + background={{ variant: "sparkles-gradient" }} carouselItems={[ - { id: "1", imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-ramen-with-copy-space_23-2148678756.jpg?_wi=1", imageAlt: "Steaming Malaysian pan mee noodles" }, - { id: "2", imageSrc: "http://img.b2bpic.net/free-photo/side-view-chicken-noodles-plate-with-chopsticks_141793-2959.jpg?_wi=1", imageAlt: "Pan mee with aromatic toppings" }, - { id: "3", imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-rice-dish_23-2147680627.jpg?_wi=1", imageAlt: "Traditional nasi lemak with sambal" }, - { id: "4", imageSrc: "http://img.b2bpic.net/free-photo/vermicelli-with-spices-pepper-slices-orange-space_114579-76548.jpg?_wi=1", imageAlt: "Spicy mee goreng fried noodles" }, - { id: "5", imageSrc: "http://img.b2bpic.net/free-photo/japanese-melon-cantaloupe-cantaloupe-seasonal-fruit-health-concept_1150-23398.jpg?_wi=1", imageAlt: "Refreshing cendol dessert" }, - { id: "6", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-teacups-antique-store_23-2149640750.jpg?_wi=1", imageAlt: "Warm and welcoming restaurant interior" } + { id: "1", imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-ramen-with-copy-space_23-2148678756.jpg", imageAlt: "Steaming Malaysian pan mee noodles" }, + { id: "2", imageSrc: "http://img.b2bpic.net/free-photo/side-view-chicken-noodles-plate-with-chopsticks_141793-2959.jpg", imageAlt: "Pan mee with aromatic toppings" }, + { id: "3", imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-rice-dish_23-2147680627.jpg", imageAlt: "Traditional nasi lemak with sambal" }, + { id: "4", imageSrc: "http://img.b2bpic.net/free-photo/vermicelli-with-spices-pepper-slices-orange-space_114579-76548.jpg", imageAlt: "Spicy mee goreng fried noodles" }, + { id: "5", imageSrc: "http://img.b2bpic.net/free-photo/japanese-melon-cantaloupe-cantaloupe-seasonal-fruit-health-concept_1150-23398.jpg", imageAlt: "Refreshing cendol dessert" }, + { id: "6", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-teacups-antique-store_23-2149640750.jpg", imageAlt: "Warm and welcoming restaurant interior" } ]} autoPlay={true} autoPlayInterval={4000} @@ -85,19 +85,19 @@ export default function LandingPage() { features={[ { id: "1", title: "Authentic Flavours", author: "Malay Kitchen", description: "Every dish is crafted with traditional recipes and the finest spices, transporting your taste buds straight to Malaysia.", tags: ["Authentic", "Traditional"], - imageSrc: "http://img.b2bpic.net/free-photo/side-view-chicken-noodles-plate-with-chopsticks_141793-2959.jpg?_wi=2", imageAlt: "Authentic pan mee dish" + imageSrc: "http://img.b2bpic.net/free-photo/side-view-chicken-noodles-plate-with-chopsticks_141793-2959.jpg", imageAlt: "Authentic pan mee dish" }, { id: "2", title: "Quick Service", author: "Malay Kitchen", description: "Fast, efficient service without compromising quality. Your delicious meal is ready when you are.", tags: ["Quick", "Efficient"], - imageSrc: "http://img.b2bpic.net/free-photo/top-view-friends-having-lunch-luxury-restaurant_23-2151081509.jpg?_wi=1", imageAlt: "Busy but efficient restaurant" + imageSrc: "http://img.b2bpic.net/free-photo/top-view-friends-having-lunch-luxury-restaurant_23-2151081509.jpg", imageAlt: "Busy but efficient restaurant" }, { id: "3", title: "Affordable Meals", author: "Malay Kitchen", description: "Enjoy premium Malaysian cuisine at prices that won't break the bank. Great value for families and food lovers.", tags: ["Affordable", "Value"], - imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-rice-dish_23-2147680627.jpg?_wi=2", imageAlt: "Value-packed nasi lemak" + imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-rice-dish_23-2147680627.jpg", imageAlt: "Value-packed nasi lemak" }, { id: "4", title: "Lively Atmosphere", author: "Malay Kitchen", description: "A bustling, family-friendly space filled with the energy of locals and food enthusiasts enjoying every bite.", tags: ["Vibrant", "Community"], - imageSrc: "http://img.b2bpic.net/free-photo/high-angle-teacups-antique-store_23-2149640750.jpg?_wi=2", imageAlt: "Lively restaurant atmosphere" + imageSrc: "http://img.b2bpic.net/free-photo/high-angle-teacups-antique-store_23-2149640750.jpg", imageAlt: "Lively restaurant atmosphere" } ]} animationType="slide-up" @@ -114,10 +114,10 @@ export default function LandingPage() { tagIcon={Flame} tagAnimation="slide-up" products={[ - { id: "1", name: "Pan Mee", price: "$12.50", imageSrc: "http://img.b2bpic.net/free-photo/side-view-chicken-noodles-plate-with-chopsticks_141793-2959.jpg?_wi=3", imageAlt: "Malaysian pan mee noodles", initialQuantity: 1 }, - { id: "2", name: "Nasi Lemak", price: "$13.00", imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-rice-dish_23-2147680627.jpg?_wi=3", imageAlt: "Traditional nasi lemak", initialQuantity: 1 }, - { id: "3", name: "Mee Goreng", price: "$11.50", imageSrc: "http://img.b2bpic.net/free-photo/vermicelli-with-spices-pepper-slices-orange-space_114579-76548.jpg?_wi=2", imageAlt: "Spicy mee goreng", initialQuantity: 1 }, - { id: "4", name: "Cendol", price: "$6.50", imageSrc: "http://img.b2bpic.net/free-photo/japanese-melon-cantaloupe-cantaloupe-seasonal-fruit-health-concept_1150-23398.jpg?_wi=2", imageAlt: "Refreshing cendol dessert", initialQuantity: 1 } + { id: "1", name: "Pan Mee", price: "$12.50", imageSrc: "http://img.b2bpic.net/free-photo/side-view-chicken-noodles-plate-with-chopsticks_141793-2959.jpg", imageAlt: "Malaysian pan mee noodles", initialQuantity: 1 }, + { id: "2", name: "Nasi Lemak", price: "$13.00", imageSrc: "http://img.b2bpic.net/free-photo/close-up-view-rice-dish_23-2147680627.jpg", imageAlt: "Traditional nasi lemak", initialQuantity: 1 }, + { id: "3", name: "Mee Goreng", price: "$11.50", imageSrc: "http://img.b2bpic.net/free-photo/vermicelli-with-spices-pepper-slices-orange-space_114579-76548.jpg", imageAlt: "Spicy mee goreng", initialQuantity: 1 }, + { id: "4", name: "Cendol", price: "$6.50", imageSrc: "http://img.b2bpic.net/free-photo/japanese-melon-cantaloupe-cantaloupe-seasonal-fruit-health-concept_1150-23398.jpg", imageAlt: "Refreshing cendol dessert", initialQuantity: 1 } ]} gridVariant="bento-grid" animationType="slide-up" @@ -156,19 +156,19 @@ export default function LandingPage() { features={[ { id: "1", title: "Lively Atmosphere", author: "Every Visit", description: "The buzz of excited diners, the aroma of spices, the clatter of plates. You're not just eating; you're part of a community.", tags: ["Vibrant", "Social"], - imageSrc: "http://img.b2bpic.net/free-photo/top-view-friends-having-lunch-luxury-restaurant_23-2151081509.jpg?_wi=2", imageAlt: "Packed restaurant with lively energy" + imageSrc: "http://img.b2bpic.net/free-photo/top-view-friends-having-lunch-luxury-restaurant_23-2151081509.jpg", imageAlt: "Packed restaurant with lively energy" }, { id: "2", title: "Family Friendly", author: "For All Ages", description: "Welcoming to families, groups, and solo diners. A place where everyone feels at home.", tags: ["Inclusive", "Welcoming"], - imageSrc: "http://img.b2bpic.net/free-photo/high-angle-teacups-antique-store_23-2149640750.jpg?_wi=3", imageAlt: "Family dining at Malay Kitchen" + imageSrc: "http://img.b2bpic.net/free-photo/high-angle-teacups-antique-store_23-2149640750.jpg", imageAlt: "Family dining at Malay Kitchen" }, { id: "3", title: "Efficient Service", author: "Quick Turnaround", description: "Busy but smooth. Your order is prepared quickly without ever feeling rushed. Perfect for lunch breaks.", tags: ["Fast", "Professional"], - imageSrc: "http://img.b2bpic.net/free-photo/top-view-friends-having-lunch-luxury-restaurant_23-2151081509.jpg?_wi=3", imageAlt: "Efficient service in action" + imageSrc: "http://img.b2bpic.net/free-photo/top-view-friends-having-lunch-luxury-restaurant_23-2151081509.jpg", imageAlt: "Efficient service in action" }, { id: "4", title: "No Long Waits", author: "Despite Popularity", description: "Even when packed, we keep the queue moving. Come hungry, leave satisfied.", tags: ["Reliable", "Convenient"], - imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-ramen-with-copy-space_23-2148678756.jpg?_wi=2", imageAlt: "Ready-to-serve dishes" + imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-ramen-with-copy-space_23-2148678756.jpg", imageAlt: "Ready-to-serve dishes" } ]} animationType="slide-up" -- 2.49.1 From d9e506302a00b4a44d71e0d601a5e2c3d2a5c625 Mon Sep 17 00:00:00 2001 From: bender Date: Thu, 12 Mar 2026 04:01:53 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 69 +++++++++---------- 1 file changed, 34 insertions(+), 35 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..1649995 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,50 @@ -"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?: number | string; + letterSpacing?: number; + fill?: string; + textAnchor?: 'start' | 'middle' | 'end'; + dominantBaseline?: 'hanging' | 'middle' | 'auto' | 'ideographic' | 'central' | 'mathematical'; } -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 = 32, + fontFamily = 'system-ui, -apple-system, sans-serif', + fontWeight = 700, + letterSpacing = 0, + fill = 'currentColor', + textAnchor = 'middle', + dominantBaseline = 'middle', +}) => { return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo; -- 2.49.1