Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 15:15:31 +00:00
2 changed files with 36 additions and 45 deletions

View File

@@ -16,7 +16,7 @@ export default function LandingPage() {
borderRadius="rounded"
contentWidth="compact"
sizing="largeSmallSizeMediumTitles"
background="aurora"
background="circleGradient"
cardStyle="gradient-mesh"
primaryButtonStyle="flat"
secondaryButtonStyle="glass"
@@ -46,14 +46,14 @@ export default function LandingPage() {
{ text: "Ver FAQ", href: "#faq" }
]}
buttonAnimation="slide-up"
background={{ variant: "aurora" }}
background={{ variant: "plain" }}
carouselItems={[
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg?_wi=1", imageAlt: "mobile app customer support illustration" },
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg?_wi=2", imageAlt: "mobile app customer support illustration" },
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg?_wi=3", imageAlt: "mobile app customer support illustration" },
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg?_wi=4", imageAlt: "mobile app customer support illustration" },
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg?_wi=5", imageAlt: "mobile app customer support illustration" },
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg?_wi=6", imageAlt: "mobile app customer support illustration" }
{ id: "1", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg", imageAlt: "mobile app customer support illustration" },
{ id: "2", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg", imageAlt: "mobile app customer support illustration" },
{ id: "3", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg", imageAlt: "mobile app customer support illustration" },
{ id: "4", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg", imageAlt: "mobile app customer support illustration" },
{ id: "5", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg", imageAlt: "mobile app customer support illustration" },
{ id: "6", imageSrc: "http://img.b2bpic.net/free-photo/african-american-fitness-model-caucasian-man-talking-while-training-outdoors_1157-49034.jpg", imageAlt: "mobile app customer support illustration" }
]}
autoPlay={true}
autoPlayInterval={4000}

View File

@@ -1,51 +1,42 @@
"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?: number | string;
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 = 24,
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 * 20} 40`}
width="100%"
height="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"
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
fontFamily="system-ui, -apple-system, sans-serif"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;