Merge version_1 into main #2
@@ -51,22 +51,23 @@ export default function BhaskaraHospital() {
|
||||
imageSrc="http://img.b2bpic.net/free-photo/abstract-blur-hotel-interior_1203-8568.jpg"
|
||||
imageAlt="Bhaskara Hospital - Modern Healthcare Facility"
|
||||
mediaAnimation="slide-up"
|
||||
background={{ variant: "glowing-orb" }}
|
||||
testimonials={[
|
||||
{
|
||||
name: "Rajesh Kumar", handle: "Patient", testimonial: "Very good staff and doctor. Caring and professional treatment. Highly recommend!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-adult-man-doctor-uniform-with-stethoscope-gesturing-victory-sign_141793-124715.jpg?_wi=1", imageAlt: "Rajesh Kumar"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-adult-man-doctor-uniform-with-stethoscope-gesturing-victory-sign_141793-124715.jpg", imageAlt: "Rajesh Kumar"
|
||||
},
|
||||
{
|
||||
name: "Priya Sharma", handle: "Patient", testimonial: "Dr Pradeep controlled my diabetes very well. Great experience with the team.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-cafe_273609-12859.jpg?_wi=1", imageAlt: "Priya Sharma"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-cafe_273609-12859.jpg", imageAlt: "Priya Sharma"
|
||||
},
|
||||
{
|
||||
name: "Suresh Reddy", handle: "Patient", testimonial: "The staff are caring and helpful. Affordable treatment with excellent care.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-wearing-fashion-glasses_329181-1227.jpg?_wi=1", imageAlt: "Suresh Reddy"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/woman-wearing-fashion-glasses_329181-1227.jpg", imageAlt: "Suresh Reddy"
|
||||
},
|
||||
{
|
||||
name: "Anjali Verma", handle: "Patient", testimonial: "Best healthcare experience. Doctors listen carefully and provide accurate diagnosis.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-mature-woman-is-talking-doctor-counselling-medical-clinic_637285-1200.jpg?_wi=1", imageAlt: "Anjali Verma"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/smiling-mature-woman-is-talking-doctor-counselling-medical-clinic_637285-1200.jpg", imageAlt: "Anjali Verma"
|
||||
}
|
||||
]}
|
||||
buttons={[
|
||||
@@ -118,11 +119,11 @@ export default function BhaskaraHospital() {
|
||||
tagAnimation="slide-up"
|
||||
features={[
|
||||
{
|
||||
title: "General Medicine", description: "Fever, viral infections, dengue, typhoid, and infectious disease treatment", imageSrc: "http://img.b2bpic.net/free-photo/anesthetist-working-operating-theatre-wearing-protecive-gear-checking-monitors-while-sedating-patient-before-surgical-procedure-hospital_657921-1095.jpg?_wi=1", imageAlt: "General Medicine Services", buttonIcon: ArrowRight,
|
||||
title: "General Medicine", description: "Fever, viral infections, dengue, typhoid, and infectious disease treatment", imageSrc: "http://img.b2bpic.net/free-photo/anesthetist-working-operating-theatre-wearing-protecive-gear-checking-monitors-while-sedating-patient-before-surgical-procedure-hospital_657921-1095.jpg", imageAlt: "General Medicine Services", buttonIcon: ArrowRight,
|
||||
buttonHref: "#contact"
|
||||
},
|
||||
{
|
||||
title: "Diabetes Management", description: "Blood sugar control, insulin management, and long-term diabetes care", imageSrc: "http://img.b2bpic.net/free-photo/doctor-checking-patient-side-view_23-2149726924.jpg?_wi=1", imageAlt: "Diabetes Management", buttonIcon: ArrowRight,
|
||||
title: "Diabetes Management", description: "Blood sugar control, insulin management, and long-term diabetes care", imageSrc: "http://img.b2bpic.net/free-photo/doctor-checking-patient-side-view_23-2149726924.jpg", imageAlt: "Diabetes Management", buttonIcon: ArrowRight,
|
||||
buttonHref: "#contact"
|
||||
},
|
||||
{
|
||||
@@ -134,11 +135,11 @@ export default function BhaskaraHospital() {
|
||||
buttonHref: "#contact"
|
||||
},
|
||||
{
|
||||
title: "Emergency & Acute Care", description: "Stroke care, severe fever treatment, and urgent medical response", imageSrc: "http://img.b2bpic.net/free-photo/anesthetist-working-operating-theatre-wearing-protecive-gear-checking-monitors-while-sedating-patient-before-surgical-procedure-hospital_657921-1095.jpg?_wi=2", imageAlt: "Emergency Care", buttonIcon: ArrowRight,
|
||||
title: "Emergency & Acute Care", description: "Stroke care, severe fever treatment, and urgent medical response", imageSrc: "http://img.b2bpic.net/free-photo/anesthetist-working-operating-theatre-wearing-protecive-gear-checking-monitors-while-sedating-patient-before-surgical-procedure-hospital_657921-1095.jpg", imageAlt: "Emergency Care", buttonIcon: ArrowRight,
|
||||
buttonHref: "#contact"
|
||||
},
|
||||
{
|
||||
title: "Infection Treatment", description: "Chickenpox, dengue, typhoid, and other infectious disease management", imageSrc: "http://img.b2bpic.net/free-photo/doctor-checking-patient-side-view_23-2149726924.jpg?_wi=2", imageAlt: "Infection Treatment", buttonIcon: ArrowRight,
|
||||
title: "Infection Treatment", description: "Chickenpox, dengue, typhoid, and other infectious disease management", imageSrc: "http://img.b2bpic.net/free-photo/doctor-checking-patient-side-view_23-2149726924.jpg", imageAlt: "Infection Treatment", buttonIcon: ArrowRight,
|
||||
buttonHref: "#contact"
|
||||
}
|
||||
]}
|
||||
@@ -186,16 +187,16 @@ export default function BhaskaraHospital() {
|
||||
tagAnimation="slide-up"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", title: "Excellent Diabetes Care", quote: "Dr Pradeep has been managing my diabetes for 3 years now. His careful approach and regular monitoring have significantly improved my health. I trust him completely.", name: "Rajesh Kumar", role: "Patient, Gandi Maisamma", imageSrc: "http://img.b2bpic.net/free-photo/smiling-adult-man-doctor-uniform-with-stethoscope-gesturing-victory-sign_141793-124715.jpg?_wi=2", imageAlt: "Rajesh Kumar testimonial"
|
||||
id: "1", title: "Excellent Diabetes Care", quote: "Dr Pradeep has been managing my diabetes for 3 years now. His careful approach and regular monitoring have significantly improved my health. I trust him completely.", name: "Rajesh Kumar", role: "Patient, Gandi Maisamma", imageSrc: "http://img.b2bpic.net/free-photo/smiling-adult-man-doctor-uniform-with-stethoscope-gesturing-victory-sign_141793-124715.jpg", imageAlt: "Rajesh Kumar testimonial"
|
||||
},
|
||||
{
|
||||
id: "2", title: "Caring & Professional Staff", quote: "The entire team at Bhaskara Hospital is so caring and professional. Very good staff and doctor. I recommend them to all my family and friends.", name: "Priya Sharma", role: "Patient, Bahadurpally", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-cafe_273609-12859.jpg?_wi=2", imageAlt: "Priya Sharma testimonial"
|
||||
id: "2", title: "Caring & Professional Staff", quote: "The entire team at Bhaskara Hospital is so caring and professional. Very good staff and doctor. I recommend them to all my family and friends.", name: "Priya Sharma", role: "Patient, Bahadurpally", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-woman-cafe_273609-12859.jpg", imageAlt: "Priya Sharma testimonial"
|
||||
},
|
||||
{
|
||||
id: "3", title: "Affordable Quality Healthcare", quote: "Affordable treatment with excellent care. The staff are helpful and patient. It's refreshing to find quality healthcare without breaking the bank.", name: "Suresh Reddy", role: "Patient, Suraram", imageSrc: "http://img.b2bpic.net/free-photo/woman-wearing-fashion-glasses_329181-1227.jpg?_wi=2", imageAlt: "Suresh Reddy testimonial"
|
||||
id: "3", title: "Affordable Quality Healthcare", quote: "Affordable treatment with excellent care. The staff are helpful and patient. It's refreshing to find quality healthcare without breaking the bank.", name: "Suresh Reddy", role: "Patient, Suraram", imageSrc: "http://img.b2bpic.net/free-photo/woman-wearing-fashion-glasses_329181-1227.jpg", imageAlt: "Suresh Reddy testimonial"
|
||||
},
|
||||
{
|
||||
id: "4", title: "Accurate Diagnosis & Care", quote: "Dr Pradeep took time to listen to my concerns and provided accurate diagnosis. The treatment has been very effective. Highly satisfied with the service.", name: "Anjali Verma", role: "Patient, Shapur Nagar", imageSrc: "http://img.b2bpic.net/free-photo/smiling-mature-woman-is-talking-doctor-counselling-medical-clinic_637285-1200.jpg?_wi=2", imageAlt: "Anjali Verma testimonial"
|
||||
id: "4", title: "Accurate Diagnosis & Care", quote: "Dr Pradeep took time to listen to my concerns and provided accurate diagnosis. The treatment has been very effective. Highly satisfied with the service.", name: "Anjali Verma", role: "Patient, Shapur Nagar", imageSrc: "http://img.b2bpic.net/free-photo/smiling-mature-woman-is-talking-doctor-counselling-medical-clinic_637285-1200.jpg", imageAlt: "Anjali Verma testimonial"
|
||||
},
|
||||
{
|
||||
id: "5", title: "Best Healthcare Experience", quote: "Had an emergency at night and the hospital was fully prepared. The doctors and nurses responded immediately with professionalism. Thank you, Bhaskara Hospital!", name: "Vikram Singh", role: "Patient, Dundigal", imageSrc: "http://img.b2bpic.net/free-photo/front-view-cute-girl-looking-away_23-2148436134.jpg", imageAlt: "Vikram Singh testimonial"
|
||||
|
||||
@@ -1,51 +1,58 @@
|
||||
"use client";
|
||||
import React, { SVGAttributes } from 'react';
|
||||
|
||||
import { memo } from "react";
|
||||
import useSvgTextLogo from "./useSvgTextLogo";
|
||||
import { cls } from "@/lib/utils";
|
||||
|
||||
interface SvgTextLogoProps {
|
||||
logoText: string;
|
||||
adjustHeightFactor?: number;
|
||||
verticalAlign?: "top" | "center";
|
||||
interface SvgTextLogoProps extends SVGAttributes<SVGSVGElement> {
|
||||
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.forwardRef<SVGSVGElement, SvgTextLogoProps>(
|
||||
(
|
||||
{
|
||||
text = 'Logo',
|
||||
fontSize = 24,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fontWeight = 'bold',
|
||||
fill = 'currentColor',
|
||||
className = '',
|
||||
...props
|
||||
},
|
||||
ref
|
||||
) => {
|
||||
// Estimate width based on text length and font size
|
||||
const estimatedWidth = text.length * (fontSize * 0.6);
|
||||
const height = fontSize * 1.5;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
>
|
||||
<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"
|
||||
}}
|
||||
return (
|
||||
<svg
|
||||
ref={ref}
|
||||
width={estimatedWidth}
|
||||
height={height}
|
||||
viewBox={`0 0 ${estimatedWidth} ${height}`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
{...props}
|
||||
>
|
||||
{logoText}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
<text
|
||||
x={estimatedWidth / 2}
|
||||
y={height / 2}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
textAnchor="middle"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
SvgTextLogo.displayName = 'SvgTextLogo';
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user