Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 05:18:01 +00:00
2 changed files with 37 additions and 49 deletions

View File

@@ -28,7 +28,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="compact"
sizing="largeSmall"
background="blurBottom"
background="circleGradient"
cardStyle="solid"
primaryButtonStyle="gradient"
secondaryButtonStyle="radial-glow"
@@ -42,13 +42,13 @@ export default function LandingPage() {
<HeroLogoBillboardSplit
logoText="City Crown Dental"
description="Your Smile, Our Pride. Expert dental care with modern implant technology and compassionate treatment for families across Haridwar and Uttarakhand."
background={{ variant: "blurBottom" }}
background={{ variant: "plain" }}
buttons={[
{ text: "Book Appointment", href: "#contact" },
{ text: "Learn More", href: "#services" }
]}
layoutOrder="default"
imageSrc="http://img.b2bpic.net/free-photo/woman-having-dental-treatment-dentist-s-office-woman-is-being-treated-teeth_1157-41734.jpg?_wi=1"
imageSrc="http://img.b2bpic.net/free-photo/woman-having-dental-treatment-dentist-s-office-woman-is-being-treated-teeth_1157-41734.jpg"
imageAlt="City Crown Dental Clinic modern facility"
frameStyle="card"
mediaAnimation="slide-up"
@@ -80,43 +80,43 @@ export default function LandingPage() {
{
title: "Dental Implants", description: "Advanced implant technology for permanent tooth replacement with exceptional durability and natural appearance.", icon: Smile,
mediaItems: [
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-dentist-using-instruments_23-2151053275.jpg?_wi=1", imageAlt: "Dental implant procedure" },
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg?_wi=1", imageAlt: "Modern implant center" }
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-dentist-using-instruments_23-2151053275.jpg", imageAlt: "Dental implant procedure" },
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg", imageAlt: "Modern implant center" }
]
},
{
title: "Root Canal Treatment", description: "Specialized endodontic care to save infected teeth and eliminate pain with minimally invasive techniques.", icon: Activity,
mediaItems: [
{ imageSrc: "http://img.b2bpic.net/free-photo/stomatologist-explaining-proper-dental-hygiene-using-teeth-skeleton-stomatology-appointment_482257-4910.jpg", imageAlt: "Root canal treatment" },
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg?_wi=2", imageAlt: "Dental treatment area" }
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg", imageAlt: "Dental treatment area" }
]
},
{
title: "Teeth Whitening", description: "Professional cosmetic whitening treatments for a brighter, more confident smile that lasts.", icon: Zap,
mediaItems: [
{ imageSrc: "http://img.b2bpic.net/free-photo/patient-getting-procedure-dentist_23-2148380357.jpg", imageAlt: "Teeth whitening results" },
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg?_wi=3", imageAlt: "Professional whitening treatment" }
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg", imageAlt: "Professional whitening treatment" }
]
},
{
title: "Braces & Orthodontics", description: "Customized orthodontic solutions including traditional braces and modern clear aligners for perfect alignment.", icon: Check,
mediaItems: [
{ imageSrc: "http://img.b2bpic.net/free-photo/happy-cheerful-glad-young-sportswoman-redhead-nominated-smiling-surprised-laughing-joyfully-close-eyes-pointing-herself-chosen-picked-winning-first-prize-standing-blue-background_1258-57088.jpg", imageAlt: "Orthodontic braces" },
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg?_wi=4", imageAlt: "Orthodontics consultation" }
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg", imageAlt: "Orthodontics consultation" }
]
},
{
title: "Crowns & Bridges", description: "Premium restorative solutions to replace damaged teeth and restore your natural smile.", icon: Shield,
mediaItems: [
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-dentist-using-instruments_23-2151053275.jpg?_wi=2", imageAlt: "Crown and bridge restoration" },
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg?_wi=5", imageAlt: "Restoration consultation" }
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-dentist-using-instruments_23-2151053275.jpg", imageAlt: "Crown and bridge restoration" },
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg", imageAlt: "Restoration consultation" }
]
},
{
title: "Smile Makeover", description: "Complete smile transformation combining multiple treatments for your dream smile.", icon: Heart,
mediaItems: [
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-having-dental-treatment-dentist-s-office-woman-is-being-treated-teeth_1157-41734.jpg?_wi=2", imageAlt: "Smile makeover transformation" },
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg?_wi=6", imageAlt: "Makeover consultation" }
{ imageSrc: "http://img.b2bpic.net/free-photo/woman-having-dental-treatment-dentist-s-office-woman-is-being-treated-teeth_1157-41734.jpg", imageAlt: "Smile makeover transformation" },
{ imageSrc: "http://img.b2bpic.net/free-photo/waiting-room-lobby-with-empty-reception-counter-desk-give-help-support-patients-with-consultation-appointments-professional-treatment-space-with-checkup-visits-clinical-exam_482257-50526.jpg", imageAlt: "Makeover consultation" }
]
}
]}

View File

@@ -1,51 +1,39 @@
"use client";
import React, { SVGProps } 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 SVGProps<SVGSVGElement> {
text?: string;
fontSize?: number;
fillColor?: 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 = 'LOGO',
fontSize = 64,
fillColor = '#000000',
className = '',
...svgProps
}) => {
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 * 0.6} ${fontSize * 1.5}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
{...svgProps}
>
<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%"
dominantBaseline="middle"
textAnchor="middle"
fontSize={fontSize}
fontWeight="bold"
fill={fillColor}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;