Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 05:33:43 +00:00
2 changed files with 34 additions and 42 deletions

View File

@@ -51,6 +51,7 @@ export default function LandingPage() {
imageSrc="http://img.b2bpic.net/free-photo/gynecological-room-hospital_7502-8389.jpg"
imageAlt="Kumar Surgical Clinic modern facility"
imagePosition="right"
mediaAnimation="slide-up"
buttons={[
{ text: "Book Appointment", href: "contact" },
{ text: "Call Now", href: "tel:+919007359139" }
@@ -80,20 +81,24 @@ export default function LandingPage() {
tagIcon={Stethoscope}
features={[
{
id: "1", title: "General Surgery", description: "Advanced surgical procedures including appendectomies, hernia repairs, and abdominal surgeries performed with precision and care.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/team-doctors-are-standing-emergency-room-multiethnic-surgeons-are-working-operating-room-hospital-they-are-wearing-blue-scrubs_657921-1069.jpg" },
id: 1,
title: "General Surgery", description: "Advanced surgical procedures including appendectomies, hernia repairs, and abdominal surgeries performed with precision and care.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/team-doctors-are-standing-emergency-room-multiethnic-surgeons-are-working-operating-room-hospital-they-are-wearing-blue-scrubs_657921-1069.jpg" },
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/surgeons-performing-operation-operation-room_1170-2220.jpg" }
},
{
id: "2", title: "Laparoscopic Surgery", description: "Minimally invasive surgical techniques using advanced equipment for reduced pain, shorter recovery times, and minimal scarring.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/doctor-neurologist-showing-mri-brain-scan-results-her-colleagues_482257-123039.jpg" },
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/different-doctors-doing-surgical-procedure_23-2148962484.jpg?_wi=1" }
id: 2,
title: "Laparoscopic Surgery", description: "Minimally invasive surgical techniques using advanced equipment for reduced pain, shorter recovery times, and minimal scarring.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/doctor-neurologist-showing-mri-brain-scan-results-her-colleagues_482257-123039.jpg" },
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/different-doctors-doing-surgical-procedure_23-2148962484.jpg" }
},
{
id: "3", title: "Hernia Surgery", description: "Specialized hernia repair procedures including inguinal, femoral, and umbilical hernias with latest mesh techniques.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/doctor-holding-silicone-implant-medical-surgent-hold-silicone-implant-install-woman-bust-closeup-surgical-intervention-breast-augmentation-business-concept_657921-77.jpg" },
id: 3,
title: "Hernia Surgery", description: "Specialized hernia repair procedures including inguinal, femoral, and umbilical hernias with latest mesh techniques.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/doctor-holding-silicone-implant-medical-surgent-hold-silicone-implant-install-woman-bust-closeup-surgical-intervention-breast-augmentation-business-concept_657921-77.jpg" },
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/patient-receiving-prescription-paper_482257-123658.jpg" }
},
{
id: "4", title: "Gallbladder Surgery", description: "Laparoscopic cholecystectomy procedures for safe and effective gallbladder removal with rapid recovery.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/surgeons-performing-operation-operation-theater_107420-64881.jpg" },
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/different-doctors-doing-surgical-procedure_23-2148962484.jpg?_wi=2" }
id: 4,
title: "Gallbladder Surgery", description: "Laparoscopic cholecystectomy procedures for safe and effective gallbladder removal with rapid recovery.", phoneOne: { imageSrc: "http://img.b2bpic.net/free-photo/surgeons-performing-operation-operation-theater_107420-64881.jpg" },
phoneTwo: { imageSrc: "http://img.b2bpic.net/free-photo/different-doctors-doing-surgical-procedure_23-2148962484.jpg" }
}
]}
showStepNumbers={true}

View File

@@ -1,51 +1,38 @@
"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;
fontWeight?: number | string;
fill?: string;
className?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
fontSize = 32,
fontWeight = 'bold',
fill = 'currentColor',
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 * fontSize} ${fontSize * 1.5}`}
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"
}}
y={fontSize}
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
dominantBaseline="central"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;