Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 10:53:25 +00:00
2 changed files with 28 additions and 49 deletions

View File

@@ -54,15 +54,15 @@ export default function LandingPage() {
testimonials={[
{
name: "Priya Sharma", handle: "Mumbai Regular", testimonial: "Best dosa in Mumbai! The masala dosa here is absolutely perfect every time.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/deal-extended-happy-books-pretty_1134-1184.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/deal-extended-happy-books-pretty_1134-1184.jpg"
},
{
name: "Rajesh Patel", handle: "Food Enthusiast", testimonial: "The filter coffee and idli are divine. This is authentic South Indian breakfast.", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148138.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148138.jpg"
},
{
name: "Ananya Singh", handle: "Daily Customer", testimonial: "Quick service, authentic taste, and consistent quality. Mani's Cafe is a gem!", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/portrait-happy-woman-black-jacket-happy-short-haired-girl-dark-suit-widely-sincerely-smiles-isolated-background_197531-18508.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/portrait-happy-woman-black-jacket-happy-short-haired-girl-dark-suit-widely-sincerely-smiles-isolated-background_197531-18508.jpg"
}
]}
buttons={[
@@ -70,6 +70,7 @@ export default function LandingPage() {
{ text: "Find Branch", href: "#metrics" }
]}
buttonAnimation="slide-up"
background={{ variant: "plain" }}
useInvertedBackground={false}
/>
</div>
@@ -80,7 +81,7 @@ export default function LandingPage() {
description="What started as a humble tea stall in Mumbai has blossomed into a beloved chain of 23+ branches across Mumbai and Thane. At Mani's Cafe, we're dedicated to preserving authentic South Indian culinary heritage with pure vegetarian cuisine, traditional recipes, and the warmest hospitality."
tag="Our Story"
tagIcon={BookOpen}
imageSrc="http://img.b2bpic.net/free-photo/white-chairs-tables-cafe_141793-2924.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/white-chairs-tables-cafe_141793-2924.jpg"
imageAlt="Warm and welcoming Mani's Cafe interior"
buttons={[
{ text: "Visit Us", href: "#contact" }
@@ -101,7 +102,7 @@ export default function LandingPage() {
useInvertedBackground={false}
products={[
{
id: "1", name: "Masala Dosa", price: "₹120", variant: "Crispy & Golden - Plain, Cheese, Paneer", imageSrc: "http://img.b2bpic.net/free-photo/top-view-sliced-shaurma-tasty-meat-salad-sandwich-grey-surface-burger-sandwich-salad-bread-pita-meat_140725-102090.jpg?_wi=1", imageAlt: "Golden crispy masala dosa", isFavorited: false
id: "1", name: "Masala Dosa", price: "₹120", variant: "Crispy & Golden - Plain, Cheese, Paneer", imageSrc: "http://img.b2bpic.net/free-photo/top-view-sliced-shaurma-tasty-meat-salad-sandwich-grey-surface-burger-sandwich-salad-bread-pita-meat_140725-102090.jpg", imageAlt: "Golden crispy masala dosa", isFavorited: false
},
{
id: "2", name: "Soft Idli", price: "₹80", variant: "Steamed - Plain, Mini, Ghee, Butter", imageSrc: "http://img.b2bpic.net/free-photo/top-view-delicious-dessert-little-yellow-candies-with-cake-inside-plate-dark-grey-background-candy-tea-sugar-cake-sweet_140725-116051.jpg", imageAlt: "Soft fluffy steamed idli", isFavorited: false
@@ -128,7 +129,7 @@ export default function LandingPage() {
features={[
{
id: "1", title: "Pure Vegetarian Excellence", description: "Every dish is 100% vegetarian, prepared with traditional South Indian recipes using authentic ingredients and time-honored cooking methods.", media: {
imageSrc: "http://img.b2bpic.net/free-photo/top-view-sliced-shaurma-tasty-meat-salad-sandwich-grey-surface-burger-sandwich-salad-bread-pita-meat_140725-102090.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/top-view-sliced-shaurma-tasty-meat-salad-sandwich-grey-surface-burger-sandwich-salad-bread-pita-meat_140725-102090.jpg"
},
items: [
{ icon: Leaf, text: "100% Vegetarian" },
@@ -139,7 +140,7 @@ export default function LandingPage() {
},
{
id: "2", title: "Quick Service Excellence", description: "Fast, efficient service without compromising on quality. Perfect for breakfast rush, quick lunches, or casual evening snacks with friends and family.", media: {
imageSrc: "http://img.b2bpic.net/free-photo/white-chairs-tables-cafe_141793-2924.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/white-chairs-tables-cafe_141793-2924.jpg"
},
items: [
{ icon: Zap, text: "Fast Service" },
@@ -150,7 +151,7 @@ export default function LandingPage() {
},
{
id: "3", title: "Extended Reach Across Cities", description: "23+ branches strategically located across Mumbai and Thane, with convenient dine-in, takeaway, and delivery options. Find the nearest Mani's Cafe near you.", media: {
imageSrc: "http://img.b2bpic.net/free-photo/traditional-turkish-arabic-tea-glass-one-wooden-desk_23-2148066591.jpg?_wi=1"
imageSrc: "http://img.b2bpic.net/free-photo/traditional-turkish-arabic-tea-glass-one-wooden-desk_23-2148066591.jpg"
},
items: [
{ icon: MapPin, text: "23+ Branches" },
@@ -202,15 +203,15 @@ export default function LandingPage() {
testimonials={[
{
id: "1", name: "Priya Sharma", role: "Software Engineer", company: "Tech Company", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/deal-extended-happy-books-pretty_1134-1184.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/deal-extended-happy-books-pretty_1134-1184.jpg"
},
{
id: "2", name: "Rajesh Patel", role: "Business Owner", company: "Import Export", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148138.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/smiling-businessman-face-portrait-wearing-suit_53876-148138.jpg"
},
{
id: "3", name: "Ananya Singh", role: "Marketing Manager", company: "Digital Agency", rating: 5,
imageSrc: "http://img.b2bpic.net/free-photo/portrait-happy-woman-black-jacket-happy-short-haired-girl-dark-suit-widely-sincerely-smiles-isolated-background_197531-18508.jpg?_wi=2"
imageSrc: "http://img.b2bpic.net/free-photo/portrait-happy-woman-black-jacket-happy-short-haired-girl-dark-suit-widely-sincerely-smiles-isolated-background_197531-18508.jpg"
},
{
id: "4", name: "Vikram Kumar", role: "Architect", company: "Design Firm", rating: 5,
@@ -229,7 +230,7 @@ export default function LandingPage() {
tagAnimation="slide-up"
background={{ variant: "radial-gradient" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/white-chairs-tables-cafe_141793-2924.jpg?_wi=3"
imageSrc="http://img.b2bpic.net/free-photo/white-chairs-tables-cafe_141793-2924.jpg"
imageAlt="Mani's Cafe cozy interior"
mediaAnimation="slide-up"
mediaPosition="right"
@@ -241,7 +242,7 @@ export default function LandingPage() {
<div id="footer" data-section="footer">
<FooterMedia
imageSrc="http://img.b2bpic.net/free-photo/traditional-turkish-arabic-tea-glass-one-wooden-desk_23-2148066591.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/traditional-turkish-arabic-tea-glass-one-wooden-desk_23-2148066591.jpg"
imageAlt="Traditional South Indian filter coffee"
logoText="Mani's Cafe"
copyrightText="© 2025 Mani's Cafe. Est. 1995. All rights reserved."

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;
dominantBaseline?: 'auto' | 'text-bottom' | 'alphabetic' | 'ideographic' | 'middle' | 'central' | 'mathematical' | 'hanging' | 'text-top' | 'text-before-edge' | 'text-after-edge';
}
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 = '', dominantBaseline = 'middle' }) => {
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"
className={className}
aria-label={`${text} 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"
}}
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline === 'text-before-edge' ? 'hanging' : (dominantBaseline === 'text-bottom' ? 'auto' : dominantBaseline)}
className="fill-current"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;