Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | import React from 'react'; import { useNavigate } from 'react-router-dom'; import { Button } from '@web/components/common'; const HomePage: React.FC = () => { const navigate = useNavigate(); return ( <div className="flex flex-col items-center justify-center h-full p-4"> <h1 className="text-2xl font-bold mb-4">Welcome to NewsletterHub</h1> <p className="text-gray-600 mb-6 text-center"> Your one-stop solution for managing and reading newsletters </p> <div className="flex gap-4"> <Button onClick={() => navigate('/inbox')}> Go to Inbox </Button> <Button variant="outline" onClick={() => navigate('/newsletters')}> Manage Newsletters </Button> </div> </div> ); }; export default HomePage; |