Merge version_1 into main

Merge version_1 into main
This commit was merged in pull request #1.
This commit is contained in:
2026-03-11 20:23:44 +00:00
2 changed files with 40 additions and 38 deletions

View File

@@ -18,7 +18,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="compact"
sizing="largeSmallSizeLargeTitles"
background="blurBottom"
background="circleGradient"
cardStyle="gradient-mesh"
primaryButtonStyle="double-inset"
secondaryButtonStyle="layered"
@@ -41,7 +41,7 @@ export default function LandingPage() {
<HeroLogoBillboardSplit
logoText="KITCHEN KING"
description="Best Vegetarian Restaurant in Kharar. Authentic Indian & Chinese cuisine with unforgettable flavors. ⭐ 4.9/5 from 310+ reviews"
background={{ variant: "blurBottom" }}
background={{ variant: "radial-gradient" }}
buttons={[
{ text: "📞 Call Now", href: "tel:08699925867" },
{ text: "🍽️ Reserve Table", href: "#contact" }
@@ -169,7 +169,7 @@ export default function LandingPage() {
tag="Reserve Your Table"
title="Book Your Dining Experience at Kitchen King"
description="Reserve your table now and enjoy an unforgettable meal with family and friends. Call us or fill out the form below."
background={{ variant: "blurBottom" }}
background={{ variant: "radial-gradient" }}
useInvertedBackground={true}
inputPlaceholder="Enter your email"
buttonText="Reserve Now"

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;
letterSpacing?: number;
fontWeight?: number | string;
fill?: 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,
letterSpacing = 2,
fontWeight = 'bold',
fill = 'currentColor',
opacity = 1,
}) => {
const textLength = text.length;
const estimatedWidth = textLength * (fontSize * 0.6) + letterSpacing * (textLength - 1);
const estimatedHeight = fontSize * 1.2;
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 ${estimatedWidth} ${estimatedHeight}`}
width={estimatedWidth}
height={estimatedHeight}
xmlns="http://www.w3.org/2000/svg"
preserveAspectRatio="xMidYMid meet"
>
<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={estimatedWidth / 2}
y={estimatedHeight / 2}
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
opacity={opacity}
textAnchor="middle"
dominantBaseline="central"
letterSpacing={letterSpacing}
fontFamily="system-ui, -apple-system, sans-serif"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;