|
| 1 | +import { Card, Cards } from '@/components/card'; |
| 2 | +import { Heading } from '@/components/heading'; |
| 3 | +import Link from 'next/link'; |
| 4 | + |
| 5 | +// export default function HomePage() { |
| 6 | +// return ( |
| 7 | +// <main className="flex flex-1 flex-col justify-center text-center"> |
| 8 | +// <h1 className="mb-4 text-2xl font-bold">Hello World</h1> |
| 9 | +// <p className="text-fd-muted-foreground"> |
| 10 | +// You can open{' '} |
| 11 | +// <Link |
| 12 | +// href="/docs" |
| 13 | +// className="text-fd-foreground font-semibold underline" |
| 14 | +// > |
| 15 | +// /docs |
| 16 | +// </Link>{' '} |
| 17 | +// and see the documentation. |
| 18 | +// </p> |
| 19 | +// </main> |
| 20 | +// ); |
| 21 | +// } |
| 22 | + |
| 23 | +const features = [ |
| 24 | + { |
| 25 | + title: 'Beginner friendly 🚀', |
| 26 | + description: 'CommandKit aims to be beginner friendly.', |
| 27 | + }, |
| 28 | + { |
| 29 | + title: 'Slash + context menu commands support ✅', |
| 30 | + description: 'CommandKit supports slash and context menu commands.', |
| 31 | + }, |
| 32 | + { |
| 33 | + title: 'Multiple dev guilds, users, & roles support 🤝', |
| 34 | + description: 'CommandKit supports multiple dev guilds, users, and roles.', |
| 35 | + }, |
| 36 | + { |
| 37 | + title: 'Automatic command updates 🤖', |
| 38 | + description: 'CommandKit automatically updates commands.', |
| 39 | + }, |
| 40 | + { |
| 41 | + title: 'REST registration behaviour 📍', |
| 42 | + description: 'CommandKit has REST registration behaviour.', |
| 43 | + }, |
| 44 | + { |
| 45 | + title: 'And much more! 🧪', |
| 46 | + description: 'CommandKit has much more features.', |
| 47 | + }, |
| 48 | +]; |
| 49 | + |
| 50 | +export default function HomePage() { |
| 51 | + return ( |
| 52 | + <> |
| 53 | + <section className="w-72 h-96 mx-auto text-center mt-20 mb-28 md:mb-16 flex items-center justify-center flex-col md:flex-row-reverse md:gap-2 md:text-left md:mt-12 md:w-[700px] lg:w-[850px]"> |
| 54 | + {/* eslint-disable-next-line @next/next/no-img-element */} |
| 55 | + <img |
| 56 | + src="/logo.png" |
| 57 | + alt="CommandKit Logo" |
| 58 | + className="md:w-[230px] lg:w-[280px] mb-10 md:mb-0" |
| 59 | + width={200} |
| 60 | + height={200} |
| 61 | + /> |
| 62 | + |
| 63 | + <div> |
| 64 | + <p className="text-4xl font-bold mb-5 md:text-5xl lg:text-6xl"> |
| 65 | + Let{' '} |
| 66 | + <span className="text-transparent bg-clip-text bg-gradient-to-r from-[#ffbc6f] to-[#b079fc]"> |
| 67 | + CommandKit |
| 68 | + </span>{' '} |
| 69 | + handle it for you! |
| 70 | + </p> |
| 71 | + <p className="font-semibold lg:text-xl"> |
| 72 | + A Discord.js handler for commands and events. |
| 73 | + </p> |
| 74 | + |
| 75 | + <div className="flex items-center justify-center gap-3 mt-10 md:justify-start text-neutral-100"> |
| 76 | + <Link |
| 77 | + href="/guide/installation" |
| 78 | + className="font-semibold bg-[#b079fc] py-2 px-4 rounded-full" |
| 79 | + > |
| 80 | + Guide |
| 81 | + </Link> |
| 82 | + <Link |
| 83 | + href="/docs/typedef/AutocompleteProps" |
| 84 | + className="font-semibold bg-blue-500 py-2 px-4 rounded-full" |
| 85 | + > |
| 86 | + Docs |
| 87 | + </Link> |
| 88 | + <Link |
| 89 | + href="https://github.com/underctrl-io/commandkit" |
| 90 | + className="font-semibold bg-[#fc7993] py-2 px-4 rounded-full" |
| 91 | + target="_blank" |
| 92 | + rel="noopener noreferrer" |
| 93 | + > |
| 94 | + GitHub |
| 95 | + </Link> |
| 96 | + </div> |
| 97 | + </div> |
| 98 | + </section> |
| 99 | + <section className="max-w-[400px] md:max-w-none mx-auto md:w-[700px] lg:w-[850px] text-fd-foreground"> |
| 100 | + <Heading as="h1" className="text-lg font-semibold mb-2"> |
| 101 | + Features |
| 102 | + </Heading> |
| 103 | + <Cards> |
| 104 | + {features.map((feature) => ( |
| 105 | + <Card |
| 106 | + key={feature.title} |
| 107 | + title={feature.title} |
| 108 | + description={feature.description} |
| 109 | + /> |
| 110 | + ))} |
| 111 | + </Cards> |
| 112 | + </section> |
| 113 | + </> |
| 114 | + ); |
| 115 | +} |
0 commit comments