Merge version_1 into main #2

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

View File

@@ -19,7 +19,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="small"
sizing="mediumLargeSizeLargeTitles"
background="grid"
background="circleGradient"
cardStyle="gradient-radial"
primaryButtonStyle="radial-glow"
secondaryButtonStyle="solid"
@@ -47,9 +47,9 @@ export default function LandingPage() {
tag="African Tech Startup"
tagIcon={Sparkles}
tagAnimation="slide-up"
background={{ variant: "grid" }}
background={{ variant: "animated-grid" }}
mediaItems={[
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnTnZUEIWBNT46HSAVKzgQPTBr/a-sleek-modern-ai-technology-interface-w-1773227731701-df8515c5.png?_wi=1", imageAlt: "AI Innovation Interface" },
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnTnZUEIWBNT46HSAVKzgQPTBr/a-sleek-modern-ai-technology-interface-w-1773227731701-df8515c5.png", imageAlt: "AI Innovation Interface" },
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnTnZUEIWBNT46HSAVKzgQPTBr/a-portrait-of-a-visionary-african-woman--1773227731781-eaaa1097.png", imageAlt: "African Tech Leadership" },
{ imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnTnZUEIWBNT46HSAVKzgQPTBr/ai-integration-dashboard-showing-machine-1773227732732-b77677a1.png", imageAlt: "AI Integration Dashboard" }
]}
@@ -193,7 +193,7 @@ export default function LandingPage() {
]}
textarea={{ name: "message", placeholder: "Décrivez votre projet...", rows: 5, required: true }}
useInvertedBackground={false}
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnTnZUEIWBNT46HSAVKzgQPTBr/a-sleek-modern-ai-technology-interface-w-1773227731701-df8515c5.png?_wi=2"
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnTnZUEIWBNT46HSAVKzgQPTBr/a-sleek-modern-ai-technology-interface-w-1773227731701-df8515c5.png"
imageAlt="Contact Codorah"
mediaAnimation="slide-up"
mediaPosition="right"
@@ -245,4 +245,4 @@ export default function LandingPage() {
</div>
</ThemeProvider>
);
}
}

View File

@@ -1,51 +1,47 @@
"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;
fontSize?: number;
fontWeight?: number | string;
letterSpacing?: number;
className?: 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,
fontSize = 48,
fontWeight = 700,
letterSpacing = 0,
className = '',
}) => {
const padding = 20;
const lineHeight = fontSize * 1.2;
const textWidth = text.length * (fontSize * 0.6) + letterSpacing * text.length;
const width = textWidth + padding * 2;
const height = lineHeight + padding * 2;
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 ${width} ${height}`}
width={width}
height={height}
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={padding}
y={padding + fontSize}
fontSize={fontSize}
fontWeight={fontWeight}
letterSpacing={letterSpacing}
fill="currentColor"
dominantBaseline="hanging"
>
{logoText}
{text}
</text>
</svg>
);
});
SvgTextLogo.displayName = "SvgTextLogo";
};
export default SvgTextLogo;