diff --git a/src/app/page.tsx b/src/app/page.tsx index 312efa7..72a863a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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" diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..dbaf78a 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -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(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + 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 ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;