Merge version_1 into main #2
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="compact"
|
||||
sizing="mediumLargeSizeMediumTitles"
|
||||
background="blurBottom"
|
||||
background="circleGradient"
|
||||
cardStyle="layered-gradient"
|
||||
primaryButtonStyle="gradient"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -45,7 +45,7 @@ export default function LandingPage() {
|
||||
tag="Dental Excellence"
|
||||
tagIcon={Smile}
|
||||
tagAnimation="slide-up"
|
||||
background={{ variant: "blurBottom" }}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
buttons={[
|
||||
{ text: "Schedule Appointment", href: "contact" },
|
||||
{ text: "Learn More", href: "about" }
|
||||
@@ -56,16 +56,16 @@ export default function LandingPage() {
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/side-view-chairs-airport_23-2148255982.jpg", imageAlt: "Bright dental office with modern aesthetic"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/defocused-dentist-with-dentistry-instruments_23-2148338155.jpg?_wi=1", imageAlt: "Professional dental cleaning procedure"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/defocused-dentist-with-dentistry-instruments_23-2148338155.jpg", imageAlt: "Professional dental cleaning procedure"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-girl-sitting-dentist-s-office_1157-29141.jpg?_wi=1", imageAlt: "Teeth whitening treatment"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-girl-sitting-dentist-s-office_1157-29141.jpg", imageAlt: "Teeth whitening treatment"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-caucasian-man-dentist-smiling-confident-holding-whitening-test-clinic_839833-5216.jpg?_wi=1", imageAlt: "Modern dental implant technology"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-caucasian-man-dentist-smiling-confident-holding-whitening-test-clinic_839833-5216.jpg", imageAlt: "Modern dental implant technology"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-young-female-dentist_23-2148396137.jpg?_wi=1", imageAlt: "Professional orthodontic care"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-young-female-dentist_23-2148396137.jpg", imageAlt: "Professional orthodontic care"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
@@ -94,19 +94,19 @@ export default function LandingPage() {
|
||||
tagAnimation="slide-up"
|
||||
features={[
|
||||
{
|
||||
title: "Professional Cleaning", description: "Regular cleanings to maintain optimal oral health and prevent decay", imageSrc: "http://img.b2bpic.net/free-photo/defocused-dentist-with-dentistry-instruments_23-2148338155.jpg?_wi=2", imageAlt: "Professional teeth cleaning", buttonIcon: ArrowRight,
|
||||
title: "Professional Cleaning", description: "Regular cleanings to maintain optimal oral health and prevent decay", imageSrc: "http://img.b2bpic.net/free-photo/defocused-dentist-with-dentistry-instruments_23-2148338155.jpg", imageAlt: "Professional teeth cleaning", buttonIcon: ArrowRight,
|
||||
buttonHref: "contact"
|
||||
},
|
||||
{
|
||||
title: "Teeth Whitening", description: "Advanced whitening treatments for a brighter, more confident smile", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-girl-sitting-dentist-s-office_1157-29141.jpg?_wi=2", imageAlt: "Teeth whitening treatment", buttonIcon: ArrowRight,
|
||||
title: "Teeth Whitening", description: "Advanced whitening treatments for a brighter, more confident smile", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-girl-sitting-dentist-s-office_1157-29141.jpg", imageAlt: "Teeth whitening treatment", buttonIcon: ArrowRight,
|
||||
buttonHref: "contact"
|
||||
},
|
||||
{
|
||||
title: "Dental Implants", description: "Modern implant solutions to restore missing teeth with natural-looking results", imageSrc: "http://img.b2bpic.net/free-photo/young-caucasian-man-dentist-smiling-confident-holding-whitening-test-clinic_839833-5216.jpg?_wi=2", imageAlt: "Dental implant procedure", buttonIcon: ArrowRight,
|
||||
title: "Dental Implants", description: "Modern implant solutions to restore missing teeth with natural-looking results", imageSrc: "http://img.b2bpic.net/free-photo/young-caucasian-man-dentist-smiling-confident-holding-whitening-test-clinic_839833-5216.jpg", imageAlt: "Dental implant procedure", buttonIcon: ArrowRight,
|
||||
buttonHref: "contact"
|
||||
},
|
||||
{
|
||||
title: "Orthodontics", description: "Professional teeth alignment services for a straighter, healthier smile", imageSrc: "http://img.b2bpic.net/free-photo/happy-young-female-dentist_23-2148396137.jpg?_wi=2", imageAlt: "Orthodontic care", buttonIcon: ArrowRight,
|
||||
title: "Orthodontics", description: "Professional teeth alignment services for a straighter, healthier smile", imageSrc: "http://img.b2bpic.net/free-photo/happy-young-female-dentist_23-2148396137.jpg", imageAlt: "Orthodontic care", buttonIcon: ArrowRight,
|
||||
buttonHref: "contact"
|
||||
}
|
||||
]}
|
||||
@@ -190,7 +190,7 @@ export default function LandingPage() {
|
||||
{ text: "Book Now", href: "contact" },
|
||||
{ text: "Call Us", href: "tel:+1-555-123-4567" }
|
||||
]}
|
||||
background={{ variant: "blurBottom" }}
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
useInvertedBackground={true}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,51 +1,42 @@
|
||||
"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;
|
||||
fontSize?: number;
|
||||
fontWeight?: string | number;
|
||||
letterSpacing?: number;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'auto' | 'middle' | 'hanging';
|
||||
}
|
||||
|
||||
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,
|
||||
className = '',
|
||||
fontSize = 48,
|
||||
fontWeight = 'bold',
|
||||
letterSpacing = 0,
|
||||
textAnchor = 'middle',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
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 400 100"
|
||||
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="200"
|
||||
y="50"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
className="fill-current"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user