Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-12 07:13:45 +00:00
2 changed files with 27 additions and 40 deletions

View File

@@ -188,9 +188,7 @@ export default function LandingPage() {
tagAnimation="slide-up"
textboxLayout="default"
useInvertedBackground={false}
logos={[
"http://img.b2bpic.net/free-vector/squares-shapes-business-card-template_23-2148649643.jpg", "http://img.b2bpic.net/free-vector/gradient-teamwork-logo-template_23-2149494774.jpg", "http://img.b2bpic.net/free-vector/cloud-computing-technology-concept-data-transfer_1017-29593.jpg", "http://img.b2bpic.net/free-vector/modern-flat-style-big-data-background_23-2147918486.jpg", "http://img.b2bpic.net/free-vector/abstract-logos-made-polygons_1198-62.jpg", "http://img.b2bpic.net/free-vector/flat-code-logo-selection_23-2148829799.jpg", "http://img.b2bpic.net/free-vector/data-analysis-processing-big-data-computing-information-flow-digital-science-lab_39422-346.jpg", "http://img.b2bpic.net/free-vector/open-box-logo-design_1390-178.jpg"
]}
names={["Stripe", "GitHub", "AWS", "Datadog", "Jira", "Jenkins", "Docker", "Kubernetes"]}
speed={40}
showCard={true}
buttonAnimation="slide-up"

View File

@@ -1,51 +1,40 @@
"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?: string | number;
fill?: string;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
const SvgTextLogo: React.FC<SvgTextLogoProps> = ({
text,
className = '',
fontSize = 32,
fontWeight = 'bold',
fill = 'currentColor',
}) => {
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
viewBox={`0 0 ${text.length * fontSize * 0.6} ${fontSize * 1.2}`}
className={className}
xmlns="http://www.w3.org/2000/svg"
>
<text
ref={textRef}
x="0"
y={verticalAlign === "center" ? "50%" : "0"}
className="font-bold fill-current"
style={{
fontSize: "20px",
letterSpacing: "-0.02em",
dominantBaseline: verticalAlign === "center" ? "middle" : "text-before-edge"
}}
x="50%"
y="50%"
textAnchor="middle"
dominantBaseline="central"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
fontFamily="inherit"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;