Merge version_1 into main #1
@@ -22,7 +22,7 @@ export default function LandingPage() {
|
||||
borderRadius="pill"
|
||||
contentWidth="mediumSmall"
|
||||
sizing="mediumLargeSizeMediumTitles"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="gradient-bordered"
|
||||
primaryButtonStyle="radial-glow"
|
||||
secondaryButtonStyle="glass"
|
||||
@@ -47,7 +47,7 @@ export default function LandingPage() {
|
||||
<HeroCentered
|
||||
title="Riscopri il piacere di sorridere con sicurezza"
|
||||
description="Cliniche IDI unisce odontoiatria estetica d'eccellenza con cura personalizzata e risultati garantiti. Il nostro team di esperti trasforma i tuoi desideri in un sorriso impeccabile, con discretion e professionalità."
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
avatars={[
|
||||
{ src: "http://img.b2bpic.net/free-photo/close-up-businessman-with-hands-crossed-smiling_158595-3406.jpg", alt: "Patient transformation success" },
|
||||
{ src: "http://img.b2bpic.net/free-photo/young-businessman-happy-expression_1194-1551.jpg", alt: "Happy patient after treatment" },
|
||||
@@ -72,7 +72,7 @@ export default function LandingPage() {
|
||||
title="I Nostri Servizi"
|
||||
description="Scopri la gamma completa di trattamenti estetici dentali personalizzati"
|
||||
tag="Eccellenza Professionale"
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="slide-up"
|
||||
features={[
|
||||
{
|
||||
id: "01", title: "Sbiancamento Professionale", description: "Risultati visibili in una seduta con tecnologia avanzata per uno sorriso radioso e naturale", imageSrc: "http://img.b2bpic.net/free-photo/beauty-caries-adult-chair-assistant-canal_1303-2742.jpg", imageAlt: "Professional teeth whitening treatment"
|
||||
@@ -103,7 +103,7 @@ export default function LandingPage() {
|
||||
title="Trasformazioni Straordinarie"
|
||||
description="Guarda i risultati reali dei nostri pazienti soddisfatti. Ogni trasformazione è un'opera d'arte."
|
||||
tag="Prima e Dopo"
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="slide-up"
|
||||
products={[
|
||||
{
|
||||
id: "1", name: "Sbiancamento Professionale", price: "Consulta", imageSrc: "http://img.b2bpic.net/free-photo/doctor-checking-patients-skin-after-cosmetic-treatment_107420-73994.jpg", imageAlt: "Professional teeth whitening transformation"
|
||||
@@ -131,7 +131,7 @@ export default function LandingPage() {
|
||||
<AboutMetric
|
||||
title="Perché Scegliere Cliniche IDI: Eccellenza, Esperienza e Risultati Garantiti"
|
||||
useInvertedBackground={true}
|
||||
metricsAnimation="entrance-slide"
|
||||
metricsAnimation="slide-up"
|
||||
metrics={[
|
||||
{ icon: Award, label: "Anni di Esperienza", value: "25+" },
|
||||
{ icon: Users, label: "Pazienti Soddisfatti", value: "2000+" },
|
||||
@@ -150,7 +150,7 @@ export default function LandingPage() {
|
||||
title="Testimonianze Autentiche"
|
||||
description="Scopri cosa dicono i nostri pazienti soddisfatti della loro esperienza con Cliniche IDI"
|
||||
tag="Fiducia e Risultati"
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="slide-up"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Giulia Rossi", role: "Direttrice Esecutiva", company: "Società di Consulenza Strategica", rating: 5,
|
||||
@@ -190,7 +190,7 @@ export default function LandingPage() {
|
||||
<TeamCardTen
|
||||
title="Un Team di Esperti Dedicati alla Tua Eccellenza Estetica"
|
||||
tag="I Nostri Professionisti"
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="slide-up"
|
||||
members={[
|
||||
{
|
||||
id: "1", name: "Dott. Francesco Rossi", imageSrc: "http://img.b2bpic.net/free-photo/portrait-smiling-young-dentist-dentist-s-clinic_329181-20753.jpg", imageAlt: "Dott. Francesco Rossi, Odontoiatra"
|
||||
@@ -247,10 +247,10 @@ export default function LandingPage() {
|
||||
title="Domande Frequenti"
|
||||
description="Trovate le risposte alle domande più comuni sui nostri servizi e trattamenti"
|
||||
tag="FAQ"
|
||||
tagAnimation="entrance-slide"
|
||||
tagAnimation="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={true}
|
||||
faqsAnimation="entrance-slide"
|
||||
faqsAnimation="slide-up"
|
||||
faqs={[
|
||||
{
|
||||
id: "1", title: "Quanto tempo dura una consulenza iniziale?", content: "La consulenza iniziale dura circa 30-45 minuti. Durante questo incontro, i nostri specialisti valuteranno il tuo caso specifico, ascolteranno le tue esigenze e discuteranno delle opzioni di trattamento personalizzate più adatte a te."
|
||||
|
||||
@@ -1,51 +1,49 @@
|
||||
"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;
|
||||
fill?: string;
|
||||
letterSpacing?: number;
|
||||
}
|
||||
|
||||
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',
|
||||
fill = 'currentColor',
|
||||
letterSpacing = 0,
|
||||
}) => {
|
||||
const textLength = text.length;
|
||||
const charWidth = fontSize * 0.6;
|
||||
const width = textLength * charWidth + letterSpacing * (textLength - 1) + 40;
|
||||
const height = fontSize + 40;
|
||||
|
||||
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 ${width} ${height}`}
|
||||
width={width}
|
||||
height={height}
|
||||
className={className}
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
>
|
||||
<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%"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
letterSpacing={letterSpacing}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user