Merge version_1 into main #2
@@ -20,7 +20,7 @@ export default function LandingPage() {
|
||||
borderRadius="soft"
|
||||
contentWidth="compact"
|
||||
sizing="mediumLargeSizeMediumTitles"
|
||||
background="noiseDiagonalGradient"
|
||||
background="circleGradient"
|
||||
cardStyle="inset"
|
||||
primaryButtonStyle="diagonal-gradient"
|
||||
secondaryButtonStyle="radial-glow"
|
||||
@@ -44,7 +44,7 @@ export default function LandingPage() {
|
||||
<HeroLogoBillboardSplit
|
||||
logoText="LyricHub"
|
||||
description="Discover, explore, and share lyrics from millions of songs. Your ultimate destination for music lyrics, artist information, and fan communities."
|
||||
background={{ variant: "noiseDiagonalGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
buttons={[
|
||||
{ text: "Start Exploring", href: "#features" },
|
||||
{ text: "Browse Artists", href: "#about" }
|
||||
@@ -128,10 +128,10 @@ export default function LandingPage() {
|
||||
<TestimonialCardTwelve
|
||||
testimonials={[
|
||||
{
|
||||
id: "1", name: "Sarah Chen", imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-enjoying-music-with-headphones_1139-183.jpg?_wi=1", imageAlt: "Sarah Chen, music enthusiast"
|
||||
id: "1", name: "Sarah Chen", imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-enjoying-music-with-headphones_1139-183.jpg", imageAlt: "Sarah Chen, music enthusiast"
|
||||
},
|
||||
{
|
||||
id: "2", name: "Marcus Johnson", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-girl-with-pink-hair-glasses_23-2148629703.jpg?_wi=1", imageAlt: "Marcus Johnson, musician"
|
||||
id: "2", name: "Marcus Johnson", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-girl-with-pink-hair-glasses_23-2148629703.jpg", imageAlt: "Marcus Johnson, musician"
|
||||
},
|
||||
{
|
||||
id: "3", name: "Elena Rodriguez", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-artist-playing-guitar_23-2149223680.jpg", imageAlt: "Elena Rodriguez, music fan"
|
||||
@@ -140,10 +140,10 @@ export default function LandingPage() {
|
||||
id: "4", name: "David Liu", imageSrc: "http://img.b2bpic.net/free-photo/close-up-smiley-woman-portrait_23-2149005396.jpg", imageAlt: "David Liu, music producer"
|
||||
},
|
||||
{
|
||||
id: "5", name: "Jessica Anderson", imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-enjoying-music-with-headphones_1139-183.jpg?_wi=2", imageAlt: "Jessica Anderson, songwriter"
|
||||
id: "5", name: "Jessica Anderson", imageSrc: "http://img.b2bpic.net/free-photo/smiling-young-woman-enjoying-music-with-headphones_1139-183.jpg", imageAlt: "Jessica Anderson, songwriter"
|
||||
},
|
||||
{
|
||||
id: "6", name: "Alex Thompson", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-girl-with-pink-hair-glasses_23-2148629703.jpg?_wi=2", imageAlt: "Alex Thompson, music curator"
|
||||
id: "6", name: "Alex Thompson", imageSrc: "http://img.b2bpic.net/free-photo/medium-shot-girl-with-pink-hair-glasses_23-2148629703.jpg", imageAlt: "Alex Thompson, music curator"
|
||||
}
|
||||
]}
|
||||
cardTitle="Over 2 million music lovers trust LyricHub to discover and share their favorite lyrics"
|
||||
@@ -195,7 +195,7 @@ export default function LandingPage() {
|
||||
{ text: "Start Now", href: "#" },
|
||||
{ text: "Learn More", href: "#" }
|
||||
]}
|
||||
background={{ variant: "noiseDiagonalGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
useInvertedBackground={false}
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -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;
|
||||
fill?: string;
|
||||
textAnchor?: 'start' | 'middle' | 'end';
|
||||
dominantBaseline?: 'auto' | 'baseline' | '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 = 48,
|
||||
fontWeight = 700,
|
||||
fontFamily = 'system-ui, -apple-system, sans-serif',
|
||||
fill = 'currentColor',
|
||||
textAnchor = 'middle',
|
||||
dominantBaseline = 'middle',
|
||||
}) => {
|
||||
return (
|
||||
<svg
|
||||
ref={svgRef}
|
||||
viewBox={viewBox}
|
||||
className={cls("w-full", className)}
|
||||
style={{ aspectRatio: aspectRatio }}
|
||||
preserveAspectRatio="none"
|
||||
viewBox="0 0 200 100"
|
||||
className={className}
|
||||
role="img"
|
||||
aria-label={`${logoText} logo`}
|
||||
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="100"
|
||||
y="50"
|
||||
fontSize={fontSize}
|
||||
fontWeight={fontWeight}
|
||||
fontFamily={fontFamily}
|
||||
fill={fill}
|
||||
textAnchor={textAnchor}
|
||||
dominantBaseline={dominantBaseline}
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
|
||||
export default SvgTextLogo;
|
||||
export default SvgTextLogo;
|
||||
Reference in New Issue
Block a user