diff --git a/src/app/page.tsx b/src/app/page.tsx index 9bcca24..30bd758 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -46,7 +46,7 @@ export default function LandingPage() { tag="All About 2 Wheels" tagIcon={Bike} tagAnimation="slide-up" - background={{ variant: "circleGradient" }} + background={{ variant: "glowing-orb" }} useInvertedBackground={false} imageSrc="http://img.b2bpic.net/free-photo/man-cafe-racer-style-motorbike_23-2148189648.jpg" imageAlt="Garasi Roda Dua Premium Motorcycle Showroom" @@ -137,10 +137,10 @@ export default function LandingPage() { diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..ef30fd5 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,55 @@ -"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; + fontSize?: number; + fontFamily?: string; + fontWeight?: number | string; + fill?: string; className?: string; + containerClassName?: string; + ariaLabel?: 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, + fontSize = 24, + fontFamily = 'inherit', + fontWeight = 700, + fill = 'currentColor', + className = '', + containerClassName = '', + ariaLabel, +}) => { + const style: CSSProperties = { + fontFamily, + fontSize, + fontWeight, + fill, + }; return ( - - + - {logoText} - - + + {text} + + + ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;