Merge version_1 into main #2
@@ -18,7 +18,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="mediumLarge"
|
||||
sizing="large"
|
||||
background="grid"
|
||||
background="circleGradient"
|
||||
cardStyle="subtle-shadow"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -44,7 +44,7 @@ export default function LandingPage() {
|
||||
<HeroLogoBillboardSplit
|
||||
logoText="HARI OM CHEMIST"
|
||||
description="Your Trusted 24/7 Medical Store. Wide range of genuine medicines, wellness products, and fast doorstep delivery — all backed by knowledgeable staff who truly care about your health."
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "animated-grid" }}
|
||||
buttons={[
|
||||
{ text: "Order Medicines Now", href: "#contact" },
|
||||
{ text: "Call the Pharmacist", href: "#contact" }
|
||||
@@ -80,7 +80,7 @@ export default function LandingPage() {
|
||||
id: "5", title: "24/7 Availability", content: "We're open day and night to serve you during medical emergencies. Your health doesn't follow business hours, neither do we."
|
||||
}
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/doctor-showing-cervical-vertebrae-injury-neck-pain-x-ray-ct-scan-results-tablet-patient-medical-appointment-healthcare-specialist-diagnosing-woman-after-symptoms-checkup_482257-64627.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/doctor-showing-cervical-vertebrae-injury-neck-pain-x-ray-ct-scan-results-tablet-patient-medical-appointment-healthcare-specialist-diagnosing-woman-after-symptoms-checkup_482257-64627.jpg"
|
||||
imageAlt="Pharmacist assisting customer"
|
||||
useInvertedBackground={false}
|
||||
mediaPosition="right"
|
||||
@@ -96,16 +96,16 @@ export default function LandingPage() {
|
||||
tag="Healthcare Solutions"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Prescription Medicines", price: "All Prices", variant: "Quick access to genuine medicines", imageSrc: "http://img.b2bpic.net/free-photo/colorful-pills-wooden-spoons_176474-1594.jpg?_wi=1", imageAlt: "Prescription medicines"
|
||||
id: "1", name: "Prescription Medicines", price: "All Prices", variant: "Quick access to genuine medicines", imageSrc: "http://img.b2bpic.net/free-photo/colorful-pills-wooden-spoons_176474-1594.jpg", imageAlt: "Prescription medicines"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Wellness Products", price: "Affordable", variant: "Health supplements and essentials", imageSrc: "http://img.b2bpic.net/free-photo/cropped-image-handsome-young-sportsman-holding-vitamins_171337-15316.jpg?_wi=1", imageAlt: "Health supplements"
|
||||
id: "2", name: "Wellness Products", price: "Affordable", variant: "Health supplements and essentials", imageSrc: "http://img.b2bpic.net/free-photo/cropped-image-handsome-young-sportsman-holding-vitamins_171337-15316.jpg", imageAlt: "Health supplements"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Home Delivery", price: "Fast Service", variant: "Medicines at your doorstep", imageSrc: "http://img.b2bpic.net/free-photo/portrait-woman-holding-products-bought-online_23-2148577050.jpg", imageAlt: "Fast delivery service"
|
||||
},
|
||||
{
|
||||
id: "4", name: "Pharmacist Guidance", price: "Expert Help", variant: "Professional consultation", imageSrc: "http://img.b2bpic.net/free-photo/doctor-showing-cervical-vertebrae-injury-neck-pain-x-ray-ct-scan-results-tablet-patient-medical-appointment-healthcare-specialist-diagnosing-woman-after-symptoms-checkup_482257-64627.jpg?_wi=2", imageAlt: "Pharmacist consultation"
|
||||
id: "4", name: "Pharmacist Guidance", price: "Expert Help", variant: "Professional consultation", imageSrc: "http://img.b2bpic.net/free-photo/doctor-showing-cervical-vertebrae-injury-neck-pain-x-ray-ct-scan-results-tablet-patient-medical-appointment-healthcare-specialist-diagnosing-woman-after-symptoms-checkup_482257-64627.jpg", imageAlt: "Pharmacist consultation"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Emergency Support", price: "24/7 Open", variant: "Always available for you", imageSrc: "http://img.b2bpic.net/free-photo/senior-patient-standing-registration-counter-paying-with-credit-card-medication-treatment-consultation-using-contactless-payment-hospital-waiting-room-health-care-service-support_482257-62019.jpg", imageAlt: "24/7 emergency service"
|
||||
@@ -126,10 +126,10 @@ export default function LandingPage() {
|
||||
tag="Shop Now"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Prescription Medicines", price: "Available", variant: "All prescribed medications", imageSrc: "http://img.b2bpic.net/free-photo/colorful-pills-wooden-spoons_176474-1594.jpg?_wi=2", imageAlt: "Prescription medicines"
|
||||
id: "1", name: "Prescription Medicines", price: "Available", variant: "All prescribed medications", imageSrc: "http://img.b2bpic.net/free-photo/colorful-pills-wooden-spoons_176474-1594.jpg", imageAlt: "Prescription medicines"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Health Supplements", price: "Affordable", variant: "Vitamins and nutritional support", imageSrc: "http://img.b2bpic.net/free-photo/cropped-image-handsome-young-sportsman-holding-vitamins_171337-15316.jpg?_wi=2", imageAlt: "Health supplements"
|
||||
id: "2", name: "Health Supplements", price: "Affordable", variant: "Vitamins and nutritional support", imageSrc: "http://img.b2bpic.net/free-photo/cropped-image-handsome-young-sportsman-holding-vitamins_171337-15316.jpg", imageAlt: "Health supplements"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Baby Care", price: "Quality", variant: "Safe for infants", imageSrc: "http://img.b2bpic.net/free-photo/closeup-bottle-full-milk-duck-toy-white-surface_181624-51892.jpg", imageAlt: "Baby care products"
|
||||
@@ -199,6 +199,7 @@ export default function LandingPage() {
|
||||
useInvertedBackground={false}
|
||||
tagAnimation="slide-up"
|
||||
mediaAnimation="slide-up"
|
||||
metricsAnimation="slide-up"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -207,7 +208,7 @@ export default function LandingPage() {
|
||||
tag="Emergency Support"
|
||||
title="Need Medicines Urgently?"
|
||||
description="We are open 24 hours a day, 7 days a week. Get fast doorstep delivery or call us directly for immediate assistance."
|
||||
background={{ variant: "grid" }}
|
||||
background={{ variant: "animated-grid" }}
|
||||
useInvertedBackground={false}
|
||||
tagAnimation="slide-up"
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,41 @@
|
||||
"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?: string;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'auto' | 'baseline' | 'middle' | 'hanging';
|
||||
}
|
||||
|
||||
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,
|
||||
fontWeight = 'bold',
|
||||
textAnchor = 'middle',
|
||||
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 ${Math.max(text.length * fontSize * 0.6, 300)} ${fontSize * 1.5}`}
|
||||
className={className}
|
||||
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%"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
className="fill-current"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user