Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 19:44:41 +00:00
2 changed files with 32 additions and 45 deletions

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="smallMedium"
sizing="mediumLargeSizeMediumTitles"
background="noiseDiagonalGradient"
background="circleGradient"
cardStyle="solid"
primaryButtonStyle="diagonal-gradient"
secondaryButtonStyle="glass"
@@ -48,7 +48,7 @@ export default function LandingPage() {
tag="Monster Database"
tagIcon={Skull}
tagAnimation="slide-up"
background={{ variant: "noiseDiagonalGradient" }}
background={{ variant: "glowing-orb" }}
leftCarouselItems={[
{ imageSrc: "http://img.b2bpic.net/free-photo/beautiful-elusive-eurasian-wolf-colorful-summer_475641-1353.jpg", imageAlt: "Werewolf creature" },
{ imageSrc: "http://img.b2bpic.net/free-photo/close-up-creepy-forest-creature_23-2150872654.jpg", imageAlt: "Demon creature" },
@@ -96,23 +96,23 @@ export default function LandingPage() {
products={[
{
id: "1", brand: "Mythical Lore", name: "Elder Dragon", price: "5 Realms", rating: 5,
reviewCount: "12.3k", imageSrc: "http://img.b2bpic.net/free-photo/scenes-horror-canyon_456031-92.jpg?_wi=1", imageAlt: "Elder Dragon from Dark Fantasy"
reviewCount: "12.3k", imageSrc: "http://img.b2bpic.net/free-photo/scenes-horror-canyon_456031-92.jpg", imageAlt: "Elder Dragon from Dark Fantasy"
},
{
id: "2", brand: "Classic Horror", name: "Vlad the Impaler Vampire", price: "4 Realms", rating: 5,
reviewCount: "9.8k", imageSrc: "http://img.b2bpic.net/free-photo/scenes-horror-canyon_456031-92.jpg?_wi=2", imageAlt: "Classic Vampire"
reviewCount: "9.8k", imageSrc: "http://img.b2bpic.net/free-photo/scenes-horror-canyon_456031-92.jpg", imageAlt: "Classic Vampire"
},
{
id: "3", brand: "Dark Magic", name: "Shadow Demon", price: "5 Realms", rating: 5,
reviewCount: "11.2k", imageSrc: "http://img.b2bpic.net/free-photo/scenes-horror-canyon_456031-92.jpg?_wi=3", imageAlt: "Shadow Demon creature"
reviewCount: "11.2k", imageSrc: "http://img.b2bpic.net/free-photo/scenes-horror-canyon_456031-92.jpg", imageAlt: "Shadow Demon creature"
},
{
id: "4", brand: "Ancient Legends", name: "Kraken of the Deep", price: "4 Realms", rating: 5,
reviewCount: "10.5k", imageSrc: "http://img.b2bpic.net/free-photo/scenes-horror-canyon_456031-92.jpg?_wi=4", imageAlt: "Kraken sea monster"
reviewCount: "10.5k", imageSrc: "http://img.b2bpic.net/free-photo/scenes-horror-canyon_456031-92.jpg", imageAlt: "Kraken sea monster"
},
{
id: "5", brand: "Undead Horrors", name: "Lich Overlord", price: "5 Realms", rating: 5,
reviewCount: "8.7k", imageSrc: "http://img.b2bpic.net/free-photo/scenes-horror-canyon_456031-92.jpg?_wi=5", imageAlt: "Lich Overlord"
reviewCount: "8.7k", imageSrc: "http://img.b2bpic.net/free-photo/scenes-horror-canyon_456031-92.jpg", imageAlt: "Lich Overlord"
}
]}
buttons={[
@@ -203,7 +203,7 @@ export default function LandingPage() {
{ text: "Submit a Monster", href: "#" },
{ text: "Get in Touch", href: "#" }
]}
background={{ variant: "noiseDiagonalGradient" }}
background={{ variant: "glowing-orb" }}
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,38 @@
"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;
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);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
fontSize = 24,
fontFamily = 'Arial, sans-serif',
fill = 'currentColor',
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 200 50"
className={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="10"
y="35"
fontSize={fontSize}
fontFamily={fontFamily}
fill={fill}
dominantBaseline="central"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;