Merge version_1 into main #2
@@ -11,7 +11,7 @@ import MetricCardTwo from '@/components/sections/metrics/MetricCardTwo';
|
||||
import PricingCardTwo from '@/components/sections/pricing/PricingCardTwo';
|
||||
import MetricSplitMediaAbout from '@/components/sections/about/MetricSplitMediaAbout';
|
||||
import FooterBaseReveal from '@/components/sections/footer/FooterBaseReveal';
|
||||
import { Crown, Fish, Heart, MapPin, Star, Sun, UtensilsCrossed, Waves, Wine } from 'lucide-react';
|
||||
import { Crown, Fish, Heart, MapPin, Star, Sun, UtensilsCrossed, Waves, Wine, Sparkles } from 'lucide-react';
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
@@ -51,7 +51,7 @@ export default function LandingPage() {
|
||||
]}
|
||||
buttonAnimation="slide-up"
|
||||
background={{ variant: "sparkles-gradient" }}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/outdoors-picnic-scenery-summertime_23-2151425868.jpg?_wi=1"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/outdoors-picnic-scenery-summertime_23-2151425868.jpg"
|
||||
imageAlt="Beachfront terrace with ocean view at Linha d'Água restaurant"
|
||||
mediaAnimation="blur-reveal"
|
||||
frameStyle="card"
|
||||
@@ -98,7 +98,7 @@ export default function LandingPage() {
|
||||
buttonHref: "#reservations"
|
||||
},
|
||||
{
|
||||
title: "Outdoor Ambiance", description: "Relaxed yet stylish coastal atmosphere", imageSrc: "http://img.b2bpic.net/free-photo/wine-glass_74190-1307.jpg", imageAlt: "Elegant beachfront restaurant dining", buttonIcon: Star,
|
||||
title: "Outdoor Ambiance", description: "Relaxed yet stylish coastal atmosphere", imageSrc: "http://img.b2bpic.net/free-photo/wine-glass_74190-1307.jpg", imageAlt: "Elegant beachfront restaurant dining", buttonIcon: Sparkles,
|
||||
buttonHref: "#reservations"
|
||||
},
|
||||
{
|
||||
@@ -203,7 +203,7 @@ export default function LandingPage() {
|
||||
{ value: "+238", title: "Call to Reserve" }
|
||||
]}
|
||||
useInvertedBackground={false}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/outdoors-picnic-scenery-summertime_23-2151425868.jpg?_wi=2"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/outdoors-picnic-scenery-summertime_23-2151425868.jpg"
|
||||
imageAlt="Beachfront location and ocean view"
|
||||
mediaAnimation="slide-up"
|
||||
tagAnimation="slide-up"
|
||||
@@ -229,7 +229,7 @@ export default function LandingPage() {
|
||||
required: false
|
||||
}}
|
||||
useInvertedBackground={false}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/outdoors-picnic-scenery-summertime_23-2151425868.jpg?_wi=3"
|
||||
imageSrc="http://img.b2bpic.net/free-photo/outdoors-picnic-scenery-summertime_23-2151425868.jpg"
|
||||
imageAlt="Beachfront dining setup"
|
||||
mediaAnimation="blur-reveal"
|
||||
mediaPosition="right"
|
||||
@@ -272,4 +272,4 @@ export default function LandingPage() {
|
||||
</div>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,51 +1,53 @@
|
||||
"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?: number | string;
|
||||
letterSpacing?: number;
|
||||
}
|
||||
|
||||
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 = '',
|
||||
fontSize = 48,
|
||||
fontWeight = 700,
|
||||
letterSpacing = 0,
|
||||
}) => {
|
||||
const svgWidth = text.length * fontSize * 0.6;
|
||||
const svgHeight = fontSize * 1.5;
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
width="100%"
|
||||
height="auto"
|
||||
viewBox={`0 0 ${svgWidth} ${svgHeight}`}
|
||||
preserveAspectRatio="xMidYMid meet"
|
||||
className={className}
|
||||
aria-label={text}
|
||||
>
|
||||
<defs>
|
||||
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||
<stop offset="0%" stopColor="#ffffff" />
|
||||
<stop offset="100%" stopColor="#e0e0e0" />
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<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="central"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
letterSpacing={letterSpacing}
|
||||
fill="url(#textGradient)"
|
||||
fontFamily="inherit"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user