Merge version_1 into main #2
@@ -32,7 +32,7 @@ export default function LandingPage() {
|
||||
navItems={[
|
||||
{ name: "Acasă", id: "home" },
|
||||
{ name: "Experiență", id: "experience" },
|
||||
{ name: "Evenimente", id: "events" },
|
||||
{ name: "evenimente", id: "events" },
|
||||
{ name: "Galerie", id: "gallery" },
|
||||
{ name: "Contact", id: "contact" }
|
||||
]}
|
||||
@@ -77,7 +77,6 @@ export default function LandingPage() {
|
||||
]}
|
||||
speed={40}
|
||||
showCard={true}
|
||||
animationType="slide-up"
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -122,7 +121,7 @@ export default function LandingPage() {
|
||||
id: "private", name: "Petreceri private", price: "Pachete personalizate", variant: "Aniversări, majorate sau evenimente speciale", imageSrc: "http://img.b2bpic.net/free-photo/2018-party-with-champagne-glasses_23-2147715813.jpg", imageAlt: "Petrecere privată"
|
||||
},
|
||||
{
|
||||
id: "corporate", name: "evenimente corporate", price: "Pachete personalizate", variant: "Evenimente elegante pentru companii și instituții", imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-people-work-event_23-2149304739.jpg", imageAlt: "Eveniment corporate"
|
||||
id: "corporate", name: "Evenimente corporate", price: "Pachete personalizate", variant: "evenimente elegante pentru companii și instituții", imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-people-work-event_23-2149304739.jpg", imageAlt: "Eveniment corporate"
|
||||
}
|
||||
]}
|
||||
textboxLayout="default"
|
||||
@@ -166,10 +165,10 @@ export default function LandingPage() {
|
||||
animationType="slide-up"
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Laura J.", handle: "Mireasa 2024", testimonial: "Totul a fost la superlativ. Atmosfera, mâncarea și organizarea au fost impecabile. Recomand cu încredere!", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smiley-woman-reading_23-2148396352.jpg?_wi=1", imageAlt: "Laura J."
|
||||
id: "1", name: "Laura J.", handle: "Mireasa 2024", testimonial: "Totul a fost la superlativ. Atmosfera, mâncarea și organizarea au fost impecabile. Recomand cu încredere!", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smiley-woman-reading_23-2148396352.jpg", imageAlt: "Laura J."
|
||||
},
|
||||
{
|
||||
id: "2", name: "Bogdan C.", handle: "Mire 2024", testimonial: "O locație unde garantat îți creezi amintiri de neuitat. Echipa a fost extraordinară și atentă la detalii.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg?_wi=1", imageAlt: "Bogdan C."
|
||||
id: "2", name: "Bogdan C.", handle: "Mire 2024", testimonial: "O locație unde garantat îți creezi amintiri de neuitat. Echipa a fost extraordinară și atentă la detalii.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg", imageAlt: "Bogdan C."
|
||||
},
|
||||
{
|
||||
id: "3", name: "Vlad L.", handle: "Ospăț 2023", testimonial: "Cel mai elegant salon de evenimente din Bacău. Mâncare absolut delicioasă și serviciu impecabil.", imageSrc: "http://img.b2bpic.net/free-photo/beautiful-business-woman-portrait_23-2149280747.jpg", imageAlt: "Vlad L."
|
||||
@@ -178,10 +177,10 @@ export default function LandingPage() {
|
||||
id: "4", name: "Elena M.", handle: "Familie 2024", testimonial: "Botezul copilului nostru a fost de vis. Decorurile, atmosfera și atenția personalului au fost remarcabile.", imageSrc: "http://img.b2bpic.net/free-photo/handsome-fashion-businessman-model-dressed-elegant-blue-suit-posing-street_158538-14344.jpg", imageAlt: "Elena M."
|
||||
},
|
||||
{
|
||||
id: "5", name: "Andreea P.", handle: "Aniversare 2023", testimonial: "Cea mai frumoasă petrecere din vânzări personalului. Toți invitații au fost fascinați de ambianță și meniu.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smiley-woman-reading_23-2148396352.jpg?_wi=2", imageAlt: "Andreea P."
|
||||
id: "5", name: "Andreea P.", handle: "Aniversare 2023", testimonial: "Cea mai frumoasă petrecere din vânzări personalului. Toți invitații au fost fascinați de ambianță și meniu.", imageSrc: "http://img.b2bpic.net/free-photo/high-angle-smiley-woman-reading_23-2148396352.jpg", imageAlt: "Andreea P."
|
||||
},
|
||||
{
|
||||
id: "6", name: "Mihai T.", handle: "Corporate event 2024", testimonial: "Spațiul perfect pentru evenimentul nostru corporate. Profesionalism, eleganță și atenție la detaliu peste așteptări.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg?_wi=2", imageAlt: "Mihai T."
|
||||
id: "6", name: "Mihai T.", handle: "Corporate event 2024", testimonial: "Spațiul perfect pentru evenimentul nostru corporate. Profesionalism, eleganță și atenție la detaliu peste așteptări.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-smiling-looking-camera_23-2148112827.jpg", imageAlt: "Mihai T."
|
||||
}
|
||||
]}
|
||||
speed={40}
|
||||
|
||||
@@ -1,51 +1,55 @@
|
||||
"use client";
|
||||
import React, { ReactNode } from 'react';
|
||||
|
||||
import { memo } from "react";
|
||||
import useSvgTextLogo from "./useSvgTextLogo";
|
||||
import { cls } from "@/lib/utils";
|
||||
|
||||
interface SvgTextLogoProps {
|
||||
logoText: string;
|
||||
adjustHeightFactor?: number;
|
||||
verticalAlign?: "top" | "center";
|
||||
export interface SvgTextLogoProps {
|
||||
text: string;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fontWeight?: number | string;
|
||||
fill?: string;
|
||||
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'ideographic' | 'text-bottom' | 'text-top';
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
className?: string;
|
||||
children?: ReactNode;
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
>
|
||||
<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"
|
||||
}}
|
||||
const SvgTextLogo = React.forwardRef<SVGSVGElement, SvgTextLogoProps>(
|
||||
(
|
||||
{
|
||||
text,
|
||||
fontSize = 24,
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
fontWeight = 600,
|
||||
fill = 'currentColor',
|
||||
dominantBaseline = 'middle',
|
||||
textAnchor = 'middle',
|
||||
className = '',
|
||||
},
|
||||
ref,
|
||||
) => {
|
||||
return (
|
||||
<svg
|
||||
ref={ref}
|
||||
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize * 1.5}`}
|
||||
className={className}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
{logoText}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
<text
|
||||
x="50%"
|
||||
y="50%"
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
fontWeight={fontWeight}
|
||||
fill={fill}
|
||||
dominantBaseline={dominantBaseline}
|
||||
textAnchor={textAnchor}
|
||||
>
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
},
|
||||
);
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
SvgTextLogo.displayName = 'SvgTextLogo';
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user