Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 11:34:19 +00:00
2 changed files with 32 additions and 45 deletions

View File

@@ -45,7 +45,7 @@ export default function LandingPage() {
description="Craving traditional North Indian cuisine at 2 AM? We deliver hot, fresh meals directly to your door in Vadodara. From Butter Chicken to Naan, every dish is crafted with love and premium ingredients."
tag="Open 24 Hours"
tagIcon={Clock}
background={{ variant: "circleGradient" }}
background={{ variant: "plain" }}
imageSrc="http://img.b2bpic.net/free-photo/top-view-delicious-fried-cutlets-with-cooked-rice-dark-surface-dish-meat-rissole_140725-82324.jpg"
imageAlt="Steaming North Indian curry with naan bread"
imagePosition="right"
@@ -69,7 +69,7 @@ export default function LandingPage() {
{ text: "Call Now", href: "tel:08160318068" },
{ text: "Order on WhatsApp", href: "https://wa.me/918160318068" },
]}
buttonAnimation="entrance-slide"
buttonAnimation="slide-up"
/>
</div>
@@ -88,7 +88,7 @@ export default function LandingPage() {
useInvertedBackground={false}
mediaAnimation="slide-up"
metricsAnimation="slide-up"
tagAnimation="entrance-slide"
tagAnimation="slide-up"
/>
</div>
@@ -169,16 +169,13 @@ export default function LandingPage() {
useInvertedBackground={false}
plans={[
{
id: "starters", tag: "Starters & Appetizers", price: "₹150350", period: "/item", description: "Begin your meal with our famous samosas, pakoras, and tikka preparations.", button: { text: "View Starters", href: "tel:08160318068" },
featuresTitle: "Popular Items:", features: ["Vegetable Samosa (₹80)", "Paneer Tikka (₹250)", "Aloo Pakora (₹100)", "Paneer 65 (₹220)"],
id: "starters", tag: "Starters & Appetizers", price: "₹150350", period: "/item", description: "Begin your meal with our famous samosas, pakoras, and tikka preparations.", button: { text: "View Starters", href: "tel:08160318068" }, featuresTitle: "Popular Items:", features: ["Vegetable Samosa (₹80)", "Paneer Tikka (₹250)", "Aloo Pakora (₹100)", "Paneer 65 (₹220)"],
},
{
id: "mains", tag: "Main Courses", price: "₹250500", period: "/item", description: "Signature curries made with premium spices. Served with rice or bread.", button: { text: "Order Main Course", href: "tel:08160318068" },
featuresTitle: "Customer Favorites:", features: ["Butter Chicken (₹380)", "Paneer Butter Masala (₹320)", "Chole Bhature (₹200)", "Dal Makhani (₹280)"],
id: "mains", tag: "Main Courses", price: "₹250500", period: "/item", description: "Signature curries made with premium spices. Served with rice or bread.", button: { text: "Order Main Course", href: "tel:08160318068" }, featuresTitle: "Customer Favorites:", features: ["Butter Chicken (₹380)", "Paneer Butter Masala (₹320)", "Chole Bhature (₹200)", "Dal Makhani (₹280)"],
},
{
id: "breads", tag: "Breads & Rice", price: "₹40200", period: "/item", description: "Freshly prepared naan, roti, paratha, and biryanis baked in our tandoor.", button: { text: "Order Bread & Rice", href: "tel:08160318068" },
featuresTitle: "Bread Selection:", features: ["Garlic Naan (₹60)", "Butter Naan (₹50)", "Rumali Roti (₹30)", "Chicken Biryani (₹200)"],
id: "breads", tag: "Breads & Rice", price: "₹40200", period: "/item", description: "Freshly prepared naan, roti, paratha, and biryanis baked in our tandoor.", button: { text: "Order Bread & Rice", href: "tel:08160318068" }, featuresTitle: "Bread Selection:", features: ["Garlic Naan (₹60)", "Butter Naan (₹50)", "Rumali Roti (₹30)", "Chicken Biryani (₹200)"],
},
]}
/>
@@ -214,7 +211,7 @@ export default function LandingPage() {
tagIcon={Phone}
title="Ready to Order?"
description="Whether it's a quick late-night meal or a bulk corporate order, we're here to serve you 24/7. Reach out now!"
background={{ variant: "circleGradient" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
inputPlaceholder="Enter your phone number"
buttonText="Contact Us"

View File

@@ -1,51 +1,41 @@
"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;
fontSize?: number;
fontFamily?: string;
fontWeight?: string | number;
fill?: string;
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> = ({
text,
fontSize = 24,
fontFamily = 'Arial, sans-serif',
fontWeight = 'bold',
fill = '#000000',
className = '',
}) => {
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}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<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"
}}
y={fontSize}
fontSize={fontSize}
fontFamily={fontFamily}
fontWeight={fontWeight}
fill={fill}
dominantBaseline="hanging"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;