Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-12 17:42:56 +00:00
2 changed files with 32 additions and 42 deletions

View File

@@ -21,7 +21,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="mediumLarge"
sizing="mediumSizeLargeTitles"
background="noise"
background="circleGradient"
cardStyle="soft-shadow"
primaryButtonStyle="flat"
secondaryButtonStyle="radial-glow"
@@ -49,7 +49,7 @@ export default function LandingPage() {
tag="Personalization Meets Protection"
tagIcon={Zap}
tagAnimation="slide-up"
background={{ variant: "noise" }}
background={{ variant: "animated-grid" }}
imageSrc="http://img.b2bpic.net/free-photo/woman-sitting-prepare-clothing-new-journey_53876-47006.jpg"
imageAlt="Custom phone case showcase collection"
buttons={[
@@ -105,19 +105,19 @@ export default function LandingPage() {
features={[
{
id: 1,
title: "Choose Your Base", description: "Select from premium materials including silicone, TPU, polycarbonate, and leather for maximum protection and style.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-working-laptop_53876-40325.jpg?_wi=1"
title: "Choose Your Base", description: "Select from premium materials including silicone, TPU, polycarbonate, and leather for maximum protection and style.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-working-laptop_53876-40325.jpg"
},
{
id: 2,
title: "Design & Personalize", description: "Upload your photos, artwork, or choose from thousands of professional designs. Add text, colors, and effects to make it uniquely yours.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-working-laptop_53876-40325.jpg?_wi=2"
title: "Design & Personalize", description: "Upload your photos, artwork, or choose from thousands of professional designs. Add text, colors, and effects to make it uniquely yours.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-working-laptop_53876-40325.jpg"
},
{
id: 3,
title: "Preview & Perfect", description: "See your design in 360° before ordering. Make adjustments until it's exactly what you envisioned.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-working-laptop_53876-40325.jpg?_wi=3"
title: "Preview & Perfect", description: "See your design in 360° before ordering. Make adjustments until it's exactly what you envisioned.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-working-laptop_53876-40325.jpg"
},
{
id: 4,
title: "Order & Receive", description: "Fast production and shipping. Most orders arrive within 3-5 business days with full protection guarantee.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-working-laptop_53876-40325.jpg?_wi=4"
title: "Order & Receive", description: "Fast production and shipping. Most orders arrive within 3-5 business days with full protection guarantee.", imageSrc: "http://img.b2bpic.net/free-photo/businessman-working-laptop_53876-40325.jpg"
}
]}
buttons={[

View File

@@ -1,51 +1,41 @@
"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;
fontWeight?: number | 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,
fontWeight = 'bold',
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`}
width="auto"
height={fontSize}
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize * 1.2}`}
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"
}}
y={fontSize * 0.9}
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
dominantBaseline="middle"
fontFamily="system-ui, -apple-system, sans-serif"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;