Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 19:29:37 +00:00
2 changed files with 48 additions and 52 deletions

View File

@@ -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"

View File

@@ -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<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 = 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 (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={`0 0 ${width} ${height}`}
width={width}
height={height}
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<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={width / 2}
y={height / 2}
textAnchor="middle"
dominantBaseline="middle"
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;