Merge version_1 into main #1
@@ -9,7 +9,7 @@ import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
|
||||
import TestimonialCardTwelve from '@/components/sections/testimonial/TestimonialCardTwelve';
|
||||
import ContactText from '@/components/sections/contact/ContactText';
|
||||
import FooterMedia from '@/components/sections/footer/FooterMedia';
|
||||
import { Anchor, Award, Boat, BookOpen, ChefHat, Check, Flame, Gauge, Heart, Shield, Star, Users, Utensils, Wine, Waves, Zap } from 'lucide-react';
|
||||
import { Anchor, Award, Bot, BookOpen, ChefHat, Check, Flame, Gauge, Heart, Shield, Star, Users, Utensils, Wine, Waves, Zap } from 'lucide-react';
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
@@ -19,7 +19,7 @@ export default function LandingPage() {
|
||||
borderRadius="rounded"
|
||||
contentWidth="compact"
|
||||
sizing="largeSizeMediumTitles"
|
||||
background="aurora"
|
||||
background="circleGradient"
|
||||
cardStyle="outline"
|
||||
primaryButtonStyle="flat"
|
||||
secondaryButtonStyle="layered"
|
||||
@@ -44,7 +44,7 @@ export default function LandingPage() {
|
||||
<HeroSplitKpi
|
||||
title="Catch Your Dinner, We'll Cook It"
|
||||
description="Book a private fishing charter, reel in your meal, and enjoy it fresh at our waterfront restaurant—all in one unforgettable day"
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "glowing-orb" }}
|
||||
kpis={[
|
||||
{ value: "4-8 Hours", label: "Full Experience" },
|
||||
{ value: "100% Fresh", label: "Ocean to Table" },
|
||||
@@ -74,7 +74,7 @@ export default function LandingPage() {
|
||||
{
|
||||
id: "1", title: "Catch: Set Sail for Adventure", description: "Board our luxury charter boat with experienced captains. Navigate pristine waters, use top-tier fishing equipment, and experience the thrill of reeling in your own meal while enjoying panoramic ocean views.", media: { imageSrc: "http://img.b2bpic.net/free-photo/old-fishing-boat-river-with-breathtaking-view-sunset_181624-16031.jpg" },
|
||||
items: [
|
||||
{ icon: Boat, text: "Luxury vessel with premium amenities" },
|
||||
{ icon: Bot, text: "Luxury vessel with premium amenities" },
|
||||
{ icon: Users, text: "Expert captain guidance" },
|
||||
{ icon: Zap, text: "Real-time fishing excitement" }
|
||||
],
|
||||
@@ -190,7 +190,7 @@ export default function LandingPage() {
|
||||
{ text: "Book Your Experience", href: "https://wix.com/bookings" },
|
||||
{ text: "Contact Us", href: "tel:+1-555-CATCH-DINE" }
|
||||
]}
|
||||
background={{ variant: "aurora" }}
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -1,51 +1,52 @@
|
||||
"use client";
|
||||
|
||||
import { memo } from "react";
|
||||
import useSvgTextLogo from "./useSvgTextLogo";
|
||||
import { cls } from "@/lib/utils";
|
||||
import React, { useRef, useEffect } from 'react';
|
||||
|
||||
interface SvgTextLogoProps {
|
||||
logoText: string;
|
||||
adjustHeightFactor?: number;
|
||||
verticalAlign?: "top" | "center";
|
||||
text: string;
|
||||
fontSize?: number;
|
||||
fontFamily?: string;
|
||||
fill?: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
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,
|
||||
fontSize = 48,
|
||||
fontFamily = 'Arial, sans-serif',
|
||||
fill = 'currentColor',
|
||||
className = '',
|
||||
}) => {
|
||||
const svgRef = useRef<SVGSVGElement>(null);
|
||||
|
||||
useEffect(() => {
|
||||
if (svgRef.current) {
|
||||
const textElement = svgRef.current.querySelector('text');
|
||||
if (textElement) {
|
||||
const bbox = textElement.getBBox();
|
||||
svgRef.current.setAttribute('viewBox', `${bbox.x} ${bbox.y} ${bbox.width} ${bbox.height}`);
|
||||
}
|
||||
}
|
||||
}, [text]);
|
||||
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
className={className}
|
||||
viewBox="0 0 300 100"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<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}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
textAnchor="middle"
|
||||
dominantBaseline="central"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user