Merge version_1 into main #1
@@ -18,7 +18,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="compact"
|
||||
sizing="mediumLargeSizeLargeTitles"
|
||||
background="noise"
|
||||
background="circleGradient"
|
||||
cardStyle="glass-elevated"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="glass"
|
||||
@@ -43,7 +43,7 @@ export default function LandingPage() {
|
||||
tag="Local Healthcare Leader"
|
||||
tagIcon={Heart}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "noise" }}
|
||||
background={{ variant: "canvas-reveal" }}
|
||||
buttons={[
|
||||
{ text: "Call Us Now: +92 91 5842223", href: "tel:+92915842223" },
|
||||
{ text: "Request Medicine", href: "#contact" }
|
||||
@@ -81,20 +81,16 @@ export default function LandingPage() {
|
||||
useInvertedBackground={true}
|
||||
features={[
|
||||
{
|
||||
id: 1,
|
||||
title: "Prescription Medicines", description: "Wide range of FDA-approved medications for all your medical needs. Fast verification and professional guidance from our licensed pharmacists.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=jgi34p", imageAlt: "Prescription medicines display"
|
||||
id: "1", title: "Prescription Medicines", description: "Wide range of FDA-approved medications for all your medical needs. Fast verification and professional guidance from our licensed pharmacists.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=jgi34p", imageAlt: "Prescription medicines display"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "Supplements & Vitamins", description: "Premium health supplements, multivitamins, and wellness products to support your immune system and overall wellness.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=psgbky", imageAlt: "Vitamins and supplements collection"
|
||||
id: "2", title: "Supplements & Vitamins", description: "Premium health supplements, multivitamins, and wellness products to support your immune system and overall wellness.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=psgbky", imageAlt: "Vitamins and supplements collection"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "Cosmetics & Fragrances", description: "Trusted beauty brands and premium fragrances for personal care and grooming, carefully selected for quality.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=tr09ia", imageAlt: "Cosmetics and fragrances display"
|
||||
id: "3", title: "Cosmetics & Fragrances", description: "Trusted beauty brands and premium fragrances for personal care and grooming, carefully selected for quality.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=tr09ia", imageAlt: "Cosmetics and fragrances display"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "Healthcare Electronics", description: "Modern medical devices including blood pressure monitors, glucose meters, thermometers, and healthcare accessories.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=l4we5r", imageAlt: "Healthcare electronic devices"
|
||||
id: "4", title: "Healthcare Electronics", description: "Modern medical devices including blood pressure monitors, glucose meters, thermometers, and healthcare accessories.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/default/no-image.jpg?id=l4we5r", imageAlt: "Healthcare electronic devices"
|
||||
}
|
||||
]}
|
||||
ariaLabel="Services and Features Section"
|
||||
|
||||
@@ -1,51 +1,49 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: string | number;
|
||||
fill?: 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,
|
||||
fontSize = 24,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
className = '',
|
||||
}) => {
|
||||
// Measure text width
|
||||
const textWidth = text.length * fontSize * 0.6;
|
||||
const padding = 10;
|
||||
const width = textWidth + padding * 2;
|
||||
const height = fontSize + padding * 2;
|
||||
|
||||
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 ${width} ${height}`}
|
||||
width={width}
|
||||
height={height}
|
||||
className={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={padding}
|
||||
y={fontSize + padding}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
dominantBaseline="auto"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user