Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-11 06:36:39 +00:00
2 changed files with 19 additions and 39 deletions

View File

@@ -43,7 +43,7 @@ export default function LandingPage() {
<HeroCentered
title="Experience Reading with ReadX Buddy"
description="Your intelligent AI chatbot companion that transforms how you read, learn, and comprehend. Get personalized responses tailored to you with ChatGPT-powered insights for faster learning."
background={{ variant: "circleGradient" }}
background={{ variant: "plain" }}
avatars={[
{ src: "http://img.b2bpic.net/free-photo/portrait-handsome-young-man-with-arms-crossed-holding-white-headphone-around-his-neck_23-2148096439.jpg", alt: "User avatar 1" },
{ src: "http://img.b2bpic.net/free-photo/handsome-afroamerican-man-smiling_23-2148508920.jpg", alt: "User avatar 2" },
@@ -118,6 +118,9 @@ export default function LandingPage() {
tag="Partners"
textboxLayout="default"
useInvertedBackground={false}
names={[
"Acme Corp", "TechFlow", "Innovate Inc", "CloudSync", "DataWise", "FutureLearn", "Knowledge Hub"
]}
logos={[
"http://img.b2bpic.net/free-vector/building-silhouettes-pack_23-2147501927.jpg", "http://img.b2bpic.net/free-vector/set-flat-design-o-logo-templates_23-2148884979.jpg", "http://img.b2bpic.net/free-vector/set-online-learning-elements_23-2147592155.jpg", "http://img.b2bpic.net/free-vector/online-education-flat-color-elements-set_98292-3221.jpg", "http://img.b2bpic.net/free-photo/silhouette-executive-holding-clipboard_1098-2887.jpg", "http://img.b2bpic.net/free-vector/gradient-cc-logo-template_23-2149246845.jpg", "http://img.b2bpic.net/free-vector/science-research-banner_1284-13067.jpg"
]}
@@ -204,7 +207,7 @@ export default function LandingPage() {
{ text: "Schedule a Demo", href: "https://example.com/demo" }
]}
buttonAnimation="slide-up"
background={{ variant: "circleGradient" }}
background={{ variant: "plain" }}
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,28 @@
"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 * 60} 100`}
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="middle"
className="text-2xl font-bold fill-current"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;