Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 14:25:03 +00:00
2 changed files with 26 additions and 48 deletions

View File

@@ -54,7 +54,7 @@ export default function LandingPage() {
]}
buttonAnimation="slide-up"
layoutOrder="default"
imageSrc="http://img.b2bpic.net/free-photo/medium-shot-woman-buying-apples_23-2148238141.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/medium-shot-woman-buying-apples_23-2148238141.jpg"
imageAlt="City Mart supermarket bright aisles with fresh groceries"
mediaAnimation="blur-reveal"
frameStyle="card"
@@ -72,7 +72,7 @@ export default function LandingPage() {
{ value: "4.3", title: "Google Rating" }
]}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/man-woman-with-medical-masks-out-grocery-shopping-with-shopping-cart_23-2149483146.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/man-woman-with-medical-masks-out-grocery-shopping-with-shopping-cart_23-2149483146.jpg"
imageAlt="City Mart supermarket clean interior"
mediaAnimation="slide-up"
metricsAnimation="slide-up"
@@ -90,7 +90,7 @@ export default function LandingPage() {
id: "1", title: "Wide Product Selection", descriptions: [
"Everything from fresh groceries to stationery under one roof", "Groceries, cosmetics, household items, personal care, and more", "One-stop shopping for your entire family's needs"
],
imageSrc: "http://img.b2bpic.net/free-photo/plate-fresh-seasonal-vegetables-including-tomatoes-cucumbers-variety-greenery_114579-1842.jpg?_wi=1", imageAlt: "Wide variety of fresh produce and products"
imageSrc: "http://img.b2bpic.net/free-photo/plate-fresh-seasonal-vegetables-including-tomatoes-cucumbers-variety-greenery_114579-1842.jpg", imageAlt: "Wide variety of fresh produce and products"
},
{
id: "2", title: "Convenient Parking", descriptions: [
@@ -102,7 +102,7 @@ export default function LandingPage() {
id: "3", title: "Clean & Organized Store", descriptions: [
"Professional store environment with clear navigation", "Well-maintained shelves and organized sections", "Fresh produce and product quality management"
],
imageSrc: "http://img.b2bpic.net/free-photo/set-ribbons-box_1304-4076.jpg?_wi=1", imageAlt: "Organized supermarket shelves and clean interior"
imageSrc: "http://img.b2bpic.net/free-photo/set-ribbons-box_1304-4076.jpg", imageAlt: "Organized supermarket shelves and clean interior"
},
{
id: "4", title: "Helpful Staff", descriptions: [
@@ -129,15 +129,15 @@ export default function LandingPage() {
products={[
{
id: "1", brand: "City Mart", name: "Fresh Vegetables & Fruits", price: "Seasonal Pricing", rating: 5,
reviewCount: "180+", imageSrc: "http://img.b2bpic.net/free-photo/plate-fresh-seasonal-vegetables-including-tomatoes-cucumbers-variety-greenery_114579-1842.jpg?_wi=2", imageAlt: "Fresh vegetables and fruits"
reviewCount: "180+", imageSrc: "http://img.b2bpic.net/free-photo/plate-fresh-seasonal-vegetables-including-tomatoes-cucumbers-variety-greenery_114579-1842.jpg", imageAlt: "Fresh vegetables and fruits"
},
{
id: "2", brand: "City Mart", name: "Household Essentials", price: "Starting ₹99", rating: 5,
reviewCount: "150+", imageSrc: "http://img.b2bpic.net/free-photo/set-ribbons-box_1304-4076.jpg?_wi=2", imageAlt: "Household cleaning and kitchen items"
reviewCount: "150+", imageSrc: "http://img.b2bpic.net/free-photo/set-ribbons-box_1304-4076.jpg", imageAlt: "Household cleaning and kitchen items"
},
{
id: "3", brand: "City Mart", name: "Groceries & Staples", price: "Best Prices", rating: 5,
reviewCount: "200+", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-woman-buying-apples_23-2148238141.jpg?_wi=2", imageAlt: "Grocery items and staples"
reviewCount: "200+", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-woman-buying-apples_23-2148238141.jpg", imageAlt: "Grocery items and staples"
}
]}
gridVariant="three-columns-all-equal-width"
@@ -157,7 +157,7 @@ export default function LandingPage() {
tagIcon={Star}
testimonials={[
{
id: "1", name: "Anjali Sharma", role: "Homemaker", testimonial: "Great store, very convenient. Has literally everything under one roof. The staff is always helpful and the parking is super easy!", imageSrc: "http://img.b2bpic.net/free-photo/man-woman-with-medical-masks-out-grocery-shopping-with-shopping-cart_23-2149483146.jpg?_wi=2", imageAlt: "Anjali Sharma"
id: "1", name: "Anjali Sharma", role: "Homemaker", testimonial: "Great store, very convenient. Has literally everything under one roof. The staff is always helpful and the parking is super easy!", imageSrc: "http://img.b2bpic.net/free-photo/man-woman-with-medical-masks-out-grocery-shopping-with-shopping-cart_23-2149483146.jpg", imageAlt: "Anjali Sharma"
},
{
id: "2", name: "Rajesh Kumar", role: "Software Professional", testimonial: "One of the best supermarkets in Palakkad with ample parking and good staff. Perfect for my weekly shopping after work.", imageSrc: "http://img.b2bpic.net/free-photo/young-man-wearing-blue-outfit-doing-double-ok-gesture-with_1298-451.jpg", imageAlt: "Rajesh Kumar"
@@ -169,7 +169,6 @@ export default function LandingPage() {
id: "4", name: "Suresh Nair", role: "Retired", testimonial: "Fantastic variety and competitive pricing. The staff remembers regular customers and always greets with a smile. Highly recommended!", imageSrc: "http://img.b2bpic.net/free-photo/happy-afro-american-man-wearing-black-pullover-posing-outdoor-terrace_291650-214.jpg", imageAlt: "Suresh Nair"
}
]}
gridVariant="four-items-2x2-equal-grid"
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={true}
@@ -188,7 +187,7 @@ export default function LandingPage() {
{ id: "3", value: "100", title: "Product Categories", description: "One-stop shopping", icon: ShoppingCart },
{ id: "4", value: "15", title: "Years Serving", description: "Community established", icon: Award }
]}
gridVariant="four-items-2x2-equal-grid"
gridVariant="uniform-all-items-equal"
animationType="slide-up"
textboxLayout="default"
useInvertedBackground={false}
@@ -215,7 +214,7 @@ export default function LandingPage() {
id: "4", title: "📞 How can I contact City Mart?", content: "<strong>Call: +91-9876543210</strong><br/><strong>WhatsApp: +91-9876543210</strong><br/><br/>For product enquiries, bulk purchases, or store information, we're always available to help!"
}
]}
imageSrc="http://img.b2bpic.net/free-photo/man-woman-with-medical-masks-out-grocery-shopping-with-shopping-cart_23-2149483146.jpg?_wi=3"
imageSrc="http://img.b2bpic.net/free-photo/man-woman-with-medical-masks-out-grocery-shopping-with-shopping-cart_23-2149483146.jpg"
imageAlt="City Mart supermarket location"
mediaAnimation="blur-reveal"
mediaPosition="right"
@@ -238,7 +237,7 @@ export default function LandingPage() {
required: true
}}
useInvertedBackground={true}
imageSrc="http://img.b2bpic.net/free-photo/man-woman-with-medical-masks-out-grocery-shopping-with-shopping-cart_23-2149483146.jpg?_wi=4"
imageSrc="http://img.b2bpic.net/free-photo/man-woman-with-medical-masks-out-grocery-shopping-with-shopping-cart_23-2149483146.jpg"
imageAlt="City Mart customer service"
mediaAnimation="slide-up"
mediaPosition="left"

View File

@@ -1,51 +1,30 @@
"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;
}
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 = '' }) => {
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 * 60} 100`}
className={`w-full h-auto ${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%"
textAnchor="middle"
dominantBaseline="central"
fontSize="48"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;