Merge version_1 into main #2

Merged
bender merged 2 commits from version_1 into main 2026-03-11 12:27:37 +00:00
2 changed files with 38 additions and 45 deletions

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="soft"
contentWidth="smallMedium"
sizing="medium"
background="noiseDiagonalGradient"
background="circleGradient"
cardStyle="glass-depth"
primaryButtonStyle="flat"
secondaryButtonStyle="radial-glow"
@@ -48,7 +48,7 @@ export default function LandingPage() {
{ text: "Explore Championship", href: "#about" },
{ text: "Join the Community", href: "#team" }
]}
background={{ variant: "noiseDiagonalGradient" }}
background={{ variant: "sparkles-gradient" }}
imageSrc="https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AncafLgyhZtujjAVQAqvRxtj5b/a-sleek-formula-1-racing-car-shot-in-hig-1773231967207-ebb64750.png"
imageAlt="Formula 1 racing car in motion"
mediaAnimation="slide-up"
@@ -154,11 +154,11 @@ export default function LandingPage() {
testimonials={[
{
id: "1", name: "Marcus Sterling", handle: "@sterlingrace", testimonial: "Working with this team has been the highlight of my racing career. The precision, dedication, and championship mindset are unmatched in the sport.", rating: 5,
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AncafLgyhZtujjAVQAqvRxtj5b/professional-headshot-of-a-satisfied-rac-1773231967150-b51e65f0.png?_wi=1", imageAlt: "Professional headshot of a satisfied race driver"
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AncafLgyhZtujjAVQAqvRxtj5b/professional-headshot-of-a-satisfied-rac-1773231967150-b51e65f0.png", imageAlt: "Professional headshot of a satisfied race driver"
},
{
id: "2", name: "Giovanni Rossi", handle: "@rossi_team_principal", testimonial: "The engineering excellence and strategic planning demonstrated by this organization is truly exceptional. Championship-caliber in every aspect.", rating: 5,
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AncafLgyhZtujjAVQAqvRxtj5b/professional-headshot-of-an-experienced--1773231966683-67fa1548.png?_wi=1", imageAlt: "Professional headshot of an experienced racing team principal"
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AncafLgyhZtujjAVQAqvRxtj5b/professional-headshot-of-an-experienced--1773231966683-67fa1548.png", imageAlt: "Professional headshot of an experienced racing team principal"
},
{
id: "3", name: "Elena Petrov", handle: "@elena_pit_crew", testimonial: "Our pit crew coordination and technical expertise are second to none. Every race proves our commitment to excellence and precision.", rating: 5,
@@ -170,11 +170,11 @@ export default function LandingPage() {
},
{
id: "5", name: "Lucas Silva", handle: "@lucas_commentator", testimonial: "Watching this team compete at the highest level is a masterclass in racing. Pure championship excellence on every circuit.", rating: 5,
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AncafLgyhZtujjAVQAqvRxtj5b/professional-headshot-of-a-satisfied-rac-1773231967150-b51e65f0.png?_wi=2", imageAlt: "Professional headshot of a race commentator"
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AncafLgyhZtujjAVQAqvRxtj5b/professional-headshot-of-a-satisfied-rac-1773231967150-b51e65f0.png", imageAlt: "Professional headshot of a race commentator"
},
{
id: "6", name: "Sophie Dubois", handle: "@dubois_analyst", testimonial: "The strategic depth and technical sophistication of their race operations sets new standards for the entire sport.", rating: 5,
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AncafLgyhZtujjAVQAqvRxtj5b/professional-headshot-of-an-experienced--1773231966683-67fa1548.png?_wi=2", imageAlt: "Professional headshot of a racing analyst"
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AncafLgyhZtujjAVQAqvRxtj5b/professional-headshot-of-an-experienced--1773231966683-67fa1548.png", imageAlt: "Professional headshot of a racing analyst"
}
]}
showRating={true}
@@ -188,11 +188,14 @@ export default function LandingPage() {
<SocialProofOne
title="Trusted by Premier Racing Teams"
description="Partnering with the world's leading motorsport organizations and championship teams"
textboxLayout="default"
useInvertedBackground={false}
names={[
"Ferrari", "Red Bull Racing", "Mercedes-AMG", "McLaren", "Aston Martin", "Alpine", "Haas", "Williams"
]}
logos={[
"http://img.b2bpic.net/free-vector/vintage-monochrome-car-racing-labels-set-with-fast-vehicles-automobile-parts-skull-helmet-finish-flags-isolated_1284-39132.jpg", "http://img.b2bpic.net/free-photo/futuristic-brightly-colored-soda-can_23-2150995238.jpg", "http://img.b2bpic.net/free-photo/abstract-glimmers-light-flares_23-2151871973.jpg", "http://img.b2bpic.net/free-vector/racing-competition-youtube-thumbnail_23-2150214612.jpg", "http://img.b2bpic.net/free-vector/vintage-garage-badge_23-2147502660.jpg", "http://img.b2bpic.net/free-vector/ski-badge-collection_23-2147718564.jpg", "http://img.b2bpic.net/free-vector/vintage-label-badge-logo_126523-726.jpg", "http://img.b2bpic.net/free-vector/modern-formula-1-racing-cars-with-flat-design_23-2147869548.jpg"
]}
textboxLayout="default"
useInvertedBackground={false}
speed={50}
showCard={true}
/>

View File

@@ -1,51 +1,41 @@
"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;
textClassName?: string;
fontSize?: number;
fontWeight?: number | string;
dominantBaseline?: 'auto' | 'middle' | 'hanging' | 'mathematical' | 'central' | 'ideographic';
}
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,
textClassName,
fontSize = 48,
fontWeight = 'bold',
dominantBaseline = 'middle'
}) => {
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 * fontSize} ${fontSize * 1.5}`}
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={dominantBaseline}
fontSize={fontSize}
fontWeight={fontWeight}
className={textClassName}
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;