Merge version_1 into main #2

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

View File

@@ -20,7 +20,7 @@ export default function LandingPage() {
borderRadius="pill"
contentWidth="medium"
sizing="mediumLarge"
background="aurora"
background="circleGradient"
cardStyle="gradient-bordered"
primaryButtonStyle="primary-glow"
secondaryButtonStyle="layered"
@@ -45,7 +45,7 @@ export default function LandingPage() {
<HeroSplitKpi
title="Transform Your Body, Transform Your Life"
description="Expert personal coaching designed to help you achieve sustainable fitness results through personalized training plans, nutrition guidance, and motivational support."
background={{ variant: "aurora" }}
background={{ variant: "glowing-orb" }}
kpis={[
{ value: "500+", label: "Clients Transformed" },
{ value: "10+", label: "Years Experience" },
@@ -109,7 +109,7 @@ export default function LandingPage() {
features={[
{
id: 1,
title: "Personalized Assessment", description: "Comprehensive fitness evaluation to understand your starting point, goals, and any limitations. We create a customized baseline for your unique needs.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-fresh-vegetables-such-as-pepper-carrot-onions-light-desk-vegetable-food-meal-vitamine_140725-34478.jpg?_wi=1", imageAlt: "healthy meal prep balanced nutrition"
title: "Personalized Assessment", description: "Comprehensive fitness evaluation to understand your starting point, goals, and any limitations. We create a customized baseline for your unique needs.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-fresh-vegetables-such-as-pepper-carrot-onions-light-desk-vegetable-food-meal-vitamine_140725-34478.jpg", imageAlt: "healthy meal prep balanced nutrition"
},
{
id: 2,
@@ -117,7 +117,7 @@ export default function LandingPage() {
},
{
id: 3,
title: "Nutrition Guidance", description: "Expert dietary recommendations aligned with your fitness goals. Sustainable eating habits that fuel your workouts and support long-term health.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-fresh-vegetables-such-as-pepper-carrot-onions-light-desk-vegetable-food-meal-vitamine_140725-34478.jpg?_wi=2", imageAlt: "healthy meal prep balanced nutrition"
title: "Nutrition Guidance", description: "Expert dietary recommendations aligned with your fitness goals. Sustainable eating habits that fuel your workouts and support long-term health.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-fresh-vegetables-such-as-pepper-carrot-onions-light-desk-vegetable-food-meal-vitamine_140725-34478.jpg", imageAlt: "healthy meal prep balanced nutrition"
},
{
id: 4,
@@ -187,7 +187,7 @@ export default function LandingPage() {
tagAnimation="blur-reveal"
title="Ready to Transform?"
description="Join hundreds of satisfied clients who have achieved their fitness goals through personalized coaching. Subscribe to our newsletter for exclusive tips, motivation, and special offers."
background={{ variant: "aurora" }}
background={{ variant: "glowing-orb" }}
useInvertedBackground={false}
imageSrc="http://img.b2bpic.net/free-photo/manager-listening-caucasian-candidate_482257-120886.jpg"
imageAlt="Fitness coaching consultation session"

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;
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',
}) => {
const textLength = text.length;
const charWidth = fontSize * 0.6;
const width = charWidth * textLength + 20;
const height = fontSize + 20;
return (
<svg
ref={svgRef}
viewBox={viewBox}
className={cls("w-full", className)}
style={{ aspectRatio: aspectRatio }}
preserveAspectRatio="none"
role="img"
aria-label={`${logoText} logo`}
width={width}
height={height}
viewBox={`0 0 ${width} ${height}`}
xmlns="http://www.w3.org/2000/svg"
className={className}
aria-label={text}
>
<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={width / 2}
y={height / 2}
fontSize={fontSize}
fontWeight={fontWeight}
fill={fill}
textAnchor="middle"
dominantBaseline="central"
>
{logoText}
{text}
</text>
</svg>
);
});
};
SvgTextLogo.displayName = "SvgTextLogo";
export default SvgTextLogo;
export default SvgTextLogo;