Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 13:16:49 +00:00
2 changed files with 47 additions and 45 deletions

View File

@@ -49,16 +49,16 @@ export default function LandingPage() {
description="Experience fresh, delicious vegetarian dishes in a warm, welcoming atmosphere. Go Highway Restaurant offers the perfect stop for quality food and genuine hospitality on your journey."
background={{ variant: "sparkles-gradient" }}
leftCarouselItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-pies-with-meat-filling-seasonings-dark-blue-surface-dough-pie-bread-bun-food-bake_140725-52996.jpg?_wi=1", imageAlt: "Cheese Pav Bhaji" },
{ imageSrc: "http://img.b2bpic.net/free-photo/chicken-feet-stew-tomato-sauce-white-bowl-with-vegetables-lemon_114579-103.jpg?_wi=1", imageAlt: "Paneer Palak" },
{ imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-pies-with-meat-filling-seasonings-dark-blue-surface-dough-pie-bread-bun-food-bake_140725-52996.jpg", imageAlt: "Cheese Pav Bhaji" },
{ imageSrc: "http://img.b2bpic.net/free-photo/chicken-feet-stew-tomato-sauce-white-bowl-with-vegetables-lemon_114579-103.jpg", imageAlt: "Paneer Palak" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-meal-with-rice-onion_23-2148747621.jpg", imageAlt: "Restaurant Interior" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-indian-spices-food_23-2148747665.jpg?_wi=1", imageAlt: "Vegetarian Thali" }
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-indian-spices-food_23-2148747665.jpg", imageAlt: "Vegetarian Thali" }
]}
rightCarouselItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-woman-hands-cutting-cucumber-with-knife-cutting-board-with-vegetable-salad-lettuce-tomato-black-pepper-wooden-surface_141793-10694.jpg", imageAlt: "Restaurant Ambiance" },
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-indian-spices-food_23-2148747665.jpg?_wi=2", imageAlt: "Thali Special" },
{ imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-pies-with-meat-filling-seasonings-dark-blue-surface-dough-pie-bread-bun-food-bake_140725-52996.jpg?_wi=2", imageAlt: "Pav Bhaji" },
{ imageSrc: "http://img.b2bpic.net/free-photo/chicken-feet-stew-tomato-sauce-white-bowl-with-vegetables-lemon_114579-103.jpg?_wi=2", imageAlt: "Paneer Curry" }
{ imageSrc: "http://img.b2bpic.net/free-photo/top-view-indian-spices-food_23-2148747665.jpg", imageAlt: "Thali Special" },
{ imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-pies-with-meat-filling-seasonings-dark-blue-surface-dough-pie-bread-bun-food-bake_140725-52996.jpg", imageAlt: "Pav Bhaji" },
{ imageSrc: "http://img.b2bpic.net/free-photo/chicken-feet-stew-tomato-sauce-white-bowl-with-vegetables-lemon_114579-103.jpg", imageAlt: "Paneer Curry" }
]}
carouselPosition="right"
buttons={[
@@ -96,13 +96,13 @@ export default function LandingPage() {
gridVariant="three-columns-all-equal-width"
products={[
{
id: "1", name: "Cheese Pav Bhaji", price: "₹80", variant: "With fresh pav and butter", imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-pies-with-meat-filling-seasonings-dark-blue-surface-dough-pie-bread-bun-food-bake_140725-52996.jpg?_wi=3", imageAlt: "Cheese Pav Bhaji"
id: "1", name: "Cheese Pav Bhaji", price: "₹80", variant: "With fresh pav and butter", imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-pies-with-meat-filling-seasonings-dark-blue-surface-dough-pie-bread-bun-food-bake_140725-52996.jpg", imageAlt: "Cheese Pav Bhaji"
},
{
id: "2", name: "Veg Thali", price: "₹120", variant: "Complete meal with dal and sabzi", imageSrc: "http://img.b2bpic.net/free-photo/top-view-indian-spices-food_23-2148747665.jpg?_wi=3", imageAlt: "Vegetarian Thali"
id: "2", name: "Veg Thali", price: "₹120", variant: "Complete meal with dal and sabzi", imageSrc: "http://img.b2bpic.net/free-photo/top-view-indian-spices-food_23-2148747665.jpg", imageAlt: "Vegetarian Thali"
},
{
id: "3", name: "Paneer Palak", price: "₹140", variant: "Spinach curry with paneer", imageSrc: "http://img.b2bpic.net/free-photo/chicken-feet-stew-tomato-sauce-white-bowl-with-vegetables-lemon_114579-103.jpg?_wi=3", imageAlt: "Paneer Palak"
id: "3", name: "Paneer Palak", price: "₹140", variant: "Spinach curry with paneer", imageSrc: "http://img.b2bpic.net/free-photo/chicken-feet-stew-tomato-sauce-white-bowl-with-vegetables-lemon_114579-103.jpg", imageAlt: "Paneer Palak"
}
]}
buttons={[

View File

@@ -1,51 +1,53 @@
"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?: number | string;
letterSpacing?: number;
fill?: string;
strokeWidth?: number;
stroke?: string;
opacity?: 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 = 48,
fontWeight = 700,
letterSpacing = 0,
fill = 'currentColor',
strokeWidth = 0,
stroke = 'none',
opacity = 1,
}) => {
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} ${fontSize * 1.5}`}
className={className}
style={{
overflow: 'visible',
}}
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"
}}
y={fontSize * 0.8}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill={fill}
stroke={stroke}
strokeWidth={strokeWidth}
opacity={opacity}
dominantBaseline="auto"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;