diff --git a/src/app/page.tsx b/src/app/page.tsx index 6a7ea63..93bef9e 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -57,15 +57,15 @@ export default function LandingPage() { testimonials={[ { name: "Sarah Chen", handle: "Founder & CEO", testimonial: "Cognify transformed how I make decisions under pressure. I'm sharper, calmer, and more effective.", rating: 5, - imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-confident-f-1773351770619-6d6a5e00.png?_wi=1", imageAlt: "Sarah Chen" + imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-confident-f-1773351770619-6d6a5e00.png", imageAlt: "Sarah Chen" }, { name: "Marcus Reid", handle: "Professional Athlete", testimonial: "The mental training is as comprehensive as physical training. I've noticed huge improvements in focus and resilience.", rating: 5, - imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-male-athlet-1773351770741-44dfb8d9.png?_wi=1", imageAlt: "Marcus Reid" + imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-male-athlet-1773351770741-44dfb8d9.png", imageAlt: "Marcus Reid" }, { name: "Priya Desai", handle: "Graduate Student", testimonial: "Finally, a tool that actually trains the mind. The frameworks are practical and the results are real.", rating: 5, - imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-female-stud-1773351771915-7d4f8bbc.png?_wi=1", imageAlt: "Priya Desai" + imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-female-stud-1773351771915-7d4f8bbc.png", imageAlt: "Priya Desai" } ]} buttons={[ @@ -107,15 +107,15 @@ export default function LandingPage() { features={[ { id: 1, - title: "Daily Mental Workouts", description: "5–10 minute exercises targeting focus, decision-making, and emotional regulation. Science-backed routines that build mental strength over time.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-split-screen-showing-daily-mental-work-1773351770766-b166d600.png?_wi=1", imageAlt: "Daily mental workout interface" + title: "Daily Mental Workouts", description: "5–10 minute exercises targeting focus, decision-making, and emotional regulation. Science-backed routines that build mental strength over time.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-split-screen-showing-daily-mental-work-1773351770766-b166d600.png", imageAlt: "Daily mental workout interface" }, { id: 2, - title: "Thinking Frameworks", description: "Learn and master powerful mental models: First Principles Thinking, Scenario Planning, Decision Matrices, and more. Tools used by top performers.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-split-screen-showing-daily-mental-work-1773351770766-b166d600.png?_wi=2", imageAlt: "Thinking framework cards" + title: "Thinking Frameworks", description: "Learn and master powerful mental models: First Principles Thinking, Scenario Planning, Decision Matrices, and more. Tools used by top performers.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-split-screen-showing-daily-mental-work-1773351770766-b166d600.png", imageAlt: "Thinking framework cards" }, { id: 3, - title: "Cognitive Dashboard", description: "Track your mental performance over time. See trends in focus, clarity, resilience, judgment, and agency. Data-driven insights fuel your growth.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-split-screen-showing-daily-mental-work-1773351770766-b166d600.png?_wi=3", imageAlt: "Cognitive performance dashboard" + title: "Cognitive Dashboard", description: "Track your mental performance over time. See trends in focus, clarity, resilience, judgment, and agency. Data-driven insights fuel your growth.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-split-screen-showing-daily-mental-work-1773351770766-b166d600.png", imageAlt: "Cognitive performance dashboard" } ]} /> @@ -162,16 +162,16 @@ export default function LandingPage() { gridVariant="uniform-all-items-equal" members={[ { - id: "1", name: "Ambitious Professionals", role: "Leaders & High-Performers", description: "Executives, managers, and individual contributors driven to excel in their careers and master complex problems.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-confident-f-1773351770619-6d6a5e00.png?_wi=2", imageAlt: "Professional" + id: "1", name: "Ambitious Professionals", role: "Leaders & High-Performers", description: "Executives, managers, and individual contributors driven to excel in their careers and master complex problems.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-confident-f-1773351770619-6d6a5e00.png", imageAlt: "Professional" }, { - id: "2", name: "Founders & Entrepreneurs", role: "Builders & Risk-Takers", description: "Startup founders and business leaders who need sharp decision-making and emotional resilience under pressure.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-male-athlet-1773351770741-44dfb8d9.png?_wi=2", imageAlt: "Founder" + id: "2", name: "Founders & Entrepreneurs", role: "Builders & Risk-Takers", description: "Startup founders and business leaders who need sharp decision-making and emotional resilience under pressure.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-male-athlet-1773351770741-44dfb8d9.png", imageAlt: "Founder" }, { - id: "3", name: "Students & Learners", role: "Future Leaders", description: "Graduate students, scholars, and lifelong learners preparing for competitive careers and meaningful impact.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-female-stud-1773351771915-7d4f8bbc.png?_wi=2", imageAlt: "Student" + id: "3", name: "Students & Learners", role: "Future Leaders", description: "Graduate students, scholars, and lifelong learners preparing for competitive careers and meaningful impact.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-female-stud-1773351771915-7d4f8bbc.png", imageAlt: "Student" }, { - id: "4", name: "Athletes & Performers", role: "Peak Performers", description: "Sports competitors, artists, and performers optimizing mental game for competitive advantage.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-male-entrep-1773351771353-4ea50a7a.png?_wi=1", imageAlt: "Athlete" + id: "4", name: "Athletes & Performers", role: "Peak Performers", description: "Sports competitors, artists, and performers optimizing mental game for competitive advantage.", imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-male-entrep-1773351771353-4ea50a7a.png", imageAlt: "Athlete" } ]} /> @@ -219,19 +219,19 @@ export default function LandingPage() { testimonials={[ { id: "1", name: "Sarah Chen", role: "CEO", company: "TechFlow Inc", rating: 5, - imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-confident-f-1773351770619-6d6a5e00.png?_wi=3", imageAlt: "Sarah Chen" + imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-confident-f-1773351770619-6d6a5e00.png", imageAlt: "Sarah Chen" }, { id: "2", name: "Marcus Reid", role: "Performance Coach", company: "Elite Athletes Co", rating: 5, - imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-male-athlet-1773351770741-44dfb8d9.png?_wi=3", imageAlt: "Marcus Reid" + imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-male-athlet-1773351770741-44dfb8d9.png", imageAlt: "Marcus Reid" }, { id: "3", name: "Priya Desai", role: "PhD Researcher", company: "Stanford University", rating: 5, - imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-female-stud-1773351771915-7d4f8bbc.png?_wi=3", imageAlt: "Priya Desai" + imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-female-stud-1773351771915-7d4f8bbc.png", imageAlt: "Priya Desai" }, { id: "4", name: "James Mitchell", role: "VP Product", company: "InnovateLabs", rating: 5, - imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-male-entrep-1773351771353-4ea50a7a.png?_wi=2", imageAlt: "James Mitchell" + imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3ArXFmb1LlD7IqX54Dy42vgbBnN/a-professional-headshot-of-a-male-entrep-1773351771353-4ea50a7a.png", imageAlt: "James Mitchell" } ]} kpiItems={[ diff --git a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx index f214190..e905c19 100644 --- a/src/components/shared/SvgTextLogo/SvgTextLogo.tsx +++ b/src/components/shared/SvgTextLogo/SvgTextLogo.tsx @@ -1,51 +1,59 @@ -"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; + letterSpacing?: number; + fill?: string; + strokeWidth?: number; + stroke?: string; } -const SvgTextLogo = memo(function SvgTextLogo({ - logoText, - adjustHeightFactor, - verticalAlign = "top", - className = "", -}) { - const { svgRef, textRef, viewBox, aspectRatio } = useSvgTextLogo(logoText, false, adjustHeightFactor); +const SvgTextLogo: React.FC = ({ + text, + className = '', + fontSize = 48, + fontWeight = 700, + letterSpacing = 0, + fill = 'currentColor', + strokeWidth = 0, + stroke = 'none', +}) => { + const getTextWidth = (): number => { + const charWidth = fontSize * 0.6; + return text.length * charWidth + letterSpacing * (text.length - 1); + }; + + const textWidth = getTextWidth(); + const padding = 20; + const viewBoxWidth = textWidth + padding * 2; + const viewBoxHeight = fontSize * 1.5; return ( - {logoText} + {text} ); -}); - -SvgTextLogo.displayName = "SvgTextLogo"; +}; export default SvgTextLogo;