Merge version_1 into main #2
@@ -32,10 +32,10 @@ export default function LandingPage() {
|
||||
title: "Implant Dentar", description: "Soluții moderne de implantare dentară cu materiale premium și tehnologie de ultimă generație. Recuperare rapidă și rezultate durabile.", icon: Smile,
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/dentist-checking-teeth-woman-lying-dental-chair_23-2147862045.jpg?_wi=1", imageAlt: "Procedură implant dentar"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/dentist-checking-teeth-woman-lying-dental-chair_23-2147862045.jpg", imageAlt: "Procedură implant dentar"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/dentist-checking-teeth-woman-lying-dental-chair_23-2147862045.jpg?_wi=2", imageAlt: "Rezultat implant dentar"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/dentist-checking-teeth-woman-lying-dental-chair_23-2147862045.jpg", imageAlt: "Rezultat implant dentar"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -43,10 +43,10 @@ export default function LandingPage() {
|
||||
title: "Albire Dentară", description: "Tratament profesional de albire dentară care oferă rezultate spectaculoase. Zâmbet strălucitor și încrezător în doar o ședință.", icon: Sparkles,
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/dentist-curing-teeth-patient-glasses_23-2148085331.jpg?_wi=1", imageAlt: "Tratament albire dentară"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/dentist-curing-teeth-patient-glasses_23-2148085331.jpg", imageAlt: "Tratament albire dentară"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/dentist-curing-teeth-patient-glasses_23-2148085331.jpg?_wi=2", imageAlt: "Rezultat albire dentară"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/dentist-curing-teeth-patient-glasses_23-2148085331.jpg", imageAlt: "Rezultat albire dentară"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -54,10 +54,10 @@ export default function LandingPage() {
|
||||
title: "Detartraj și Igienizare", description: "Curățarea profesională a dinților și gingiilor. Previne cariile și bolile parodontale. Recomandată de 2 ori pe an.", icon: Droplets,
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/macro-shot-dental-instrument_23-2147862125.jpg?_wi=1", imageAlt: "Ședință de detartraj"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/macro-shot-dental-instrument_23-2147862125.jpg", imageAlt: "Ședință de detartraj"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/macro-shot-dental-instrument_23-2147862125.jpg?_wi=2", imageAlt: "Igienă dentară profesională"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/macro-shot-dental-instrument_23-2147862125.jpg", imageAlt: "Igienă dentară profesională"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -65,10 +65,10 @@ export default function LandingPage() {
|
||||
title: "Ortodonție", description: "Tratamente complete de aliniere dentară cu aparate fixe și mobile. Transform zâmbetul tău în doar 18-24 luni.", icon: Check,
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-woman-holding-beauty-utensils_23-2149396171.jpg?_wi=1", imageAlt: "Tratament ortodontic"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-woman-holding-beauty-utensils_23-2149396171.jpg", imageAlt: "Tratament ortodontic"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-woman-holding-beauty-utensils_23-2149396171.jpg?_wi=2", imageAlt: "Aliniere dentară modernă"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-woman-holding-beauty-utensils_23-2149396171.jpg", imageAlt: "Aliniere dentară modernă"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -76,10 +76,10 @@ export default function LandingPage() {
|
||||
title: "Tratamente Carii", description: "Intervenții rapide și nedureroase pentru carii dentare. Folosim tehnologia laser și materiale estetice de ultimă generație.", icon: Shield,
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-dentist-instruments_23-2151053315.jpg?_wi=1", imageAlt: "Tratament carie"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-dentist-instruments_23-2151053315.jpg", imageAlt: "Tratament carie"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-dentist-instruments_23-2151053315.jpg?_wi=2", imageAlt: "Restaurare dentară"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/close-up-dentist-instruments_23-2151053315.jpg", imageAlt: "Restaurare dentară"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -87,10 +87,10 @@ export default function LandingPage() {
|
||||
title: "Estetică Dentară", description: "Planuri personalizate pentru obținerea zâmbetului perfect. Fatetele, coronițe estetice și remodelare gingivală.", icon: Star,
|
||||
mediaItems: [
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/joyful-woman-with-sincere-smile-posing-her-room-blonde-caucasian-girl-expressing-happiness_197531-8310.jpg?_wi=1", imageAlt: "Procedură estetică dentară"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/joyful-woman-with-sincere-smile-posing-her-room-blonde-caucasian-girl-expressing-happiness_197531-8310.jpg", imageAlt: "Procedură estetică dentară"
|
||||
},
|
||||
{
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/joyful-woman-with-sincere-smile-posing-her-room-blonde-caucasian-girl-expressing-happiness_197531-8310.jpg?_wi=2", imageAlt: "Rezultat estetică dentară"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/joyful-woman-with-sincere-smile-posing-her-room-blonde-caucasian-girl-expressing-happiness_197531-8310.jpg", imageAlt: "Rezultat estetică dentară"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -231,7 +231,13 @@ export default function LandingPage() {
|
||||
tag="Serviciile Noastre"
|
||||
title="Gama Completă de Servicii Dentare"
|
||||
description="De la profilaxie și igienă dentară la implanturi și estetică dentară, oferim soluții complete pentru sănătatea și frumusețea zâmbetului tău."
|
||||
features={serviceFeatures}
|
||||
features={serviceFeatures.map(feature => ({
|
||||
...feature,
|
||||
mediaItems: [
|
||||
feature.mediaItems[0],
|
||||
feature.mediaItems[1]
|
||||
] as [{ imageSrc: string; imageAlt: string }, { imageSrc: string; imageAlt: string }]
|
||||
}))}
|
||||
animationType="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
|
||||
@@ -1,51 +1,43 @@
|
||||
"use client";
|
||||
import { 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";
|
||||
className?: string;
|
||||
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
|
||||
text: string;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: string | number;
|
||||
fill?: string;
|
||||
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'mathematical' | 'central';
|
||||
}
|
||||
|
||||
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,
|
||||
fontSize = 48,
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
fontWeight = 'bold',
|
||||
fill = '#000',
|
||||
dominantBaseline = 'middle',
|
||||
...props
|
||||
}) => {
|
||||
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 1000 200"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
{...props}
|
||||
>
|
||||
<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={dominantBaseline}
|
||||
textAnchor="middle"
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user