diff --git a/src/app/page.tsx b/src/app/page.tsx index 5de239c..6b8ce8d 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -20,7 +20,7 @@ export default function LandingPage() { borderRadius="pill" contentWidth="mediumSmall" sizing="largeSmall" - background="noiseDiagonalGradient" + background="circleGradient" cardStyle="gradient-bordered" primaryButtonStyle="shadow" secondaryButtonStyle="radial-glow" @@ -46,7 +46,7 @@ export default function LandingPage() { tag="Inclusive Innovation" tagIcon={Accessibility} tagAnimation="slide-up" - background={{ variant: "noiseDiagonalGradient" }} + background={{ variant: "canvas-reveal" }} imageSrc="http://img.b2bpic.net/free-photo/handicapped-young-woman-office-looking-laptop_23-2148497274.jpg" imageAlt="AccessWeb platform showcasing accessible interface design" buttons={[ @@ -77,7 +77,7 @@ export default function LandingPage() { }, { id: 3, - title: "Voice Navigation", description: "Navigate using voice commands. Users can open menus, access settings, adjust text size, or perform major actions using simple voice directives.", imageSrc: "http://img.b2bpic.net/free-photo/surprised-young-woman-scrolling-newsfeed-via-social-media-account-having-shocked-look_343059-1944.jpg?_wi=1", imageAlt: "Voice command interface with accessibility controls" + title: "Voice Navigation", description: "Navigate using voice commands. Users can open menus, access settings, adjust text size, or perform major actions using simple voice directives.", imageSrc: "http://img.b2bpic.net/free-photo/surprised-young-woman-scrolling-newsfeed-via-social-media-account-having-shocked-look_343059-1944.jpg", imageAlt: "Voice command interface with accessibility controls" }, { id: 4, @@ -128,7 +128,7 @@ export default function LandingPage() { }, { id: "2", brand: "Feature", name: "Assistive Technology Support", price: "Multiple Methods", rating: 5, - reviewCount: "Voice + Keyboard", imageSrc: "http://img.b2bpic.net/free-photo/surprised-young-woman-scrolling-newsfeed-via-social-media-account-having-shocked-look_343059-1944.jpg?_wi=2", imageAlt: "Multiple assistive technology options" + reviewCount: "Voice + Keyboard", imageSrc: "http://img.b2bpic.net/free-photo/surprised-young-woman-scrolling-newsfeed-via-social-media-account-having-shocked-look_343059-1944.jpg", imageAlt: "Multiple assistive technology options" }, { id: "3", brand: "Feature", name: "Universal Usability", price: "For Everyone", rating: 5, diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..a5ad183 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; + fontSize?: number; + fontWeight?: number | string; + fill?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +export const SvgTextLogo: React.FC = ({ + text, + className = '', + fontSize = 24, + fontWeight = 'bold', + fill = 'currentColor', +}) => { + const textLength = text.length; + const charWidth = fontSize * 0.6; + const width = charWidth * textLength + 20; + const height = fontSize + 20; return ( - {logoText} + {text} ); -}); +}; -SvgTextLogo.displayName = "SvgTextLogo"; - -export default SvgTextLogo; +export default SvgTextLogo; \ No newline at end of file