diff --git a/src/app/page.tsx b/src/app/page.tsx index 0d9af7d..6cc6992 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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" diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..303bcb6 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -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(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + 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 ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;