kanban-app/frontend/src/pages/Home.tsx

66 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-02-25 09:29:45 +00:00
import { Link } from 'react-router-dom';
import { ModalExample } from '../context/modals/ModalExample';
import { ToastExample } from '../context/toasts/ToastExample';
import { LoaderExample } from '../context/loaders/LoaderExample';
export function Home() {
return (
<div className="space-y-12">
<div className="text-center py-12">
2026-02-25 09:29:45 +00:00
<h1 className="text-5xl font-bold text-white mb-4">Welcome to Crafting Shop</h1>
<p className="text-xl text-gray-300 mb-8">
Your one-stop shop for premium crafting supplies
</p>
<Link
to="/products"
className="bg-blue-600 hover:bg-blue-700 text-white px-8 py-3 rounded-lg text-lg font-medium transition-colors inline-block"
>
Browse Products
</Link>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-6">
<div className="bg-gray-800 rounded-lg p-6 border border-gray-700">
<h3 className="text-xl font-semibold text-white mb-2">Quality Products</h3>
<p className="text-gray-400">Premium crafting supplies for all your projects</p>
</div>
<div className="bg-gray-800 rounded-lg p-6 border border-gray-700">
<h3 className="text-xl font-semibold text-white mb-2">Fast Delivery</h3>
<p className="text-gray-400">Quick and reliable shipping to your doorstep</p>
</div>
<div className="bg-gray-800 rounded-lg p-6 border border-gray-700">
<h3 className="text-xl font-semibold text-white mb-2">Secure Payments</h3>
<p className="text-gray-400">Safe and secure payment processing</p>
</div>
</div>
2026-02-24 08:52:57 +00:00
<div className="bg-gray-800 rounded-lg p-6 border border-gray-700">
<h2 className="text-2xl font-semibold text-white mb-4">Modal System Demo</h2>
<p className="text-gray-400 mb-6">
2026-02-25 09:29:45 +00:00
Test our modal system with this interactive example. The modal uses React Context for
state management.
2026-02-24 08:52:57 +00:00
</p>
<ModalExample />
</div>
2026-02-24 10:45:55 +00:00
<div className="bg-gray-800 rounded-lg p-6 border border-gray-700">
<h2 className="text-2xl font-semibold text-white mb-4">Toast System Demo</h2>
<p className="text-gray-400 mb-6">
2026-02-25 09:29:45 +00:00
Test our toast notification system with this interactive example. The toast uses React
Context for state management.
2026-02-24 10:45:55 +00:00
</p>
<ToastExample />
</div>
2026-02-24 11:03:23 +00:00
<div className="bg-gray-800 rounded-lg p-6 border border-gray-700">
<h2 className="text-2xl font-semibold text-white mb-4">Loader System Demo</h2>
<p className="text-gray-400 mb-6">
2026-02-25 09:29:45 +00:00
Test our global loading system with this interactive example. The loader uses React
Context for state management.
2026-02-24 11:03:23 +00:00
</p>
<LoaderExample />
</div>
</div>
2026-02-25 09:29:45 +00:00
);
2026-02-24 08:52:57 +00:00
}