diff --git a/src/app/page.tsx b/src/app/page.tsx index 54ac516..96d15ed 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -128,6 +128,9 @@ export default function LandingPage() { tag="Partners" tagIcon={Users} tagAnimation="slide-up" + names={[ + "Bloomberg", "Reuters", "Financial Times", "CNBC", "Bloomberg Quint", "Saxo Bank", "Interactive Brokers" + ]} logos={[ "http://img.b2bpic.net/free-vector/creative-data-logo-template_23-2149213542.jpg", "http://img.b2bpic.net/free-vector/gradient-breaking-news-logo-design_23-2151172866.jpg", "http://img.b2bpic.net/free-vector/colorful-latest-news-banners_23-2148153499.jpg", "http://img.b2bpic.net/free-photo/medium-shot-woman-working-office-travel-agency_23-2150433339.jpg", "http://img.b2bpic.net/free-vector/logo-with-circular-shapes_1071-115.jpg", "http://img.b2bpic.net/free-vector/black-business-card-with-colorful-lines_23-2147507712.jpg", "http://img.b2bpic.net/free-vector/abstract-logo-template_1071-68.jpg" ]} diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..88c5f93 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,44 @@ -"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; + style?: CSSProperties; + fontSize?: number; + fontWeight?: number | string; + fill?: string; + strokeWidth?: number; + stroke?: 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 = "", style, + fontSize = 32, + fontWeight = "bold", fill = "currentColor", strokeWidth = 0, + stroke = "none"}) => { return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;