Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 22:17:14 +00:00
2 changed files with 20 additions and 40 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="mediumSmall"
sizing="largeSmall"
background="grid"
background="circleGradient"
cardStyle="soft-shadow"
primaryButtonStyle="primary-glow"
secondaryButtonStyle="radial-glow"
@@ -46,7 +46,7 @@ export default function LandingPage() {
<HeroLogoBillboardSplit
logoText="SOSORU"
description="Dehradun's Premium Pan-Asian Dining Experience. Authentic Asian flavors, handcrafted cocktails, and an unforgettable ambience that celebrates culinary excellence and warm hospitality."
background={{ variant: "grid" }}
background={{ variant: "plain" }}
buttons={[
{ text: "Reserve a Table", href: "#reserve" },
{ text: "Call Now", href: "tel:+919045052075" }
@@ -84,7 +84,7 @@ export default function LandingPage() {
title: "Thoughtful Hospitality", description: "Every guest receives personalized attention and genuine warmth from our dedicated team", icon: Heart
}
]}
imageSrc="http://img.b2bpic.net/free-photo/empty-dining-table-restaurant_53876-64723.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/empty-dining-table-restaurant_53876-64723.jpg"
imageAlt="Elegant restaurant interior with warm ambience"
imagePosition="right"
buttons={[
@@ -142,7 +142,7 @@ export default function LandingPage() {
features={[
{
id: 1,
tag: "Excellence", title: "Premium Ambience", subtitle: "Sophisticated atmosphere for every occasion", description: "Our elegant interior design combines modern minimalism with warm, inviting lighting. Whether dining with loved ones or hosting a special celebration, SOSORU provides the perfect backdrop for unforgettable moments.", imageSrc: "http://img.b2bpic.net/free-photo/empty-dining-table-restaurant_53876-64723.jpg?_wi=2", imageAlt: "Premium restaurant interior ambience"
tag: "Excellence", title: "Premium Ambience", subtitle: "Sophisticated atmosphere for every occasion", description: "Our elegant interior design combines modern minimalism with warm, inviting lighting. Whether dining with loved ones or hosting a special celebration, SOSORU provides the perfect backdrop for unforgettable moments.", imageSrc: "http://img.b2bpic.net/free-photo/empty-dining-table-restaurant_53876-64723.jpg", imageAlt: "Premium restaurant interior ambience"
},
{
id: 2,

View File

@@ -1,51 +1,31 @@
"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;
}
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 }) => {
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}`}
className={className}
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"
}}
x="50%"
y="50%"
fontSize={fontSize}
fontWeight="bold"
textAnchor="middle"
dominantBaseline="central"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;