Merge version_1 into main #2
@@ -9,7 +9,7 @@ import TestimonialCardOne from "@/components/sections/testimonial/TestimonialCar
|
||||
import MetricCardTwo from "@/components/sections/metrics/MetricCardTwo";
|
||||
import FaqDouble from "@/components/sections/faq/FaqDouble";
|
||||
import FooterCard from "@/components/sections/footer/FooterCard";
|
||||
import { Compass, Facebook, Heart, Instagram, LinkedIn, Mountain, Star, TrendingUp, Twitter } from "lucide-react";
|
||||
import { Compass, Facebook, Heart, Instagram, Linkedin, Mountain, Star, TrendingUp, Twitter } from "lucide-react";
|
||||
|
||||
export default function LandingPage() {
|
||||
return (
|
||||
@@ -59,15 +59,15 @@ export default function LandingPage() {
|
||||
testimonials={[
|
||||
{
|
||||
name: "Sarah Johnson", handle: "Mountain enthusiast", testimonial: "TrailMate transformed how I explore nature. The community is incredible!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-young-caucasian-female-makes-photos-modern-camera-wears-headband-orange-jumper_273609-25957.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-young-caucasian-female-makes-photos-modern-camera-wears-headband-orange-jumper_273609-25957.jpg"
|
||||
},
|
||||
{
|
||||
name: "Michael Chen", handle: "Adventure seeker", testimonial: "Best hiking app I've used. Safety features give me peace of mind.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-woman-having-fun-while-walking-through-nature-with-her-arms-outstretched_637285-2206.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-woman-having-fun-while-walking-through-nature-with-her-arms-outstretched_637285-2206.jpg"
|
||||
},
|
||||
{
|
||||
name: "Emily Rodriguez", handle: "Trail explorer", testimonial: "Found amazing trails and met wonderful people through TrailMate!", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/hiker-crossing-river_23-2147628764.jpg?_wi=1"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/hiker-crossing-river_23-2147628764.jpg"
|
||||
}
|
||||
]}
|
||||
useInvertedBackground={false}
|
||||
@@ -127,15 +127,15 @@ export default function LandingPage() {
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Sarah Johnson", role: "Mountain Enthusiast", company: "Adventure Club Member", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-young-caucasian-female-makes-photos-modern-camera-wears-headband-orange-jumper_273609-25957.jpg?_wi=2"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/beautiful-young-caucasian-female-makes-photos-modern-camera-wears-headband-orange-jumper_273609-25957.jpg"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Michael Chen", role: "Weekend Explorer", company: "Local Hiking Group", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-woman-having-fun-while-walking-through-nature-with-her-arms-outstretched_637285-2206.jpg?_wi=2"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/happy-woman-having-fun-while-walking-through-nature-with-her-arms-outstretched_637285-2206.jpg"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Emily Rodriguez", role: "Trail Guide", company: "Outdoor Adventures Co.", rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/hiker-crossing-river_23-2147628764.jpg?_wi=2"
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/hiker-crossing-river_23-2147628764.jpg"
|
||||
},
|
||||
{
|
||||
id: "4", name: "David Kim", role: "Nature Photographer", company: "Outdoor Media", rating: 5,
|
||||
@@ -217,7 +217,7 @@ export default function LandingPage() {
|
||||
socialLinks={[
|
||||
{ icon: Instagram, href: "https://instagram.com", ariaLabel: "Instagram" },
|
||||
{ icon: Twitter, href: "https://twitter.com", ariaLabel: "Twitter" },
|
||||
{ icon: LinkedIn, href: "https://linkedin.com", ariaLabel: "LinkedIn" },
|
||||
{ icon: Linkedin, href: "https://linkedin.com", ariaLabel: "LinkedIn" },
|
||||
{ icon: Facebook, href: "https://facebook.com", ariaLabel: "Facebook" }
|
||||
]}
|
||||
/>
|
||||
|
||||
@@ -1,51 +1,31 @@
|
||||
"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;
|
||||
}
|
||||
|
||||
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
|
||||
logoText,
|
||||
adjustHeightFactor,
|
||||
verticalAlign = "top",
|
||||
className = "",
|
||||
}) {
|
||||
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
|
||||
|
||||
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, className = '' }) => {
|
||||
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 ${text.length * 60} 100`}
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
className={className}
|
||||
aria-label={text}
|
||||
>
|
||||
<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%"
|
||||
dominantBaseline="middle"
|
||||
textAnchor="middle"
|
||||
fontSize="48"
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user