Merge version_1 into main #4

Merged
bender merged 2 commits from version_1 into main 2026-03-11 17:32:23 +00:00
2 changed files with 18 additions and 38 deletions

View File

@@ -201,6 +201,7 @@ export default function HomePage() {
tagAnimation="slide-up"
textboxLayout="default"
useInvertedBackground={false}
names={["Microsoft", "Google", "Amazon", "Apple", "Netflix", "Spotify", "Uber", "Airbnb"]}
logos={[
"http://img.b2bpic.net/free-photo/programming-background-with-html-text_23-2150040419.jpg", "http://img.b2bpic.net/free-photo/laptop-displaying-business-analytics_482257-115250.jpg", "http://img.b2bpic.net/free-vector/technology-logo-background_23-2148156132.jpg", "http://img.b2bpic.net/free-vector/laptop-background-with-elements-flat-design_23-2147634077.jpg", "http://img.b2bpic.net/free-vector/media-icons-set_98292-970.jpg", "http://img.b2bpic.net/free-vector/social-media-logo-collection_23-2148153516.jpg", "http://img.b2bpic.net/free-vector/taxi-app-interface-concept_23-2148496309.jpg", "http://img.b2bpic.net/free-vector/flat-labels-collection-hotel-accommodation_23-2150313253.jpg"]}
speed={40}
@@ -236,7 +237,7 @@ export default function HomePage() {
{
id: "5", title: "How long is my enrollment valid?", content: "Your enrollment is valid indefinitely. Once you enroll and pay the fee, you have lifetime access to the platform and all its features."},
{
id: "6", title: "Is my personal information secure?", content: "Absolutely. We use enterprise-grade encryption and comply with all data protection regulations. Your information is safe with us."},
id: "6", title: "Is my personal information secure?", content: "Absolutely. We use enterprise-grade encryption and comply with all data protection regulations. Your information is safe with us."}
]}
ariaLabel="FAQ section"
/>

View File

@@ -1,51 +1,30 @@
"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;
}
const SvgTextLogo = memo<SvgTextLogoProps>(function SvgTextLogo({
logoText,
adjustHeightFactor,
verticalAlign = "top",
className = "",
}) {
const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor);
export const SvgTextLogo: React.FC<SvgTextLogoProps> = ({ text, className = '' }) => {
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 * 40} 60`}
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%"
dominantBaseline="middle"
textAnchor="middle"
fontSize="32"
fontWeight="bold"
fill="currentColor"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;