Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-13 10:30:41 +00:00
2 changed files with 37 additions and 39 deletions

View File

@@ -58,7 +58,7 @@ export default function LandingPage() {
{ src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3At2fAPVMLWaILfRQXQMwgsXV50/a-professional-headshot-photo-of-a-femal-1773397732278-f0a599fd.png", alt: "User avatar 3" }
]}
avatarText="Trusted by 2,000+ development teams"
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3At2fAPVMLWaILfRQXQMwgsXV50/a-modern-saas-dashboard-interface-showca-1773397732965-f8c8844a.png?_wi=1"
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3At2fAPVMLWaILfRQXQMwgsXV50/a-modern-saas-dashboard-interface-showca-1773397732965-f8c8844a.png"
imageAlt="DevFlow SaaS Dashboard"
mediaAnimation="blur-reveal"
marqueeItems={[
@@ -96,7 +96,7 @@ export default function LandingPage() {
title: "Developer First", description: "Created by developers for developers. Comprehensive API, CLI, and SDK support.", icon: Code
}
]}
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3At2fAPVMLWaILfRQXQMwgsXV50/an-illustration-depicting-software-autom-1773397732426-19f79ed8.png?_wi=1"
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3At2fAPVMLWaILfRQXQMwgsXV50/an-illustration-depicting-software-autom-1773397732426-19f79ed8.png"
imageAlt="DevFlow Features Illustration"
mediaAnimation="opacity"
imagePosition="right"
@@ -119,7 +119,7 @@ export default function LandingPage() {
id: "1", title: "Automated Workflows", descriptions: [
"Build custom automation pipelines without coding", "Trigger actions across your entire development stack", "Save hours of manual work every week"
],
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3At2fAPVMLWaILfRQXQMwgsXV50/an-illustration-depicting-software-autom-1773397732426-19f79ed8.png?_wi=2", imageAlt: "Automation Features"
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3At2fAPVMLWaILfRQXQMwgsXV50/an-illustration-depicting-software-autom-1773397732426-19f79ed8.png", imageAlt: "Automation Features"
},
{
id: "2", title: "Team Collaboration", descriptions: [
@@ -137,7 +137,7 @@ export default function LandingPage() {
id: "4", title: "Advanced Analytics", descriptions: [
"Real-time insights into your development metrics", "Track performance, velocity, and team productivity", "Data-driven decision making with custom reports"
],
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3At2fAPVMLWaILfRQXQMwgsXV50/a-modern-saas-dashboard-interface-showca-1773397732965-f8c8844a.png?_wi=2", imageAlt: "Analytics Dashboard"
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3At2fAPVMLWaILfRQXQMwgsXV50/a-modern-saas-dashboard-interface-showca-1773397732965-f8c8844a.png", imageAlt: "Analytics Dashboard"
}
]}
gridVariant="four-items-2x2-equal-grid"

View File

@@ -1,51 +1,49 @@
"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;
letterSpacing?: number;
fill?: string;
}
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,
letterSpacing = 0,
fill = 'currentColor',
}) => {
const textLength = text.length;
const charWidth = fontSize * 0.6;
const width = textLength * charWidth + letterSpacing * (textLength - 1) + 40;
const height = fontSize + 40;
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
>
<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={width / 2}
y={height / 2}
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
textAnchor="middle"
dominantBaseline="middle"
letterSpacing={letterSpacing}
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;