Merge version_2 into main #5

Merged
bender merged 3 commits from version_2 into main 2026-03-12 19:54:32 +00:00
2 changed files with 25 additions and 40 deletions

View File

@@ -77,7 +77,7 @@ export default function LandingPage() {
{ text: "Our Story", href: "#" },
{ text: "Meet Our Team", href: "#" }
]}
buttonAnimation="entrance-slide"
buttonAnimation="slide-up"
/>
</div>
@@ -190,7 +190,7 @@ export default function LandingPage() {
required: true
}}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/businesspeople-waiting-queue-check-counter-with-luggage_107420-95784.jpg"
imageSrc="http://img.b2bpic.net/free-photo/businesspeople-waiting-queue-check-counter-with-luggage_107420-95784.jpg?_wi=1"
imageAlt="Luxury travel planning consultation"
mediaAnimation="slide-up"
mediaPosition="right"
@@ -200,7 +200,7 @@ export default function LandingPage() {
<div id="footer" data-section="footer">
<FooterMedia
imageSrc="http://img.b2bpic.net/free-photo/businesspeople-waiting-queue-check-counter-with-luggage_107420-95784.jpg"
imageSrc="http://img.b2bpic.net/free-photo/businesspeople-waiting-queue-check-counter-with-luggage_107420-95784.jpg?_wi=2"
imageAlt="Luxe Voyage - Global travel destinations"
logoText="Luxe Voyage"
copyrightText="© 2024 Luxe Voyage. All rights reserved. Crafting journeys, creating memories."

View File

@@ -1,51 +1,36 @@
"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;
textClassName?: string;
dominantBaseline?: 'auto' | 'hanging' | 'mathematical' | 'central' | 'middle';
}
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,
className = '',
textClassName = '',
dominantBaseline = 'central',
}) => {
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={`w-full h-auto ${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%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
className={`text-3xl font-bold ${textClassName}`}
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;