Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 01:09:21 +00:00
2 changed files with 34 additions and 43 deletions

View File

@@ -21,7 +21,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="compact"
sizing="largeSizeMediumTitles"
background="grid"
background="circleGradient"
cardStyle="gradient-radial"
primaryButtonStyle="flat"
secondaryButtonStyle="glass"
@@ -146,16 +146,13 @@ export default function LandingPage() {
tagIcon={Smartphone}
products={[
{
id: "mobile", brand: "Preview", name: "Mobile App Preview", price: "iPhone & Android", rating: 5,
reviewCount: "Responsive", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap2STzcImh0GNbQphH8FKBKmmD/a-realistic-iphone-mockup-showing-the-ge-1773277643575-4e6cb368.png", imageAlt: "Mobile app preview on iPhone"
id: "mobile", brand: "Preview", name: "Mobile App Preview", price: "iPhone & Android", rating: 5, reviewCount: "Responsive", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap2STzcImh0GNbQphH8FKBKmmD/a-realistic-iphone-mockup-showing-the-ge-1773277643575-4e6cb368.png", imageAlt: "Mobile app preview on iPhone"
},
{
id: "tablet", brand: "Preview", name: "Tablet App Preview", price: "iPad & Tablets", rating: 5,
reviewCount: "Optimized", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap2STzcImh0GNbQphH8FKBKmmD/a-realistic-ipad-tablet-mockup-displayin-1773277643935-01863d65.png", imageAlt: "Tablet app preview on iPad"
id: "tablet", brand: "Preview", name: "Tablet App Preview", price: "iPad & Tablets", rating: 5, reviewCount: "Optimized", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap2STzcImh0GNbQphH8FKBKmmD/a-realistic-ipad-tablet-mockup-displayin-1773277643935-01863d65.png", imageAlt: "Tablet app preview on iPad"
},
{
id: "desktop", brand: "Preview", name: "Desktop Web Preview", price: "Full Width", rating: 5,
reviewCount: "Enhanced", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap2STzcImh0GNbQphH8FKBKmmD/a-desktop-web-browser-mockup-showing-the-1773277645516-55cf92e0.png", imageAlt: "Desktop web app preview"
id: "desktop", brand: "Preview", name: "Desktop Web Preview", price: "Full Width", rating: 5, reviewCount: "Enhanced", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3Ap2STzcImh0GNbQphH8FKBKmmD/a-desktop-web-browser-mockup-showing-the-1773277645516-55cf92e0.png", imageAlt: "Desktop web app preview"
}
]}
gridVariant="three-columns-all-equal-width"
@@ -261,7 +258,7 @@ export default function LandingPage() {
{ text: "Start Building Free", href: "#hero" },
{ text: "Schedule Demo", href: "#" }
]}
background={{ variant: "grid" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,45 @@
"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;
size?: 'sm' | 'md' | 'lg';
}
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 = '', size = 'md' }) => {
const sizeMap = {
sm: { fontSize: '24px', viewBox: '0 0 200 60' },
md: { fontSize: '32px', viewBox: '0 0 300 80' },
lg: { fontSize: '48px', viewBox: '0 0 400 100' }
};
const config = sizeMap[size];
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={config.viewBox}
className={`${className}`}
style={{ fontSize: config.fontSize }}
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<linearGradient id="textGradient" x1="0%" y1="0%" x2="100%" y2="0%">
<stop offset="0%" stopColor="currentColor" />
<stop offset="100%" stopColor="currentColor" />
</linearGradient>
</defs>
<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"
fill="url(#textGradient)"
style={{ fontWeight: 'bold', letterSpacing: '2px' }}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;