Merge version_1 into main #3

Merged
bender merged 2 commits from version_1 into main 2026-03-11 09:49:25 +00:00
2 changed files with 36 additions and 55 deletions

View File

@@ -56,7 +56,7 @@ export default function HomePage() {
borderRadius="pill"
contentWidth="mediumLarge"
sizing="largeSmallSizeLargeTitles"
background="noiseDiagonalGradient"
background="circleGradient"
cardStyle="gradient-radial"
primaryButtonStyle="primary-glow"
secondaryButtonStyle="glass"
@@ -81,7 +81,7 @@ export default function HomePage() {
<HeroSplitKpi
title="The Collector's LEGO Vault"
description="Rare sets. Verified condition. Built for serious collectors."
background={{ variant: "noiseDiagonalGradient" }}
background={{ variant: "glowing-orb" }}
kpis={[
{ value: "100%", label: "Authentic LEGO Sets" },
{ value: "Expert", label: "Condition Grading" },
@@ -144,17 +144,13 @@ export default function HomePage() {
animationType="scale-rotate"
features={[
{
id: "technic", title: "LEGO Technic", author: "Engineering & Precision", description: "Advanced mechanical sets for serious builders. Complex designs with motorized components and detailed engineering.", tags: ["Engineering", "Complex Builds", "Technical"],
imageSrc: "http://img.b2bpic.net/free-photo/teenage-boy-repairing-computer-motherboard-wooden-desk_23-2147883755.jpg", imageAlt: "LEGO Technic complex motorized building toys"},
id: "technic", title: "LEGO Technic", author: "Engineering & Precision", description: "Advanced mechanical sets for serious builders. Complex designs with motorized components and detailed engineering.", tags: ["Engineering", "Complex Builds", "Technical"], imageSrc: "http://img.b2bpic.net/free-photo/teenage-boy-repairing-computer-motherboard-wooden-desk_23-2147883755.jpg", imageAlt: "LEGO Technic complex motorized building toys"},
{
id: "marvel", title: "LEGO Marvel", author: "Superhero Universes", description: "Licensed superhero sets featuring iconic characters and vehicles from the Marvel Cinematic Universe.", tags: ["Superheroes", "Licensed", "Display"],
imageSrc: "http://img.b2bpic.net/free-photo/superhero-with-lot-flags-looking-down_1368-9012.jpg", imageAlt: "LEGO Marvel superheroes minifigures collection"},
id: "marvel", title: "LEGO Marvel", author: "Superhero Universes", description: "Licensed superhero sets featuring iconic characters and vehicles from the Marvel Cinematic Universe.", tags: ["Superheroes", "Licensed", "Display"], imageSrc: "http://img.b2bpic.net/free-photo/superhero-with-lot-flags-looking-down_1368-9012.jpg", imageAlt: "LEGO Marvel superheroes minifigures collection"},
{
id: "starwars", title: "LEGO Star Wars", author: "Galaxy Far Away", description: "Iconic starships, characters, and locations from the Star Wars universe. Highly collectible with limited releases.", tags: ["Star Wars", "Collectible", "Rare"],
imageSrc: "http://img.b2bpic.net/free-photo/view-spaceship-from-future_23-2150675485.jpg", imageAlt: "LEGO Star Wars starship building set collectible"},
id: "starwars", title: "LEGO Star Wars", author: "Galaxy Far Away", description: "Iconic starships, characters, and locations from the Star Wars universe. Highly collectible with limited releases.", tags: ["Star Wars", "Collectible", "Rare"], imageSrc: "http://img.b2bpic.net/free-photo/view-spaceship-from-future_23-2150675485.jpg", imageAlt: "LEGO Star Wars starship building set collectible"},
{
id: "ninjago", title: "LEGO Ninjago", author: "Asian Adventure", description: "Ninja-themed sets with complex builds and collectible minifigures from the Ninjago storyline.", tags: ["Ninja", "Story-driven", "Dragons"],
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-composition-toys_23-2148144840.jpg", imageAlt: "LEGO Ninjago ninja warrior minifigures collection"},
id: "ninjago", title: "LEGO Ninjago", author: "Asian Adventure", description: "Ninja-themed sets with complex builds and collectible minifigures from the Ninjago storyline.", tags: ["Ninja", "Story-driven", "Dragons"], imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-composition-toys_23-2148144840.jpg", imageAlt: "LEGO Ninjago ninja warrior minifigures collection"},
]}
/>
</div>

View File

@@ -1,51 +1,36 @@
"use client";
import React, { SVGProps } from 'react';
import { memo } from "react";
import useSvgTextLogo from "./useSvgTextLogo";
import { cls } from "@/lib/utils";
interface SvgTextLogoProps {
logoText: string;
adjustHeightFactor?: number;
verticalAlign?: "top" | "center";
className?: string;
interface SvgTextLogoProps extends SVGProps<SVGSVGElement> {
text?: string;
fontSize?: number;
dominantBaseline?: 'auto' | 'baseline' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'central' | 'middle';
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
>
<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"
}}
const SvgTextLogo = React.forwardRef<SVGSVGElement, SvgTextLogoProps>(
({ text = 'Logo', fontSize = 32, dominantBaseline = 'auto', ...props }, ref) => {
return (
<svg
ref={ref}
viewBox="0 0 200 100"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{logoText}
</text>
</svg>
);
});
<text
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline={dominantBaseline}
fontSize={fontSize}
fontWeight="bold"
fill="currentColor"
>
{text}
</text>
</svg>
);
}
);
SvgTextLogo.displayName = "SvgTextLogo";
SvgTextLogo.displayName = 'SvgTextLogo';
export default SvgTextLogo;
export default SvgTextLogo;