Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 21:36:03 +00:00
2 changed files with 23 additions and 44 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="medium"
sizing="large"
background="noiseDiagonalGradient"
background="circleGradient"
cardStyle="gradient-mesh"
primaryButtonStyle="radial-glow"
secondaryButtonStyle="glass"
@@ -45,7 +45,7 @@ export default function LandingPage() {
tag="Premium Casual Dining"
tagIcon={Utensils}
tagAnimation="slide-up"
background={{ variant: "noiseDiagonalGradient" }}
background={{ variant: "sparkles-gradient" }}
buttons={[
{ text: "Reserve a Table", href: "contact" },
{ text: "Call Now", href: "tel:+919876543210" }
@@ -53,8 +53,8 @@ export default function LandingPage() {
buttonAnimation="slide-up"
mediaItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/high-angle-pakistan-meal-composition_23-2148821517.jpg", imageAlt: "Authentic chicken biryani with basmati rice" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-close-up-view-pilaf-pilaf-citrus-fruits-board-bowl-spices_140725-78656.jpg?_wi=1", imageAlt: "Fragrant mandi biryani traditional style" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-cutlets-with-onion-rings_140725-57401.jpg?_wi=1", imageAlt: "Grilled tandoori chicken fresh from tandoor" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-close-up-view-pilaf-pilaf-citrus-fruits-board-bowl-spices_140725-78656.jpg", imageAlt: "Fragrant mandi biryani traditional style" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-cutlets-with-onion-rings_140725-57401.jpg", imageAlt: "Grilled tandoori chicken fresh from tandoor" },
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-sauce-chicken-nuggets_23-2147765501.jpg", imageAlt: "Crispy chinese starters and appetizers" },
{ imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-friends-clinking-glasses_23-2148965388.jpg", imageAlt: "Cozy restaurant dining ambience" }
]}
@@ -82,11 +82,11 @@ export default function LandingPage() {
},
{
id: "2", brand: "UBH Signature", name: "Mandi Biryani", price: "₹500", rating: 5,
reviewCount: "1.8k", imageSrc: "http://img.b2bpic.net/free-photo/top-close-up-view-pilaf-pilaf-citrus-fruits-board-bowl-spices_140725-78656.jpg?_wi=2", imageAlt: "Fragrant rice with slow-cooked meat"
reviewCount: "1.8k", imageSrc: "http://img.b2bpic.net/free-photo/top-close-up-view-pilaf-pilaf-citrus-fruits-board-bowl-spices_140725-78656.jpg", imageAlt: "Fragrant rice with slow-cooked meat"
},
{
id: "3", brand: "UBH Grill", name: "Tandoori Chicken", price: "₹400", rating: 5,
reviewCount: "1.5k", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-cutlets-with-onion-rings_140725-57401.jpg?_wi=2", imageAlt: "Perfectly spiced grilled chicken"
reviewCount: "1.5k", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-cutlets-with-onion-rings_140725-57401.jpg", imageAlt: "Perfectly spiced grilled chicken"
}
]}
buttons={[
@@ -153,7 +153,7 @@ export default function LandingPage() {
textboxLayout="default"
useInvertedBackground={false}
animationType="slide-up"
gridVariant="four-items-2x2-equal-grid"
gridVariant="uniform-all-items-equal"
metrics={[
{ id: "1", value: "4.7★", description: "Google Rating" },
{ id: "2", value: "1000+", description: "Happy Customers" },

View File

@@ -1,51 +1,30 @@
"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";
className?: string;
}
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> = ({ className = '' }) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
className={className}
viewBox="0 0 200 100"
xmlns="http://www.w3.org/2000/svg"
aria-label="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%"
dominantBaseline="central"
textAnchor="middle"
fontSize="24"
fontWeight="bold"
fill="currentColor"
>
{logoText}
Logo
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;