Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 08:53:09 +00:00
2 changed files with 19 additions and 41 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="compact"
sizing="mediumLargeSizeLargeTitles"
background="noiseDiagonalGradient"
background="circleGradient"
cardStyle="inset"
primaryButtonStyle="primary-glow"
secondaryButtonStyle="glass"
@@ -45,7 +45,7 @@ export default function LandingPage() {
description="Authentic, homestyle Punjabi cuisine prepared fresh daily. Experience traditional flavors and warm hospitality at Mr. Punjab."
tag="Premium Quality"
tagIcon={Flame}
background={{ variant: "noiseDiagonalGradient" }}
background={{ variant: "radial-gradient" }}
buttons={[
{ text: "Call Now", href: "tel:+91-XXXX-XXXX" },
{ text: "Order Online", href: "#contact" }
@@ -73,7 +73,7 @@ export default function LandingPage() {
description="Try our signature Punjabi specialties, lovingly prepared with authentic spices and fresh ingredients."
tag="Customer Favorites"
tagIcon={Star}
gridVariant="three-columns-all-equal-width"
gridVariant="uniform-all-items-equal"
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
@@ -162,7 +162,7 @@ export default function LandingPage() {
]}
title="Our Impact"
description="Building trust through quality and consistency in every meal we serve."
gridVariant="three-columns-all-equal-width"
gridVariant="uniform-all-items-equal"
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
@@ -174,7 +174,7 @@ export default function LandingPage() {
tag="Get In Touch"
title="Place Your Order Today"
description="Call us to order, reserve a table, or ask about our catering services. We're here to serve you authentic Punjabi food with a smile."
background={{ variant: "noiseDiagonalGradient" }}
background={{ variant: "radial-gradient" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/close-up-appetizing-ramadan-meal_23-2151182545.jpg"
imageAlt="Mr. Punjab Restaurant Interior"

View File

@@ -1,51 +1,29 @@
"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;
}
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 = '' }) => {
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 50"
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"
}}
x="10"
y="35"
fontSize="32"
fontWeight="bold"
fill="currentColor"
dominantBaseline="middle"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;