113 lines
7.8 KiB
TypeScript
113 lines
7.8 KiB
TypeScript
import React from 'react';
|
|
|
|
interface LandingPageProps {
|
|
onGetStarted: () => void;
|
|
}
|
|
|
|
const GoalIcon = () => <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" className="w-6 h-6"><path strokeLinecap="round" strokeLinejoin="round" d="M15.042 21.672L13.684 16.6m0 0l-2.51 2.225.569-9.47 5.227 7.917-3.286-.672zM12 2.25C6.477 2.25 2.25 6.477 2.25 12s4.227 9.75 9.75 9.75 9.75-4.227 9.75-9.75S17.523 2.25 12 2.25z" /></svg>;
|
|
const GenerateIcon = () => <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" className="w-6 h-6"><path strokeLinecap="round" strokeLinejoin="round" d="M9.813 15.904L9 18.75l-.813-2.846a4.5 4.5 0 00-3.09-3.09L2.25 12l2.846-.813a4.5 4.5 0 003.09-3.09L9 5.25l.813 2.846a4.5 4.5 0 003.09 3.09L15.75 12l-2.846.813a4.5 4.5 0 00-3.09 3.09zM18.259 8.715L18 9.75l-.259-1.035a3.375 3.375 0 00-2.455-2.456L14.25 6l1.036-.259a3.375 3.375 0 002.455-2.456L18 2.25l.259 1.035a3.375 3.375 0 002.456 2.456L21.75 6l-1.035.259a3.375 3.375 0 00-2.456 2.456zM16.898 20.562L16.25 22.5l-.648-1.938a2.25 2.25 0 01-1.423-1.423L12.25 18.5l1.938-.648a2.25 2.25 0 011.423-1.423l1.938-.648.648 1.938a2.25 2.25 0 01-1.423 1.423l-.648 1.938z" /></svg>;
|
|
const ExecuteIcon = () => <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" className="w-6 h-6"><path strokeLinecap="round" strokeLinejoin="round" d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>;
|
|
|
|
const FeatureCard: React.FC<{ icon: React.ReactElement; title: string; children: React.ReactNode }> = ({ icon, title, children }) => (
|
|
<div className="bg-white dark:bg-slate-800 p-6 rounded-lg shadow-md border border-slate-200 dark:border-slate-700">
|
|
<div className="flex items-center justify-center h-12 w-12 rounded-full bg-green-100 dark:bg-green-900/30 text-green-600 dark:text-green-400 mb-4">
|
|
{icon}
|
|
</div>
|
|
<h3 className="text-lg font-semibold text-slate-900 dark:text-slate-100 mb-2">{title}</h3>
|
|
<p className="text-slate-600 dark:text-slate-400">{children}</p>
|
|
</div>
|
|
);
|
|
|
|
const LandingPage: React.FC<LandingPageProps> = ({ onGetStarted }) => {
|
|
return (
|
|
<div className="text-center">
|
|
{/* Hero Section */}
|
|
<section className="py-16 md:py-24">
|
|
<h1 className="text-4xl md:text-6xl font-extrabold text-slate-900 dark:text-slate-100 mb-4 tracking-tight">
|
|
Turn Ambition into Action
|
|
</h1>
|
|
<p className="max-w-2xl mx-auto text-lg md:text-xl text-slate-600 dark:text-slate-400 mb-8">
|
|
Goal Planner uses AI to break down your biggest goals into a manageable, step-by-step plan. Stop wondering, start doing.
|
|
</p>
|
|
<button
|
|
onClick={onGetStarted}
|
|
className="bg-green-600 text-white font-semibold px-8 py-3 rounded-lg hover:bg-green-700 transition-colors shadow-lg transform hover:scale-105"
|
|
>
|
|
Create Your First Plan
|
|
</button>
|
|
</section>
|
|
|
|
{/* Features Section */}
|
|
<section id="how-it-works" className="py-16 md:py-24 bg-slate-100 dark:bg-slate-800/50 -mx-4 px-4 sm:rounded-2xl">
|
|
<h2 className="text-3xl font-bold text-slate-900 dark:text-slate-100 mb-2">How It Works</h2>
|
|
<p className="max-w-xl mx-auto text-slate-600 dark:text-slate-400 mb-12">Achieve clarity in three simple steps.</p>
|
|
<div className="grid md:grid-cols-3 gap-8 max-w-5xl mx-auto">
|
|
<FeatureCard
|
|
icon={<GoalIcon />}
|
|
title="1. Define Your Goal"
|
|
>
|
|
Start by telling our AI what you want to achieve. Be as broad or specific as you like.
|
|
</FeatureCard>
|
|
<FeatureCard
|
|
icon={<GenerateIcon />}
|
|
title="2. Generate Your Plan"
|
|
>
|
|
Our intelligent system analyzes your goal and creates a detailed roadmap with tasks and dependencies.
|
|
</FeatureCard>
|
|
<FeatureCard
|
|
icon={<ExecuteIcon />}
|
|
title="3. Execute & Track"
|
|
>
|
|
Follow the plan, mark tasks as complete, and watch your project come to life.
|
|
</FeatureCard>
|
|
</div>
|
|
</section>
|
|
|
|
{/* Testimonials */}
|
|
<section id="testimonials" className="py-16 md:py-24">
|
|
<h2 className="text-3xl font-bold text-slate-900 dark:text-slate-100 mb-12">Trusted by High-Achievers</h2>
|
|
<div className="max-w-4xl mx-auto grid md:grid-cols-2 gap-8">
|
|
<div className="bg-white dark:bg-slate-800 p-6 rounded-lg shadow-md border border-slate-200 dark:border-slate-700 text-left">
|
|
<p className="text-slate-600 dark:text-slate-400 mb-4">"This tool is a game-changer. I went from a vague idea for my startup to a full-fledged project plan in minutes. Unbelievable!"</p>
|
|
<p className="font-semibold text-slate-900 dark:text-slate-100">Goal Planner</p>
|
|
<p className="text-sm text-slate-500 dark:text-slate-500">Entrepreneur</p>
|
|
</div>
|
|
<div className="bg-white dark:bg-slate-800 p-6 rounded-lg shadow-md border border-slate-200 dark:border-slate-700 text-left">
|
|
<p className="text-slate-600 dark:text-slate-400 mb-4">"As a student juggling multiple projects, the Goal Planner brought much-needed clarity. The dependency mapping is pure genius."</p>
|
|
<p className="font-semibold text-slate-900 dark:text-slate-100">Balaji</p>
|
|
<p className="text-sm text-slate-500 dark:text-slate-500">University Student</p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{/* About Section */}
|
|
<section id="about" className="py-16 md:py-24 bg-slate-100 dark:bg-slate-800/50 -mx-4 px-4 sm:rounded-2xl">
|
|
<div className="max-w-4xl mx-auto text-center">
|
|
<h2 className="text-3xl font-bold text-slate-900 dark:text-slate-100 mb-4">Our Mission</h2>
|
|
<p className="text-lg text-slate-600 dark:text-slate-400 mb-8">
|
|
We believe that great ideas shouldn't get lost in the complexity of execution. Goal Planner was born from a simple desire: to bridge the gap between vision and reality. Our mission is to empower creators, builders, and dreamers with intelligent tools that bring clarity, structure, and momentum to any project.
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
{/* Final CTA */}
|
|
<section className="py-16 md:py-24">
|
|
<div className="max-w-4xl mx-auto text-center bg-green-600 dark:bg-green-700 text-white -mx-4 py-16 px-4 sm:rounded-2xl">
|
|
<h2 className="text-4xl font-extrabold mb-4">Ready to Conquer Your Goals?</h2>
|
|
<p className="text-lg text-green-100 mb-8 max-w-2xl mx-auto">
|
|
Stop procrastinating and start planning. Your next big achievement is just a few clicks away.
|
|
</p>
|
|
<button
|
|
onClick={onGetStarted}
|
|
className="bg-white dark:bg-slate-900 text-green-600 dark:text-green-400 font-bold px-10 py-4 rounded-lg hover:bg-green-50 dark:hover:bg-slate-800 transition-colors shadow-2xl transform hover:scale-105 text-lg"
|
|
>
|
|
Get Started for Free
|
|
</button>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default LandingPage;
|