Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 09:51:20 +00:00
2 changed files with 36 additions and 41 deletions

View File

@@ -91,7 +91,7 @@ export default function LandingPage() {
features={[
{
id: 1,
title: "Prescription Medications", description: "Wide selection of prescription medicines from trusted pharmaceutical manufacturers. Licensed pharmacists ensure accurate dispensing.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-female-pharmacist-working-drugstore_23-2151684927.jpg?_wi=1", imageAlt: "pharmacy medicine shelves organized medication display"
title: "Prescription Medications", description: "Wide selection of prescription medicines from trusted pharmaceutical manufacturers. Licensed pharmacists ensure accurate dispensing.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-female-pharmacist-working-drugstore_23-2151684927.jpg", imageAlt: "pharmacy medicine shelves organized medication display"
},
{
id: 2,
@@ -103,11 +103,11 @@ export default function LandingPage() {
},
{
id: 4,
title: "Local Medication Delivery", description: "Fast and reliable delivery service to your home in Tunduma and surrounding areas. Same-day service available.", imageSrc: "http://img.b2bpic.net/free-photo/delivery-man-holding-first-aid-kit-blue-t-shirt_176474-19900.jpg?_wi=1", imageAlt: "medication delivery service local community pharmacist"
title: "Local Medication Delivery", description: "Fast and reliable delivery service to your home in Tunduma and surrounding areas. Same-day service available.", imageSrc: "http://img.b2bpic.net/free-photo/delivery-man-holding-first-aid-kit-blue-t-shirt_176474-19900.jpg", imageAlt: "medication delivery service local community pharmacist"
},
{
id: 5,
title: "Medication Availability Check", description: "Call or submit a request to check if we have your needed medication in stock before visiting.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-female-pharmacist-working-drugstore_23-2151684927.jpg?_wi=2", imageAlt: "pharmacy medicine shelves organized medication display"
title: "Medication Availability Check", description: "Call or submit a request to check if we have your needed medication in stock before visiting.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-female-pharmacist-working-drugstore_23-2151684927.jpg", imageAlt: "pharmacy medicine shelves organized medication display"
}
]}
/>
@@ -122,10 +122,11 @@ export default function LandingPage() {
{ value: "Same-Day", title: "Delivery Service" },
{ value: "5.0★", title: "Customer Rating" }
]}
imageSrc="http://img.b2bpic.net/free-photo/delivery-man-holding-first-aid-kit-blue-t-shirt_176474-19900.jpg?_wi=2"
imageSrc="http://img.b2bpic.net/free-photo/delivery-man-holding-first-aid-kit-blue-t-shirt_176474-19900.jpg"
imageAlt="Fast medication delivery service to your home"
useInvertedBackground={false}
mediaAnimation="slide-up"
metricsAnimation="slide-up"
/>
</div>

View File

@@ -1,51 +1,45 @@
"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;
width?: number;
height?: number;
fontSize?: number;
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,
width = 200,
height = 100,
fontSize = 24,
fontWeight = 'bold',
fill = '#000000',
className = '',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<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={fontWeight}
fill={fill}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;