diff --git a/src/app/page.tsx b/src/app/page.tsx index 570ccd0..826be4a 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -9,7 +9,7 @@ import TestimonialCardFifteen from '@/components/sections/testimonial/Testimonia import ContactFaq from '@/components/sections/contact/ContactFaq'; import FooterCard from '@/components/sections/footer/FooterCard'; import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; -import { Award, CheckCircle, Phone, Sparkles } from 'lucide-react'; +import { Award, CheckCircle, Phone, Sparkles, Instagram, MapPin } from 'lucide-react'; export default function LandingPage() { return ( @@ -182,6 +182,8 @@ export default function LandingPage() { logoText="StyleBuddhas" copyrightText="© 2025 StyleBuddhas | Premium Hair & Beauty Salon Barcelona" socialLinks={[ + { icon: Instagram, href: "https://www.instagram.com", ariaLabel: "StyleBuddhas Instagram" }, + { icon: MapPin, href: "https://www.google.com/maps/search/StyleBuddhas+Barcelona+Travessera+de+Gràcia+128", ariaLabel: "StyleBuddhas Location" }, { icon: Phone, href: "tel:+34656927129", ariaLabel: "Call StyleBuddhas" } ]} /> diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..1ab1b99 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -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; + fontSize?: number; + fontWeight?: number | string; + letterSpacing?: number; className?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + text, + fontSize = 48, + fontWeight = 'bold', + letterSpacing = 0, + className = '', +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.6; + const width = textLength * charWidth + letterSpacing * (textLength - 1) + 20; + const height = fontSize + 20; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;