Merge version_1 into main #2
@@ -54,11 +54,11 @@ export default function LandingPage() {
|
||||
{ text: "Order Online", href: "https://www.google.com/maps/place/Busy+Beans+Betul" }
|
||||
]}
|
||||
mediaItems={[
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=i7me6m&_wi=1", imageAlt: "Fresh Italian pizza with melted cheese" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=tqhrpv&_wi=1", imageAlt: "Paneer Makhni Pizza signature dish" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=nv9xqb&_wi=1", imageAlt: "Creamy Maggi Pasta" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=daglru&_wi=1", imageAlt: "Delicious White Sauce Pasta" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=rfvanx&_wi=1", imageAlt: "Double Cheese Pizza with gooey cheese" }
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=i7me6m", imageAlt: "Fresh Italian pizza with melted cheese" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=tqhrpv", imageAlt: "Paneer Makhni Pizza signature dish" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=nv9xqb", imageAlt: "Creamy Maggi Pasta" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=daglru", imageAlt: "Delicious White Sauce Pasta" },
|
||||
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=rfvanx", imageAlt: "Double Cheese Pizza with gooey cheese" }
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
@@ -69,10 +69,10 @@ export default function LandingPage() {
|
||||
description="Try our signature favorites loved by thousands of customers in Betul"
|
||||
tag="Best Sellers"
|
||||
products={[
|
||||
{ id: "1", name: "Paneer Makhni Pizza", price: "₹280", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=tqhrpv&_wi=2", imageAlt: "Paneer Makhni Pizza" },
|
||||
{ id: "2", name: "Maggi Pasta", price: "₹150", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=nv9xqb&_wi=2", imageAlt: "Maggi Pasta" },
|
||||
{ id: "3", name: "White Sauce Pasta", price: "₹180", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=daglru&_wi=2", imageAlt: "White Sauce Pasta" },
|
||||
{ id: "4", name: "Double Cheese Pizza", price: "₹250", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=rfvanx&_wi=2", imageAlt: "Double Cheese Pizza" }
|
||||
{ id: "1", name: "Paneer Makhni Pizza", price: "₹280", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=tqhrpv", imageAlt: "Paneer Makhni Pizza" },
|
||||
{ id: "2", name: "Maggi Pasta", price: "₹150", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=nv9xqb", imageAlt: "Maggi Pasta" },
|
||||
{ id: "3", name: "White Sauce Pasta", price: "₹180", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=daglru", imageAlt: "White Sauce Pasta" },
|
||||
{ id: "4", name: "Double Cheese Pizza", price: "₹250", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=rfvanx", imageAlt: "Double Cheese Pizza" }
|
||||
]}
|
||||
gridVariant="two-columns-alternating-heights"
|
||||
animationType="slide-up"
|
||||
@@ -106,7 +106,7 @@ export default function LandingPage() {
|
||||
description="Cozy Italian-Style Café"
|
||||
subdescription="Loved by Students, Professionals & Families"
|
||||
icon={Coffee}
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=02h8ow&_wi=1"
|
||||
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=02h8ow"
|
||||
imageAlt="Busy Beans Betul café interior with warm lighting"
|
||||
mediaAnimation="slide-up"
|
||||
useInvertedBackground={false}
|
||||
@@ -119,9 +119,9 @@ export default function LandingPage() {
|
||||
description="Explore our diverse selection of Italian and café favorites"
|
||||
tag="Full Menu Available"
|
||||
features={[
|
||||
{ id: 1, title: "Pizza", description: "Fresh, wood-fired pizzas with premium toppings and authentic Italian recipes.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=i7me6m&_wi=2", imageAlt: "Fresh Italian Pizza" },
|
||||
{ id: 2, title: "Pasta", description: "Creamy pastas and maggi specials prepared with love and quality ingredients.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=daglru&_wi=3", imageAlt: "Delicious Pasta Dishes" },
|
||||
{ id: 3, title: "Rolls & Snacks", description: "Veg cheese rolls, wraps, and quick bites perfect for on-the-go meals.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=bmv7k9&_wi=1", imageAlt: "Rolls and Snacks" },
|
||||
{ id: 1, title: "Pizza", description: "Fresh, wood-fired pizzas with premium toppings and authentic Italian recipes.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=i7me6m", imageAlt: "Fresh Italian Pizza" },
|
||||
{ id: 2, title: "Pasta", description: "Creamy pastas and maggi specials prepared with love and quality ingredients.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=daglru", imageAlt: "Delicious Pasta Dishes" },
|
||||
{ id: 3, title: "Rolls & Snacks", description: "Veg cheese rolls, wraps, and quick bites perfect for on-the-go meals.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=bmv7k9", imageAlt: "Rolls and Snacks" },
|
||||
{ id: 4, title: "Cold Beverages", description: "Refreshing cold drinks, smoothies, and coffee to complement your meal.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=zffhhe", imageAlt: "Cold Beverages" }
|
||||
]}
|
||||
animationType="blur-reveal"
|
||||
@@ -139,8 +139,8 @@ export default function LandingPage() {
|
||||
description="Experience the warm ambience and delicious food at Busy Beans Betul"
|
||||
tag="Photo Gallery"
|
||||
metrics={[
|
||||
{ id: "1", value: "Fresh", title: "Daily Ingredients", description: "Quality food prepared fresh every day", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=bmv7k9&_wi=2", imageAlt: "Fresh food preparation" },
|
||||
{ id: "2", value: "Cozy", title: "Café Vibes", description: "Perfect ambience for hanging out", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=02h8ow&_wi=2", imageAlt: "Comfortable café interior" },
|
||||
{ id: "1", value: "Fresh", title: "Daily Ingredients", description: "Quality food prepared fresh every day", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=bmv7k9", imageAlt: "Fresh food preparation" },
|
||||
{ id: "2", value: "Cozy", title: "Café Vibes", description: "Perfect ambience for hanging out", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=02h8ow", imageAlt: "Comfortable café interior" },
|
||||
{ id: "3", value: "Happy", title: "Moments", description: "Create memories with friends and family", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=sjg05s", imageAlt: "Friends enjoying together" }
|
||||
]}
|
||||
animationType="opacity"
|
||||
@@ -172,9 +172,9 @@ export default function LandingPage() {
|
||||
groups={[
|
||||
{
|
||||
id: "location", groupTitle: "Busy Beans Betul", members: [
|
||||
{ id: "1", title: "📍 Address", subtitle: "Chakkar Rd, opposite Ankur Construction", detail: "Sunita Colony, Betul, MP 460001", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=q9nv9c&_wi=1", imageAlt: "Location" },
|
||||
{ id: "2", title: "📞 Phone", subtitle: "Call us anytime", detail: "070674 67858", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=q9nv9c&_wi=2", imageAlt: "Phone" },
|
||||
{ id: "3", title: "🕐 Hours", subtitle: "Open Daily", detail: "Until 11:00 PM", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=q9nv9c&_wi=3", imageAlt: "Hours" }
|
||||
{ id: "1", title: "📍 Address", subtitle: "Chakkar Rd, opposite Ankur Construction", detail: "Sunita Colony, Betul, MP 460001", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=q9nv9c", imageAlt: "Location" },
|
||||
{ id: "2", title: "📞 Phone", subtitle: "Call us anytime", detail: "070674 67858", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=q9nv9c", imageAlt: "Phone" },
|
||||
{ id: "3", title: "🕐 Hours", subtitle: "Open Daily", detail: "Until 11:00 PM", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=q9nv9c", imageAlt: "Hours" }
|
||||
]
|
||||
}
|
||||
]}
|
||||
|
||||
@@ -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;
|
||||
fontFamily?: string;
|
||||
fontWeight?: number | string;
|
||||
letterSpacing?: number;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'auto' | 'baseline' | 'middle' | 'central' | 'hanging' | 'ideographic' | '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 = 24,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fontWeight = 700,
|
||||
letterSpacing = 0,
|
||||
textAnchor = 'middle',
|
||||
dominantBaseline = '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 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
|
||||
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={`${text.length * fontSize * 0.3}`}
|
||||
y={`${fontSize * 0.75}`}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user