Merge version_1 into main #1
@@ -45,7 +45,7 @@ export default function LandingPage() {
|
||||
<HeroCentered
|
||||
title="Intelligent Conversation Powered by Advanced AI"
|
||||
description="Hurt AI brings next-generation conversational abilities to your workflow. Experience seamless, context-aware interactions designed to understand and assist with precision."
|
||||
background={{ variant: "circleGradient" }}
|
||||
background={{ variant: "plain" }}
|
||||
avatars={[
|
||||
{ src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArBVHOP35mglXDOSkUgvPSrTps/professional-headshot-of-a-successful-fe-1773342386238-18594fc3.png", alt: "User 1" },
|
||||
{ src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArBVHOP35mglXDOSkUgvPSrTps/professional-headshot-of-a-male-software-1773342386688-03f49deb.png", alt: "User 2" },
|
||||
@@ -123,6 +123,9 @@ export default function LandingPage() {
|
||||
tag="Partners"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
names={[
|
||||
"Microsoft", "Google", "OpenAI", "Amazon", "IBM", "Apple", "Netflix"
|
||||
]}
|
||||
logos={[
|
||||
"https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArBVHOP35mglXDOSkUgvPSrTps/microsoft-company-logo-clean-white-backg-1773342385323-6dd26a4f.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArBVHOP35mglXDOSkUgvPSrTps/google-company-logo-colorful-multi-color-1773342385700-cc3c8511.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArBVHOP35mglXDOSkUgvPSrTps/openai-company-logo-stylized-geometric-s-1773342385492-c7db8625.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArBVHOP35mglXDOSkUgvPSrTps/amazon-company-logo-with-the-distinctive-1773342385686-fa0047bc.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArBVHOP35mglXDOSkUgvPSrTps/ibm-company-logo-with-distinctive-horizo-1773342385753-dcde4d5a.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArBVHOP35mglXDOSkUgvPSrTps/apple-company-logo-iconic-bitten-apple-s-1773342385691-761720ba.png", "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArBVHOP35mglXDOSkUgvPSrTps/netflix-company-logo-with-distinctive-re-1773342385831-768795cc.png"
|
||||
]}
|
||||
|
||||
@@ -1,51 +1,34 @@
|
||||
"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;
|
||||
}
|
||||
|
||||
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 = 24,
|
||||
}) => {
|
||||
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.5}`}
|
||||
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"
|
||||
}}
|
||||
y={fontSize}
|
||||
fontSize={fontSize}
|
||||
fontWeight="bold"
|
||||
fill="currentColor"
|
||||
dominantBaseline="middle"
|
||||
>
|
||||
{logoText}
|
||||
{text}
|
||||
</text>
|
||||
</svg>
|
||||
);
|
||||
});
|
||||
|
||||
SvgTextLogo.displayName = "SvgTextLogo";
|
||||
};
|
||||
|
||||
export default SvgTextLogo;
|
||||
|
||||
Reference in New Issue
Block a user