Merge version_1 into main #2
@@ -1,15 +1,15 @@
|
||||
"use client"
|
||||
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import NavbarLayoutFloatingInline from "@/components/navbar/NavbarLayoutFloatingInline";
|
||||
import HeroCentered from "@/components/sections/hero/HeroCentered";
|
||||
import ProductCardThree from "@/components/sections/product/ProductCardThree";
|
||||
import TestimonialAboutCard from "@/components/sections/about/TestimonialAboutCard";
|
||||
import FeatureCardTwelve from "@/components/sections/feature/FeatureCardTwelve";
|
||||
import TestimonialCardFive from "@/components/sections/testimonial/TestimonialCardFive";
|
||||
import SocialProofOne from "@/components/sections/socialProof/SocialProofOne";
|
||||
import FaqDouble from "@/components/sections/faq/FaqDouble";
|
||||
import FooterBaseCard from "@/components/sections/footer/FooterBaseCard";
|
||||
import NavbarLayoutFloatingInline from '@/components/navbar/NavbarLayoutFloatingInline';
|
||||
import HeroCentered from '@/components/sections/hero/HeroCentered';
|
||||
import ProductCardThree from '@/components/sections/product/ProductCardThree';
|
||||
import TestimonialAboutCard from '@/components/sections/about/TestimonialAboutCard';
|
||||
import FeatureCardTwelve from '@/components/sections/feature/FeatureCardTwelve';
|
||||
import TestimonialCardFive from '@/components/sections/testimonial/TestimonialCardFive';
|
||||
import SocialProofOne from '@/components/sections/socialProof/SocialProofOne';
|
||||
import FaqDouble from '@/components/sections/faq/FaqDouble';
|
||||
import FooterBaseCard from '@/components/sections/footer/FooterBaseCard';
|
||||
import { Zap } from "lucide-react";
|
||||
|
||||
export default function LandingPage() {
|
||||
@@ -133,7 +133,7 @@ export default function LandingPage() {
|
||||
id: "1", name: "Michael Chen, Professional Guide", date: "Date: 15 January 2025", title: "Best lures I've ever used", quote: "I've recommended Best Baits NZ to all my clients. The quality is unmatched and the results speak for themselves. My catch rates improved significantly.", tag: "Guide's Choice", avatarSrc: "http://img.b2bpic.net/free-photo/close-up-photo-bearded-guy-smiling-gesturing-with-ok-sign-expressing-good-choice-being-isolated-graphite_171337-455.jpg", avatarAlt: "Michael Chen", imageSrc: "http://img.b2bpic.net/free-photo/close-up-photo-bearded-guy-smiling-gesturing-with-ok-sign-expressing-good-choice-being-isolated-graphite_171337-455.jpg", imageAlt: "Michael Chen portrait"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Sarah Williams, Fishing Enthusiast", date: "Date: 10 January 2025", title: "Outstanding quality and value", quote: "From my first cast with a Best Baits NZ lure, I knew this was something special. The attention to detail is incredible.", tag: "Regular Customer", avatarSrc: "http://img.b2bpic.net/free-photo/female-enjoying-sea-breeze_23-2148574689.jpg", avatarAlt: "Sarah Williams", imageSrc: "http://img.b2bpic.net/free-photo/female-enjoying-sea-breeze_23-2148574689.jpg?_wi=1", imageAlt: "Sarah Williams portrait"
|
||||
id: "2", name: "Sarah Williams, Fishing Enthusiast", date: "Date: 10 January 2025", title: "Outstanding quality and value", quote: "From my first cast with a Best Baits NZ lure, I knew this was something special. The attention to detail is incredible.", tag: "Regular Customer", avatarSrc: "http://img.b2bpic.net/free-photo/female-enjoying-sea-breeze_23-2148574689.jpg", avatarAlt: "Sarah Williams", imageSrc: "http://img.b2bpic.net/free-photo/female-enjoying-sea-breeze_23-2148574689.jpg", imageAlt: "Sarah Williams portrait"
|
||||
},
|
||||
{
|
||||
id: "3", name: "James Robinson, Competition Angler", date: "Date: 5 January 2025", title: "Competition-grade performance", quote: "I compete in fishing tournaments across New Zealand, and Best Baits NZ lures consistently give me the edge I need.", tag: "Competitor", avatarSrc: "http://img.b2bpic.net/free-photo/shallow-focus-shot-elderly-male-with-fishing-pole_181624-46077.jpg", avatarAlt: "James Robinson", imageSrc: "http://img.b2bpic.net/free-photo/shallow-focus-shot-elderly-male-with-fishing-pole_181624-46077.jpg", imageAlt: "James Robinson portrait"
|
||||
@@ -142,7 +142,7 @@ export default function LandingPage() {
|
||||
id: "4", name: "Emily Thompson, Weekend Angler", date: "Date: 1 January 2025", title: "Made fishing more fun", quote: "These lures have made my weekend fishing trips so much more enjoyable. I'm catching more fish and having a blast doing it.", tag: "Family Fisher", avatarSrc: "http://img.b2bpic.net/free-photo/successful-senior-businessman-showing-thumbs-up_1262-2446.jpg", avatarAlt: "Emily Thompson", imageSrc: "http://img.b2bpic.net/free-photo/successful-senior-businessman-showing-thumbs-up_1262-2446.jpg", imageAlt: "Emily Thompson portrait"
|
||||
},
|
||||
{
|
||||
id: "5", name: "David Park, Expert Angler", date: "Date: 28 December 2024", title: "Professional quality at fair prices", quote: "I've tried premium imported lures costing twice the price. Best Baits NZ offers equal or better performance at a fraction of the cost.", tag: "Expert Angler", avatarSrc: "http://img.b2bpic.net/free-photo/female-enjoying-sea-breeze_23-2148574689.jpg", avatarAlt: "David Park", imageSrc: "http://img.b2bpic.net/free-photo/female-enjoying-sea-breeze_23-2148574689.jpg?_wi=2", imageAlt: "David Park portrait"
|
||||
id: "5", name: "David Park, Expert Angler", date: "Date: 28 December 2024", title: "Professional quality at fair prices", quote: "I've tried premium imported lures costing twice the price. Best Baits NZ offers equal or better performance at a fraction of the cost.", tag: "Expert Angler", avatarSrc: "http://img.b2bpic.net/free-photo/female-enjoying-sea-breeze_23-2148574689.jpg", avatarAlt: "David Park", imageSrc: "http://img.b2bpic.net/free-photo/female-enjoying-sea-breeze_23-2148574689.jpg", imageAlt: "David Park portrait"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Lisa Henderson, Fishing Coach", date: "Date: 20 December 2024", title: "Recommended to all my students", quote: "As a fishing coach, I introduce my students to Best Baits NZ from day one. These lures help them succeed and build confidence.", tag: "Coach", avatarSrc: "http://img.b2bpic.net/free-photo/hiker-couple-love-sitting-nature_23-2148192679.jpg", avatarAlt: "Lisa Henderson", imageSrc: "http://img.b2bpic.net/free-photo/hiker-couple-love-sitting-nature_23-2148192679.jpg", imageAlt: "Lisa Henderson portrait"
|
||||
|
||||
@@ -1,51 +1,47 @@
|
||||
"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;
|
||||
fontFamily?: string;
|
||||
letterSpacing?: number;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'auto' | 'middle' | 'hanging';
|
||||
}
|
||||
|
||||
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 = 24,
|
||||
fontWeight = 700,
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
letterSpacing = 0,
|
||||
textAnchor = 'middle',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
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 200 60"
|
||||
className={`w-full h-auto ${className}`}
|
||||
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="100"
|
||||
y="30"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fontFamily={fontFamily}
|
||||
letterSpacing={letterSpacing}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user