Update src/app/page.tsx

This commit is contained in:
2026-01-23 17:23:55 +00:00
parent 32b32d4460
commit b7bf97ea51

View File

@@ -1,251 +1,140 @@
"use client"; "use client";
import React, { useState, useEffect } from 'react'; import { useState } from 'react';
import { ChevronRight, Sparkles, Zap, Shield, Rocket, ArrowRight, Star, CheckCircle2, Globe, Users, TrendingUp, Award } from 'lucide-react'; import { ArrowRight, Sparkles, Star } from 'lucide-react';
export default function HomePage() { export default function HomePage() {
const [isLoaded, setIsLoaded] = useState(false); const [isLoaded] = useState(true);
const [activeFeature, setActiveFeature] = useState(0);
useEffect(() => {
setIsLoaded(true);
}, []);
const features = [ const features = [
{ {
icon: Zap, icon: Star,
title: "Lightning Fast", description: "Optimized performance with cutting-edge technology" title: "Premium Quality", description: "Top-tier components built with modern standards"
}, },
{ {
icon: Shield, icon: Sparkles,
title: "Enterprise Security", description: "Bank-level security protocols to protect your data" title: "Easy Integration", description: "Drop-in components that work out of the box"
}, },
{ {
icon: Rocket, icon: ArrowRight,
title: "Scalable Growth", description: "Built to scale with your business needs" title: "Fast Development", description: "Speed up your development workflow"
} }
]; ];
const testimonials = [
{
name: "Sarah Chen", role: "CTO at TechCorp", content: "This platform transformed our workflow completely. The efficiency gains are incredible.", rating: 5
},
{
name: "Michael Rodriguez", role: "Product Manager", content: "Best decision we made this year. The ROI was immediate and substantial.", rating: 5
},
{
name: "Emily Johnson", role: "Startup Founder", content: "Simple, powerful, and exactly what we needed to scale our operations.", rating: 5
}
];
const stats = [
{ label: "Active Users", value: "10M+" },
{ label: "Success Rate", value: "99.9%" },
{ label: "Countries", value: "150+" },
{ label: "Uptime", value: "99.99%" }
];
return ( return (
<div className="min-h-screen bg-gradient-to-br from-slate-50 to-blue-50"> <div className="min-h-screen bg-gradient-to-br from-purple-50 to-blue-50">
{/* Navigation */} {/* Header */}
<nav className="fixed top-0 w-full bg-white/80 backdrop-blur-md border-b border-gray-200 z-50"> <header className="bg-white shadow-sm">
<div className="max-w-7xl mx-auto px-6 py-4"> <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="flex items-center justify-between"> <div className="flex justify-between items-center py-6">
<div className="flex items-center space-x-2"> <div className="flex items-center">
<Sparkles className="w-8 h-8 text-blue-600" /> <Sparkles className="h-8 w-8 text-purple-600" />
<span className="text-2xl font-bold text-gray-900">WebApp</span> <span className="ml-2 text-xl font-bold text-gray-900">WebComponents</span>
</div>
<div className="hidden md:flex items-center space-x-8">
<a href="#features" className="text-gray-700 hover:text-blue-600 transition-colors">Features</a>
<a href="#pricing" className="text-gray-700 hover:text-blue-600 transition-colors">Pricing</a>
<a href="#about" className="text-gray-700 hover:text-blue-600 transition-colors">About</a>
<button className="bg-blue-600 text-white px-6 py-2 rounded-full hover:bg-blue-700 transition-colors">
Get Started
</button>
</div> </div>
<nav className="hidden md:flex space-x-8">
<a href="#" className="text-gray-500 hover:text-gray-900">Features</a>
<a href="#" className="text-gray-500 hover:text-gray-900">Pricing</a>
<a href="#" className="text-gray-500 hover:text-gray-900">About</a>
<a href="#" className="text-gray-500 hover:text-gray-900">Contact</a>
</nav>
<button className="bg-purple-600 text-white px-4 py-2 rounded-lg hover:bg-purple-700 transition-colors">
Get Started
</button>
</div> </div>
</div> </div>
</nav> </header>
{/* Hero Section */} {/* Hero Section */}
<section className={`pt-32 pb-20 px-6 transition-all duration-1000 ${isLoaded ? 'opacity-100 translate-y-0' : 'opacity-0 translate-y-10'}`}> <main className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div className="max-w-7xl mx-auto text-center"> <div className={`text-center transition-opacity duration-1000 ${isLoaded ? 'opacity-100' : 'opacity-0'}`}>
<div className="inline-flex items-center bg-blue-100 text-blue-800 px-4 py-2 rounded-full text-sm font-medium mb-8"> <h1 className="text-4xl md:text-6xl font-bold text-gray-900 mb-6">
<Sparkles className="w-4 h-4 mr-2" /> Build Beautiful
New: AI-Powered Analytics Now Available <span className="text-purple-600 block">Web Components</span>
</div>
<h1 className="text-5xl md:text-7xl font-bold text-gray-900 mb-6 leading-tight">
Build the Future
<span className="block bg-gradient-to-r from-blue-600 to-purple-600 bg-clip-text text-transparent">
Today
</span>
</h1> </h1>
<p className="text-xl text-gray-600 mb-10 max-w-3xl mx-auto leading-relaxed"> <p className="text-xl text-gray-600 mb-8 max-w-3xl mx-auto">
Transform your business with our cutting-edge platform. Streamline operations, Create stunning, responsive web components with our premium collection of templates and tools.
boost productivity, and unlock unprecedented growth opportunities.
</p>
<div className="flex flex-col sm:flex-row gap-4 justify-center mb-16">
<button className="bg-blue-600 text-white px-8 py-4 rounded-full hover:bg-blue-700 transition-all duration-300 transform hover:scale-105 flex items-center justify-center">
Start Free Trial
<ArrowRight className="ml-2 w-5 h-5" />
</button>
<button className="border-2 border-gray-300 text-gray-700 px-8 py-4 rounded-full hover:border-blue-600 hover:text-blue-600 transition-colors">
Watch Demo
</button>
</div>
{/* Stats */}
<div className="grid grid-cols-2 md:grid-cols-4 gap-8 max-w-4xl mx-auto">
{stats.map((stat, index) => (
<div key={index} className="text-center">
<div className="text-3xl md:text-4xl font-bold text-blue-600 mb-2">{stat.value}</div>
<div className="text-gray-600">{stat.label}</div>
</div>
))}
</div>
</div>
</section>
{/* Features Section */}
<section id="features" className="py-20 px-6 bg-white">
<div className="max-w-7xl mx-auto">
<div className="text-center mb-16">
<h2 className="text-4xl md:text-5xl font-bold text-gray-900 mb-6">
Powerful Features
</h2>
<p className="text-xl text-gray-600 max-w-3xl mx-auto">
Everything you need to succeed, built with modern technology and designed for scale.
</p>
</div>
<div className="grid md:grid-cols-3 gap-8">
{features.map((feature, index) => {
const IconComponent = feature.icon;
return (
<div
key={index}
className={`p-8 rounded-2xl border-2 transition-all duration-300 cursor-pointer transform hover:scale-105 ${
activeFeature === index
? 'border-blue-500 bg-blue-50 shadow-lg'
: 'border-gray-200 bg-white hover:border-blue-300'
}`}
onMouseEnter={() => setActiveFeature(index)}
>
<IconComponent className="w-12 h-12 text-blue-600 mb-4" />
<h3 className="text-2xl font-bold text-gray-900 mb-4">{feature.title}</h3>
<p className="text-gray-600 leading-relaxed">{feature.description}</p>
</div>
);
})}
</div>
</div>
</section>
{/* Testimonials Section */}
<section className="py-20 px-6 bg-gray-50">
<div className="max-w-7xl mx-auto">
<div className="text-center mb-16">
<h2 className="text-4xl md:text-5xl font-bold text-gray-900 mb-6">
Loved by Thousands
</h2>
<p className="text-xl text-gray-600">
See what our customers are saying about their experience.
</p>
</div>
<div className="grid md:grid-cols-3 gap-8">
{testimonials.map((testimonial, index) => (
<div key={index} className="bg-white p-8 rounded-2xl shadow-sm hover:shadow-md transition-shadow">
<div className="flex items-center mb-4">
{[...Array(testimonial.rating)].map((_, i) => (
<Star key={i} className="w-5 h-5 text-yellow-400 fill-current" />
))}
</div>
<p className="text-gray-700 mb-6 italic">"{testimonial.content}"</p>
<div className="flex items-center">
<div className="w-12 h-12 bg-gradient-to-r from-blue-400 to-purple-500 rounded-full flex items-center justify-center text-white font-bold mr-4">
{testimonial.name.charAt(0)}
</div>
<div>
<div className="font-semibold text-gray-900">{testimonial.name}</div>
<div className="text-gray-600 text-sm">{testimonial.role}</div>
</div>
</div>
</div>
))}
</div>
</div>
</section>
{/* CTA Section */}
<section className="py-20 px-6 bg-gradient-to-r from-blue-600 to-purple-600">
<div className="max-w-4xl mx-auto text-center">
<h2 className="text-4xl md:text-5xl font-bold text-white mb-6">
Ready to Get Started?
</h2>
<p className="text-xl text-blue-100 mb-10 max-w-2xl mx-auto">
Join thousands of satisfied customers and transform your business today.
</p> </p>
<div className="flex flex-col sm:flex-row gap-4 justify-center"> <div className="flex flex-col sm:flex-row gap-4 justify-center">
<button className="bg-white text-blue-600 px-8 py-4 rounded-full hover:bg-gray-50 transition-colors font-semibold flex items-center justify-center"> <button className="bg-purple-600 text-white px-8 py-3 rounded-lg hover:bg-purple-700 transition-colors flex items-center justify-center">
Start Your Free Trial Start Building
<ChevronRight className="ml-2 w-5 h-5" /> <ArrowRight className="ml-2 h-5 w-5" />
</button> </button>
<button className="border-2 border-white text-white px-8 py-4 rounded-full hover:bg-white hover:text-blue-600 transition-colors"> <button className="border border-gray-300 text-gray-700 px-8 py-3 rounded-lg hover:bg-gray-50 transition-colors">
Contact Sales View Examples
</button> </button>
</div> </div>
</div> </div>
</section>
{/* Features Grid */}
<div className="mt-20 grid md:grid-cols-3 gap-8">
{features.map((feature, index) => {
const IconComponent = feature.icon;
return (
<div key={index} className="bg-white p-6 rounded-xl shadow-sm hover:shadow-md transition-shadow">
<div className="w-12 h-12 bg-purple-100 rounded-lg flex items-center justify-center mb-4">
<IconComponent className="h-6 w-6 text-purple-600" />
</div>
<h3 className="text-xl font-semibold text-gray-900 mb-2">{feature.title}</h3>
<p className="text-gray-600">{feature.description}</p>
</div>
);
})}
</div>
{/* CTA Section */}
<div className="mt-20 bg-purple-600 rounded-2xl p-8 md:p-12 text-center">
<h2 className="text-3xl md:text-4xl font-bold text-white mb-4">
Ready to get started?
</h2>
<p className="text-purple-100 text-lg mb-8">
Join thousands of developers building amazing web experiences.
</p>
<button className="bg-white text-purple-600 px-8 py-3 rounded-lg hover:bg-gray-50 transition-colors font-semibold">
Start Your Free Trial
</button>
</div>
</main>
{/* Footer */} {/* Footer */}
<footer className="bg-gray-900 text-white py-16 px-6"> <footer className="bg-gray-900 text-white py-12 mt-20">
<div className="max-w-7xl mx-auto"> <div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="grid md:grid-cols-4 gap-8 mb-12"> <div className="grid md:grid-cols-4 gap-8">
<div> <div>
<div className="flex items-center space-x-2 mb-6"> <div className="flex items-center mb-4">
<Sparkles className="w-8 h-8 text-blue-400" /> <Sparkles className="h-6 w-6 text-purple-400" />
<span className="text-2xl font-bold">WebApp</span> <span className="ml-2 text-lg font-bold">WebComponents</span>
</div> </div>
<p className="text-gray-400 leading-relaxed"> <p className="text-gray-400">
Building the future of digital experiences with cutting-edge technology. Building the future of web development, one component at a time.
</p> </p>
</div> </div>
<div> <div>
<h3 className="text-lg font-semibold mb-4">Product</h3> <h3 className="font-semibold mb-4">Product</h3>
<ul className="space-y-2 text-gray-400"> <ul className="space-y-2 text-gray-400">
<li><a href="#" className="hover:text-white transition-colors">Features</a></li> <li><a href="#" className="hover:text-white">Features</a></li>
<li><a href="#" className="hover:text-white transition-colors">Pricing</a></li> <li><a href="#" className="hover:text-white">Pricing</a></li>
<li><a href="#" className="hover:text-white transition-colors">Integrations</a></li> <li><a href="#" className="hover:text-white">Documentation</a></li>
<li><a href="#" className="hover:text-white transition-colors">API</a></li>
</ul> </ul>
</div> </div>
<div> <div>
<h3 className="text-lg font-semibold mb-4">Company</h3> <h3 className="font-semibold mb-4">Company</h3>
<ul className="space-y-2 text-gray-400"> <ul className="space-y-2 text-gray-400">
<li><a href="#" className="hover:text-white transition-colors">About</a></li> <li><a href="#" className="hover:text-white">About</a></li>
<li><a href="#" className="hover:text-white transition-colors">Careers</a></li> <li><a href="#" className="hover:text-white">Blog</a></li>
<li><a href="#" className="hover:text-white transition-colors">Blog</a></li> <li><a href="#" className="hover:text-white">Contact</a></li>
<li><a href="#" className="hover:text-white transition-colors">Contact</a></li>
</ul> </ul>
</div> </div>
<div> <div>
<h3 className="text-lg font-semibold mb-4">Support</h3> <h3 className="font-semibold mb-4">Support</h3>
<ul className="space-y-2 text-gray-400"> <ul className="space-y-2 text-gray-400">
<li><a href="#" className="hover:text-white transition-colors">Help Center</a></li> <li><a href="#" className="hover:text-white">Help Center</a></li>
<li><a href="#" className="hover:text-white transition-colors">Documentation</a></li> <li><a href="#" className="hover:text-white">Community</a></li>
<li><a href="#" className="hover:text-white transition-colors">Status</a></li> <li><a href="#" className="hover:text-white">Status</a></li>
<li><a href="#" className="hover:text-white transition-colors">Security</a></li>
</ul> </ul>
</div> </div>
</div> </div>
<div className="border-t border-gray-800 pt-8 flex flex-col md:flex-row items-center justify-between"> <div className="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400">
<p className="text-gray-400">© 2024 WebApp. All rights reserved.</p> <p>&copy; 2024 WebComponents. All rights reserved.</p>
<div className="flex space-x-6 mt-4 md:mt-0">
<a href="#" className="text-gray-400 hover:text-white transition-colors">Privacy</a>
<a href="#" className="text-gray-400 hover:text-white transition-colors">Terms</a>
<a href="#" className="text-gray-400 hover:text-white transition-colors">Cookies</a>
</div>
</div> </div>
</div> </div>
</footer> </footer>