Merge version_1 into main #2
@@ -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"
|
||||
|
||||
@@ -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<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 = 32,
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
fontWeight = 700,
|
||||
letterSpacing = 0,
|
||||
fill = 'currentColor',
|
||||
textAnchor = 'middle',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
viewBox="0 0 400 100"
|
||||
className={className}
|
||||
aria-label={text}
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
>
|
||||
<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%"
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
fill={fill}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user