page.tsx28 lines, 759 B
| 1 | import { UrlShortenerForm } from "@/components/urls/url-shortener-form"; |
| 2 | import { |
| 3 | Form, |
| 4 | FormControl, |
| 5 | FormDescription, |
| 6 | FormField, |
| 7 | FormItem, |
| 8 | FormLabel, |
| 9 | FormMessage, |
| 10 | } from "@/components/ui/form"; |
| 11 | |
| 12 | export default function Home() { |
| 13 | return ( |
| 14 | <div className="flex flex-1 flex-col items-center justify-center p-6 md:p-24"> |
| 15 | <div className="w-full max-w-3xl mx-auto text-center"> |
| 16 | <h1 className="text-4xl md:text-5xl font-bold tracking-tight mb-4"> |
| 17 | Shorten Your Links |
| 18 | </h1> |
| 19 | <p className="text-lg text-muted-foreground mb-8 max-w-2xl mx-auto"> |
| 20 | Paste your long URL and get a shortened one. It's free and easy to |
| 21 | use. |
| 22 | </p> |
| 23 | |
| 24 | <UrlShortenerForm /> |
| 25 | </div> |
| 26 | </div> |
| 27 | ); |
| 28 | } |