From a95d20a21fd060acb6915f86900d3b6544b25c1a Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 10 Mar 2026 20:51:39 +0000 Subject: [PATCH 1/2] Update src/app/page.tsx --- src/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 20b432c..8ed2959 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -49,7 +49,7 @@ export default function LandingPage() { ]} slides={[ { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlmqOsNGOoll8KiKNsPHmJmSny/a-vibrant-nature-photography-app-interfa-1773175801668-d64174d7.png", imageAlt: "PlantSnap species identification interface" }, - { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlmqOsNGOoll8KiKNsPHmJmSny/an-exciting-outdoor-scene-showing-kids-a-1773175801736-2d61982a.png?_wi=1", imageAlt: "Kids exploring nature with PlantSnap" }, + { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlmqOsNGOoll8KiKNsPHmJmSny/an-exciting-outdoor-scene-showing-kids-a-1773175801736-2d61982a.png", imageAlt: "Kids exploring nature with PlantSnap" }, { imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlmqOsNGOoll8KiKNsPHmJmSny/a-digital-leaderboard-display-showing-pl-1773175802145-3e654607.png", imageAlt: "PlantSnap gamification leaderboard" } ]} autoplayDelay={5000} @@ -189,8 +189,8 @@ export default function LandingPage() { description="Download PlantSnap" subdescription="Available on iOS & Android" icon={MapPin} - imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlmqOsNGOoll8KiKNsPHmJmSny/an-exciting-outdoor-scene-showing-kids-a-1773175801736-2d61982a.png?_wi=2" imageAlt="Child discovering nature with PlantSnap" + imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AlmqOsNGOoll8KiKNsPHmJmSny/an-exciting-outdoor-scene-showing-kids-a-1773175801736-2d61982a.png" useInvertedBackground={false} /> -- 2.49.1 From 04bf574f0e8a1e573f3f39dc35ba5208823ef7b2 Mon Sep 17 00:00:00 2001 From: bender Date: Tue, 10 Mar 2026 20:51:39 +0000 Subject: [PATCH 2/2] Update src/components/shared/SvgTextLogo/SvgTextLogo.tsx --- .../shared/SvgTextLogo/SvgTextLogo.tsx | 77 ++++++++++--------- 1 file changed, 42 insertions(+), 35 deletions(-) diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..775bfe2 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,58 @@ -"use client"; - -import { memo } from "react"; -import useSvgTextLogo from "./useSvgTextLogo"; -import { cls } from "@/lib/utils"; +import React, { CSSProperties } from 'react'; interface SvgTextLogoProps { - logoText: string; - adjustHeightFactor?: number; - verticalAlign?: "top" | "center"; + text: string; className?: string; + textClassName?: string; + fontSize?: number; + fontWeight?: number | string; + fontFamily?: string; + fill?: string; + letterSpacing?: number; + width?: number | string; + height?: number | 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 = '', + textClassName = '', + fontSize = 48, + fontWeight = 700, + fontFamily = 'system-ui, -apple-system, sans-serif', + fill = 'currentColor', + letterSpacing = 0, + width = '100%', + height = 'auto', +}) => { + const textStyle: CSSProperties = { + fontFamily, + fontSize, + fontWeight, + fill, + letterSpacing, + }; return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file -- 2.49.1