Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="small"
|
||||
sizing="largeSmall"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-depth"
|
||||
primaryButtonStyle="double-inset"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -50,25 +50,25 @@ export default function LandingPage() {
|
||||
{ text: "Order Food Now", href: "#contact" },
|
||||
{ text: "View Menu", href: "#featured" }
|
||||
]}
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
carouselItems={[
|
||||
{
|
||||
id: "1", imageSrc: "http://img.b2bpic.net/free-photo/front-view-chicken-doner-pita-bread-with-ketchup-mayonnaise-french-fries-vegetable-salad-board_141793-2822.jpg?_wi=1", imageAlt: "Authentic Arabian Shawarma"
|
||||
id: "1", imageSrc: "http://img.b2bpic.net/free-photo/front-view-chicken-doner-pita-bread-with-ketchup-mayonnaise-french-fries-vegetable-salad-board_141793-2822.jpg", imageAlt: "Authentic Arabian Shawarma"
|
||||
},
|
||||
{
|
||||
id: "2", imageSrc: "http://img.b2bpic.net/free-photo/kebab-set-table_140725-9560.jpg?_wi=1", imageAlt: "Arabian Grilled Chicken"
|
||||
id: "2", imageSrc: "http://img.b2bpic.net/free-photo/kebab-set-table_140725-9560.jpg", imageAlt: "Arabian Grilled Chicken"
|
||||
},
|
||||
{
|
||||
id: "3", imageSrc: "http://img.b2bpic.net/free-photo/top-baked-chicken-with-cheese-clay-bowl_140725-12284.jpg?_wi=1", imageAlt: "Mandi Style Rice Dish"
|
||||
id: "3", imageSrc: "http://img.b2bpic.net/free-photo/top-baked-chicken-with-cheese-clay-bowl_140725-12284.jpg", imageAlt: "Mandi Style Rice Dish"
|
||||
},
|
||||
{
|
||||
id: "4", imageSrc: "http://img.b2bpic.net/free-psd/authentic-chicken-biryani-served-traditional-earthenware-bowl_84443-64517.jpg?_wi=1", imageAlt: "Chicken Biryani"
|
||||
id: "4", imageSrc: "http://img.b2bpic.net/free-psd/authentic-chicken-biryani-served-traditional-earthenware-bowl_84443-64517.jpg", imageAlt: "Chicken Biryani"
|
||||
},
|
||||
{
|
||||
id: "5", imageSrc: "http://img.b2bpic.net/free-photo/top-view-crackers-with-hummus_23-2148562689.jpg?_wi=1", imageAlt: "Arabian Hummus Appetizer"
|
||||
id: "5", imageSrc: "http://img.b2bpic.net/free-photo/top-view-crackers-with-hummus_23-2148562689.jpg", imageAlt: "Arabian Hummus Appetizer"
|
||||
},
|
||||
{
|
||||
id: "6", imageSrc: "http://img.b2bpic.net/free-photo/front-view-chicken-doner-pita-bread-with-ketchup-mayonnaise-french-fries-vegetable-salad-board_141793-2822.jpg?_wi=2", imageAlt: "Arabian Shawarma Platter"
|
||||
id: "6", imageSrc: "http://img.b2bpic.net/free-photo/front-view-chicken-doner-pita-bread-with-ketchup-mayonnaise-french-fries-vegetable-salad-board_141793-2822.jpg", imageAlt: "Arabian Shawarma Platter"
|
||||
}
|
||||
]}
|
||||
autoPlay={true}
|
||||
@@ -80,6 +80,7 @@ export default function LandingPage() {
|
||||
<AboutMetric
|
||||
title="Welcome to Arabian Dream Restaurant - Your Gateway to Authentic Arabian & Indian Flavors"
|
||||
useInvertedBackground={false}
|
||||
metricsAnimation="slide-up"
|
||||
metrics={[
|
||||
{ icon: Star, label: "Customer Rating", value: "4.8★" },
|
||||
{ icon: Clock, label: "Hours of Service", value: "24/7" },
|
||||
@@ -99,19 +100,19 @@ export default function LandingPage() {
|
||||
gridVariant="three-columns-all-equal-width"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Chicken Shawarma", price: "₹150 - ₹250", imageSrc: "http://img.b2bpic.net/free-photo/front-view-chicken-doner-pita-bread-with-ketchup-mayonnaise-french-fries-vegetable-salad-board_141793-2822.jpg?_wi=3", imageAlt: "Chicken Shawarma"
|
||||
id: "1", name: "Chicken Shawarma", price: "₹150 - ₹250", imageSrc: "http://img.b2bpic.net/free-photo/front-view-chicken-doner-pita-bread-with-ketchup-mayonnaise-french-fries-vegetable-salad-board_141793-2822.jpg", imageAlt: "Chicken Shawarma"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Arabian Grilled Chicken", price: "₹280 - ₹380", imageSrc: "http://img.b2bpic.net/free-photo/kebab-set-table_140725-9560.jpg?_wi=2", imageAlt: "Arabian Grilled Chicken"
|
||||
id: "2", name: "Arabian Grilled Chicken", price: "₹280 - ₹380", imageSrc: "http://img.b2bpic.net/free-photo/kebab-set-table_140725-9560.jpg", imageAlt: "Arabian Grilled Chicken"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Mandi Style Rice", price: "₹220 - ₹320", imageSrc: "http://img.b2bpic.net/free-photo/top-baked-chicken-with-cheese-clay-bowl_140725-12284.jpg?_wi=2", imageAlt: "Mandi Style Rice"
|
||||
id: "3", name: "Mandi Style Rice", price: "₹220 - ₹320", imageSrc: "http://img.b2bpic.net/free-photo/top-baked-chicken-with-cheese-clay-bowl_140725-12284.jpg", imageAlt: "Mandi Style Rice"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Chicken Biryani", price: "₹180 - ₹280", imageSrc: "http://img.b2bpic.net/free-psd/authentic-chicken-biryani-served-traditional-earthenware-bowl_84443-64517.jpg?_wi=2", imageAlt: "Chicken Biryani"
|
||||
id: "4", name: "Chicken Biryani", price: "₹180 - ₹280", imageSrc: "http://img.b2bpic.net/free-psd/authentic-chicken-biryani-served-traditional-earthenware-bowl_84443-64517.jpg", imageAlt: "Chicken Biryani"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Hummus & Pita", price: "₹120 - ₹180", imageSrc: "http://img.b2bpic.net/free-photo/top-view-crackers-with-hummus_23-2148562689.jpg?_wi=2", imageAlt: "Hummus and Pita Bread"
|
||||
id: "5", name: "Hummus & Pita", price: "₹120 - ₹180", imageSrc: "http://img.b2bpic.net/free-photo/top-view-crackers-with-hummus_23-2148562689.jpg", imageAlt: "Hummus and Pita Bread"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -130,25 +131,25 @@ export default function LandingPage() {
|
||||
id: "1", title: "Authentic Taste", descriptions: [
|
||||
"Traditional Arabian flavors prepared by experienced chefs", "Authentic recipes passed down through generations", "Premium spices imported from Middle East"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-chicken-doner-pita-bread-with-ketchup-mayonnaise-french-fries-vegetable-salad-board_141793-2822.jpg?_wi=4", imageAlt: "Authentic Taste"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/front-view-chicken-doner-pita-bread-with-ketchup-mayonnaise-french-fries-vegetable-salad-board_141793-2822.jpg", imageAlt: "Authentic Taste"
|
||||
},
|
||||
{
|
||||
id: "2", title: "Affordable Prices", descriptions: [
|
||||
"Best quality food at budget-friendly prices", "Great value for money on every dish", "No compromise on quality with our pricing"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-psd/authentic-chicken-biryani-served-traditional-earthenware-bowl_84443-64517.jpg?_wi=3", imageAlt: "Affordable Prices"
|
||||
imageSrc: "http://img.b2bpic.net/free-psd/authentic-chicken-biryani-served-traditional-earthenware-bowl_84443-64517.jpg", imageAlt: "Affordable Prices"
|
||||
},
|
||||
{
|
||||
id: "3", title: "24 Hour Service", descriptions: [
|
||||
"Always open for your food cravings", "Late-night dining satisfaction anytime", "Perfect for students and night shift workers"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/top-baked-chicken-with-cheese-clay-bowl_140725-12284.jpg?_wi=3", imageAlt: "24 Hour Service"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/top-baked-chicken-with-cheese-clay-bowl_140725-12284.jpg", imageAlt: "24 Hour Service"
|
||||
},
|
||||
{
|
||||
id: "4", title: "Fast & Friendly", descriptions: [
|
||||
"Quick food preparation without compromise", "Warm and welcoming service experience", "Dedicated team for exceptional hospitality"
|
||||
],
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/kebab-set-table_140725-9560.jpg?_wi=3", imageAlt: "Fast & Friendly"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/kebab-set-table_140725-9560.jpg", imageAlt: "Fast & Friendly"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -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?: string | number;
|
||||
fill?: string;
|
||||
dominantBaseline?: 'hanging' | 'middle' | 'auto';
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
}
|
||||
|
||||
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',
|
||||
fill = 'currentColor',
|
||||
dominantBaseline = 'middle',
|
||||
textAnchor = 'middle',
|
||||
}) => {
|
||||
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 200 60"
|
||||
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="100"
|
||||
y="30"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
dominantBaseline={dominantBaseline}
|
||||
textAnchor={textAnchor}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user