Merge version_1 into main

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

View File

@@ -45,7 +45,7 @@ export default function LandingPage() {
<HeroBillboard
title="India's Fastest Growing Pure Soya Chaap Brand"
description="Join the taste revolution with Son of Swaad, redefining vegetarian comfort food across India. Experience authentic, delicious soya chaap dishes that delight customers and create profitable franchise opportunities."
background={{ variant: "circleGradient" }}
background={{ variant: "sparkles-gradient" }}
tag="Pure Vegetarian Excellence"
tagIcon={Sparkles}
tagAnimation="slide-up"
@@ -84,10 +84,10 @@ export default function LandingPage() {
gridVariant="three-columns-all-equal-width"
products={[
{
id: "1", name: "Soya Chaap Tandoori", price: "₹149", imageSrc: "http://img.b2bpic.net/free-photo/roasted-cauliflower-with-sprouts-beans-served-with-tomato-sauce-herbs_114579-257.jpg?_wi=1", imageAlt: "Tandoori soya chaap starter"
id: "1", name: "Soya Chaap Tandoori", price: "₹149", imageSrc: "http://img.b2bpic.net/free-photo/roasted-cauliflower-with-sprouts-beans-served-with-tomato-sauce-herbs_114579-257.jpg", imageAlt: "Tandoori soya chaap starter"
},
{
id: "2", name: "Soya Chaap Butter Masala", price: "₹199", imageSrc: "http://img.b2bpic.net/free-photo/taking-russian-borsch-soup-with-spoon_114579-3570.jpg?_wi=1", imageAlt: "Rich butter masala chaap"
id: "2", name: "Soya Chaap Butter Masala", price: "₹199", imageSrc: "http://img.b2bpic.net/free-photo/taking-russian-borsch-soup-with-spoon_114579-3570.jpg", imageAlt: "Rich butter masala chaap"
},
{
id: "3", name: "Soya Chaap Biryani", price: "₹169", imageSrc: "http://img.b2bpic.net/free-photo/portion-rice-with-chicken-nuggets-black-board_114579-72415.jpg", imageAlt: "Fragrant soya chaap biryani"
@@ -113,10 +113,10 @@ export default function LandingPage() {
id: "2", value: "22+", title: "Cities", description: "Nationwide franchise expansion", imageSrc: "http://img.b2bpic.net/free-psd/indian-food-facebook-template_23-2151997723.jpg", imageAlt: "Multiple outlet locations"
},
{
id: "3", value: "11,500+", title: "Weekly Customers", description: "Growing customer base", imageSrc: "http://img.b2bpic.net/free-photo/roasted-cauliflower-with-sprouts-beans-served-with-tomato-sauce-herbs_114579-257.jpg?_wi=2", imageAlt: "Customer satisfaction"
id: "3", value: "11,500+", title: "Weekly Customers", description: "Growing customer base", imageSrc: "http://img.b2bpic.net/free-photo/roasted-cauliflower-with-sprouts-beans-served-with-tomato-sauce-herbs_114579-257.jpg", imageAlt: "Customer satisfaction"
},
{
id: "4", value: "₹29", title: "Starting Price", description: "Affordable authentic food", imageSrc: "http://img.b2bpic.net/free-photo/taking-russian-borsch-soup-with-spoon_114579-3570.jpg?_wi=2", imageAlt: "Menu affordability"
id: "4", value: "₹29", title: "Starting Price", description: "Affordable authentic food", imageSrc: "http://img.b2bpic.net/free-photo/taking-russian-borsch-soup-with-spoon_114579-3570.jpg", imageAlt: "Menu affordability"
}
]}
/>
@@ -207,10 +207,10 @@ export default function LandingPage() {
id: "4", name: "Anil Patel", handle: "Owner, Karnal", testimonial: "The support from the franchise team is phenomenal. They genuinely care about our success, and it shows in the profitability of our outlet.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-good-looking-smiling-arabic-man-suit-attractive-young-businessman-with-beard-moustache-looking-camera-portrait-international-beauty-concept_74855-21597.jpg", imageAlt: "Anil Patel franchise owner"
},
{
id: "5", name: "Meera Gupta", handle: "Owner, Delhi NCR", testimonial: "Investing in Son of Swaad was the best business decision I've made. The brand recognition and operational support ensure consistent success.", imageSrc: "http://img.b2bpic.net/free-photo/new-idea-great-business_329181-2907.jpg?_wi=1", imageAlt: "Meera Gupta franchise owner"
id: "5", name: "Meera Gupta", handle: "Owner, Delhi NCR", testimonial: "Investing in Son of Swaad was the best business decision I've made. The brand recognition and operational support ensure consistent success.", imageSrc: "http://img.b2bpic.net/free-photo/new-idea-great-business_329181-2907.jpg", imageAlt: "Meera Gupta franchise owner"
},
{
id: "6", name: "Arjun Desai", handle: "Owner, Haryana Region", testimonial: "The menu diversity and quality standards keep customers coming back. Franchise profitability is strong, and growth potential is immense.", imageSrc: "http://img.b2bpic.net/free-photo/new-idea-great-business_329181-2907.jpg?_wi=2", imageAlt: "Arjun Desai franchise owner"
id: "6", name: "Arjun Desai", handle: "Owner, Haryana Region", testimonial: "The menu diversity and quality standards keep customers coming back. Franchise profitability is strong, and growth potential is immense.", imageSrc: "http://img.b2bpic.net/free-photo/new-idea-great-business_329181-2907.jpg", imageAlt: "Arjun Desai franchise owner"
}
]}
/>
@@ -223,7 +223,7 @@ export default function LandingPage() {
description="Whether you're interested in franchise opportunities, have questions about our model, or want to place a bulk order, we'd love to hear from you. Reach out today and become part of the vegetarian food revolution."
tagIcon={Sparkles}
tagAnimation="slide-up"
background={{ variant: "circleGradient" }}
background={{ variant: "sparkles-gradient" }}
useInvertedBackground={true}
imageSrc="http://img.b2bpic.net/free-photo/beef-lamb-rack-kebab-served-with-onion-slices-vegetables-herbs-lavash-white-plate_114579-297.jpg"
imageAlt="Son of Swaad restaurant cuisine"

View File

@@ -1,51 +1,48 @@
"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?: 'light' | 'normal' | 'bold' | 'semibold';
letterSpacing?: 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 = 24,
fontWeight = 'bold',
letterSpacing = 0,
}) => {
const fontWeightMap = {
light: 300,
normal: 400,
semibold: 600,
bold: 700,
};
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 40"
className={className}
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="50%"
y="50%"
textAnchor="middle"
dominantBaseline="central"
fontSize={fontSize}
fontWeight={fontWeightMap[fontWeight]}
letterSpacing={letterSpacing}
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;