Merge version_1 into main #1

Merged
bender merged 2 commits from version_1 into main 2026-03-13 10:31:18 +00:00
2 changed files with 37 additions and 38 deletions

View File

@@ -99,8 +99,7 @@ export default function LandingPage() {
{ label: "Day 1", detail: "You meet your perfect AI companion" },
{ label: "Week 1", detail: "Your Twinly learns your preferences" },
{ label: "Month 1", detail: "A meaningful relationship develops" }
],
completedLabel: "Milestone Reached"
], completedLabel: "Milestone Reached"
},
{
title: "24/7 Availability", description: "Support whenever you need it. Your AI companion is always ready to listen, support, and help you through any moment.", bentoComponent: "icon-info-cards", items: [
@@ -149,7 +148,7 @@ export default function LandingPage() {
{ src: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3At2li1HUBD4f3S3iixZ5WgYDwc/a-peaceful-contented-person-with-serene--1773397774749-9adb9dfd.png", alt: "Casey P." }
]}
ratingAnimation="slide-up"
avatarsAnimation="fade-in"
avatarsAnimation="slide-up"
useInvertedBackground={false}
/>
</div>

View File

@@ -1,51 +1,51 @@
"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;
letterSpacing?: number;
color?: string;
dominantBaseline?: 'auto' | 'baseline' | 'middle' | 'hanging' | 'mathematical';
}
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 = 700,
letterSpacing = 0,
color = '#000000',
dominantBaseline = 'middle',
}) => {
const textWidth = text.length * fontSize * 0.6;
const svgWidth = textWidth + 20;
const svgHeight = fontSize + 10;
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width={svgWidth}
height={svgHeight}
viewBox={`0 0 ${svgWidth} ${svgHeight}`}
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={svgWidth / 2}
y={svgHeight / 2}
textAnchor="middle"
dominantBaseline={dominantBaseline}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill={color}
fontFamily="system-ui, -apple-system, sans-serif"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;