Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="mediumSmall"
|
||||
sizing="largeSizeMediumTitles"
|
||||
background="blurBottom"
|
||||
background="circleGradient"
|
||||
cardStyle="gradient-mesh"
|
||||
primaryButtonStyle="diagonal-gradient"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -42,7 +42,7 @@ export default function LandingPage() {
|
||||
<HeroSplitKpi
|
||||
title="Authentic Vegetarian Dining in Shalimar Bagh"
|
||||
description="North & South Indian flavors crafted with tradition and fresh ingredients. Experience warm hospitality and premium vegetarian cuisine that has delighted 750+ families."
|
||||
background={{ variant: "blurBottom" }}
|
||||
background={{ variant: "glowing-orb" }}
|
||||
kpis={[
|
||||
{ value: "4.6★", label: "Google Rating" },
|
||||
{ value: "750+", label: "Happy Diners" },
|
||||
@@ -105,7 +105,7 @@ export default function LandingPage() {
|
||||
features={[
|
||||
{
|
||||
id: "1", title: "Authentic South Indian Recipes", description: "Traditional recipes passed down through generations, using time-honored cooking techniques to preserve the authentic flavors of South India.", media: {
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/indian-man-mountains-male-traditional-turban-hinduist-with-special-things-rituals_1157-41084.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/indian-man-mountains-male-traditional-turban-hinduist-with-special-things-rituals_1157-41084.jpg"
|
||||
},
|
||||
items: [
|
||||
{ icon: Check, text: "Traditional preparation methods" },
|
||||
@@ -116,7 +116,7 @@ export default function LandingPage() {
|
||||
},
|
||||
{
|
||||
id: "2", title: "Fresh Ingredients Daily", description: "We source premium ingredients daily to ensure every dish is prepared with the freshest vegetables, oils, and spices available.", media: {
|
||||
imageSrc: "http://img.b2bpic.net/free-psd/indian-restaurant-flyer-experience-flavors-india_23-2152009894.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-psd/indian-restaurant-flyer-experience-flavors-india_23-2152009894.jpg"
|
||||
},
|
||||
items: [
|
||||
{ icon: Check, text: "Daily ingredient sourcing" },
|
||||
@@ -183,13 +183,13 @@ export default function LandingPage() {
|
||||
description="Experience the warm ambiance and delicious preparations at The Narayanam"
|
||||
members={[
|
||||
{
|
||||
id: "1", name: "Dosa Preparation", role: "Signature Specialty", imageSrc: "http://img.b2bpic.net/free-photo/indian-man-mountains-male-traditional-turban-hinduist-with-special-things-rituals_1157-41084.jpg?_wi=2"
|
||||
id: "1", name: "Dosa Preparation", role: "Signature Specialty", imageSrc: "http://img.b2bpic.net/free-photo/indian-man-mountains-male-traditional-turban-hinduist-with-special-things-rituals_1157-41084.jpg"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Idli Steaming", role: "Traditional Method", imageSrc: "http://img.b2bpic.net/free-photo/male-hand-gloves-making-dough-marble-table_2831-8170.jpg"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Complete Thali", role: "Meal Experience", imageSrc: "http://img.b2bpic.net/free-psd/indian-restaurant-flyer-experience-flavors-india_23-2152009894.jpg?_wi=2"
|
||||
id: "3", name: "Complete Thali", role: "Meal Experience", imageSrc: "http://img.b2bpic.net/free-psd/indian-restaurant-flyer-experience-flavors-india_23-2152009894.jpg"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Restaurant Ambiance", role: "Dining Experience", imageSrc: "http://img.b2bpic.net/free-photo/closeup-traditional-emirates-breakfast_181624-56747.jpg"
|
||||
|
||||
@@ -1,51 +1,58 @@
|
||||
"use client";
|
||||
import React, { SVGProps } from 'react';
|
||||
|
||||
import { memo } from "react";
|
||||
import useSvgTextLogo from "./useSvgTextLogo";
|
||||
import { cls } from "@/lib/utils";
|
||||
|
||||
interface SvgTextLogoProps {
|
||||
logoText: string;
|
||||
adjustHeightFactor?: number;
|
||||
verticalAlign?: "top" | "center";
|
||||
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
|
||||
text?: string;
|
||||
fontSize?: number;
|
||||
fontWeight?: number | string;
|
||||
letterSpacing?: number;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
>
|
||||
<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"
|
||||
}}
|
||||
const SvgTextLogo = React.forwardRef<SVGSVGElement, SvgTextLogoProps>(
|
||||
(
|
||||
{
|
||||
text = 'Logo Text',
|
||||
fontSize = 24,
|
||||
fontWeight = 'bold',
|
||||
letterSpacing = 2,
|
||||
className = '',
|
||||
...props
|
||||
},
|
||||
ref
|
||||
) => {
|
||||
return (
|
||||
<svg
|
||||
ref={ref}
|
||||
viewBox="0 0 300 100"
|
||||
width="300"
|
||||
height="100"
|
||||
className={className}
|
||||
{...props}
|
||||
>
|
||||
{logoText}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
<defs>
|
||||
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
||||
<stop offset="0%" style={{ stopColor: '#3b82f6', stopOpacity: 1 }} />
|
||||
<stop offset="100%" style={{ stopColor: '#8b5cf6', stopOpacity: 1 }} />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<text
|
||||
x="50%"
|
||||
y="50%"
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
fill="url(#textGradient)"
|
||||
style={{ pointerEvents: 'none' }}
|
||||
>
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
SvgTextLogo.displayName = 'SvgTextLogo';
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user