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