Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="smallMedium"
|
||||
sizing="mediumLargeSizeMediumTitles"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="layered-gradient"
|
||||
primaryButtonStyle="primary-glow"
|
||||
secondaryButtonStyle="solid"
|
||||
@@ -45,7 +45,7 @@ export default function LandingPage() {
|
||||
<HeroSplitKpi
|
||||
title="Your Smile, Our Passion"
|
||||
description="Experience exceptional dental care in a luxurious, welcoming environment. From routine cleanings to advanced cosmetic procedures, we're committed to creating beautiful, healthy smiles."
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "glowing-orb" }}
|
||||
kpis={[
|
||||
{ value: "25+", label: "Years Experience" },
|
||||
{ value: "5000+", label: "Happy Patients" },
|
||||
@@ -86,15 +86,15 @@ export default function LandingPage() {
|
||||
products={[
|
||||
{
|
||||
id: "1", brand: "SmileLux", name: "Professional Whitening", price: "$299", rating: 5,
|
||||
reviewCount: "847", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-stylish-laughing-model-gray-casual-summer-clothes-brown-hat-with-natural-makeup_158538-11656.jpg?_wi=1", imageAlt: "Professional teeth whitening treatment"
|
||||
reviewCount: "847", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-stylish-laughing-model-gray-casual-summer-clothes-brown-hat-with-natural-makeup_158538-11656.jpg", imageAlt: "Professional teeth whitening treatment"
|
||||
},
|
||||
{
|
||||
id: "2", brand: "SmileLux", name: "Advanced Orthodontics", price: "$3,500", rating: 5,
|
||||
reviewCount: "612", imageSrc: "http://img.b2bpic.net/free-photo/happy-business-woman-blue-shirt_23-2148095791.jpg?_wi=1", imageAlt: "Advanced orthodontic treatment"
|
||||
reviewCount: "612", imageSrc: "http://img.b2bpic.net/free-photo/happy-business-woman-blue-shirt_23-2148095791.jpg", imageAlt: "Advanced orthodontic treatment"
|
||||
},
|
||||
{
|
||||
id: "3", brand: "SmileLux", name: "Dental Implants", price: "$4,200", rating: 5,
|
||||
reviewCount: "534", imageSrc: "http://img.b2bpic.net/free-photo/old-man-sitting-dentist-s-office_1157-19454.jpg?_wi=1", imageAlt: "Professional dental implant procedure"
|
||||
reviewCount: "534", imageSrc: "http://img.b2bpic.net/free-photo/old-man-sitting-dentist-s-office_1157-19454.jpg", imageAlt: "Professional dental implant procedure"
|
||||
}
|
||||
]}
|
||||
ariaLabel="Product section for dental services"
|
||||
@@ -131,16 +131,16 @@ export default function LandingPage() {
|
||||
animationType="slide-up"
|
||||
features={[
|
||||
{
|
||||
title: "Regular Checkups", description: "Comprehensive oral examinations and professional cleanings to maintain optimal dental health and catch issues early.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-stylish-laughing-model-gray-casual-summer-clothes-brown-hat-with-natural-makeup_158538-11656.jpg?_wi=2", imageAlt: "Regular dental checkup"
|
||||
title: "Regular Checkups", description: "Comprehensive oral examinations and professional cleanings to maintain optimal dental health and catch issues early.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-stylish-laughing-model-gray-casual-summer-clothes-brown-hat-with-natural-makeup_158538-11656.jpg", imageAlt: "Regular dental checkup"
|
||||
},
|
||||
{
|
||||
title: "Cosmetic Dentistry", description: "Transform your smile with professional whitening, veneers, and other aesthetic treatments performed with precision.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-stylish-laughing-model-gray-casual-summer-clothes-brown-hat-with-natural-makeup_158538-11656.jpg?_wi=3", imageAlt: "Cosmetic dental treatment"
|
||||
title: "Cosmetic Dentistry", description: "Transform your smile with professional whitening, veneers, and other aesthetic treatments performed with precision.", imageSrc: "http://img.b2bpic.net/free-photo/portrait-young-stylish-laughing-model-gray-casual-summer-clothes-brown-hat-with-natural-makeup_158538-11656.jpg", imageAlt: "Cosmetic dental treatment"
|
||||
},
|
||||
{
|
||||
title: "Orthodontic Care", description: "Advanced braces and clear aligner systems to straighten teeth and improve your bite with modern technology.", imageSrc: "http://img.b2bpic.net/free-photo/happy-business-woman-blue-shirt_23-2148095791.jpg?_wi=2", imageAlt: "Orthodontic treatment"
|
||||
title: "Orthodontic Care", description: "Advanced braces and clear aligner systems to straighten teeth and improve your bite with modern technology.", imageSrc: "http://img.b2bpic.net/free-photo/happy-business-woman-blue-shirt_23-2148095791.jpg", imageAlt: "Orthodontic treatment"
|
||||
},
|
||||
{
|
||||
title: "Implant Restoration", description: "State-of-the-art dental implants that provide permanent, natural-looking solutions for missing teeth.", imageSrc: "http://img.b2bpic.net/free-photo/old-man-sitting-dentist-s-office_1157-19454.jpg?_wi=2", imageAlt: "Dental implant procedure"
|
||||
title: "Implant Restoration", description: "State-of-the-art dental implants that provide permanent, natural-looking solutions for missing teeth.", imageSrc: "http://img.b2bpic.net/free-photo/old-man-sitting-dentist-s-office_1157-19454.jpg", imageAlt: "Dental implant procedure"
|
||||
}
|
||||
]}
|
||||
ariaLabel="Features section for dental services"
|
||||
|
||||
@@ -1,51 +1,29 @@
|
||||
"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;
|
||||
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, 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 200 50"
|
||||
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"
|
||||
}}
|
||||
x="10"
|
||||
y="35"
|
||||
fontSize="32"
|
||||
fontWeight="bold"
|
||||
dominantBaseline="auto"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user