|
| 1 | +import { |
| 2 | + Accordion, |
| 3 | + Avatar, |
| 4 | + Badge, |
| 5 | + BasicCard, |
| 6 | + Button, |
| 7 | + H1, |
| 8 | + H2, |
| 9 | + H3, |
| 10 | + H4, |
| 11 | + Input, |
| 12 | + ProductCard, |
| 13 | + Textarea, |
| 14 | +} from "@/packages/ui"; |
| 15 | +import Link from "next/link"; |
| 16 | + |
| 17 | +export default function Home() { |
| 18 | + return ( |
| 19 | + <main className="space-y-36"> |
| 20 | + <section className="container max-w-6xl mx-auto mt-36 text-center text-gray-900"> |
| 21 | + <H1>Make your projects</H1> |
| 22 | + <H1 className="text-outlined">stand out!</H1> |
| 23 | + |
| 24 | + <p className="text-lg text-gray-600 mb-8 mt-4 max-w-2xl mx-auto"> |
| 25 | + Retro styled component library for modern web apps. Comes with 20+ |
| 26 | + free UI components that you can just copy paste into your projects.{" "} |
| 27 | + {/* <br /> Now available for both HTML and React! */} |
| 28 | + </p> |
| 29 | + |
| 30 | + <div className="max-w-96 grid gap-4 mx-auto grid-cols-2"> |
| 31 | + <Link href="/components" passHref> |
| 32 | + <Button className="w-full" aria-label="Get Started with RetroUI"> |
| 33 | + Get Started |
| 34 | + </Button> |
| 35 | + </Link> |
| 36 | + <Link href="/components" passHref> |
| 37 | + <Button |
| 38 | + className="w-full" |
| 39 | + variant="outline" |
| 40 | + aria-label="Get Started with RetroUI" |
| 41 | + > |
| 42 | + Github |
| 43 | + </Button> |
| 44 | + </Link> |
| 45 | + </div> |
| 46 | + </section> |
| 47 | + |
| 48 | + {/* Features Section */} |
| 49 | + <section className="container max-w-6xl mx-auto "> |
| 50 | + <div className="grid gird-cols-1 lg:grid-cols-2 items-center"> |
| 51 | + <div> |
| 52 | + <H3>Why Use RetroUI?</H3> |
| 53 | + <H1 className="mt-4">Coz We C00l!!</H1> |
| 54 | + </div> |
| 55 | + |
| 56 | + <img |
| 57 | + alt="orange cool cat" |
| 58 | + src="/images/orange_boos.png" |
| 59 | + className="h-full w-full" |
| 60 | + /> |
| 61 | + </div> |
| 62 | + </section> |
| 63 | + |
| 64 | + {/* Component Previews Section */} |
| 65 | + <section className="container max-w-6xl mx-auto "> |
| 66 | + <H2 className="mb-16"> |
| 67 | + Our components look both old school and modern! ✨ |
| 68 | + </H2> |
| 69 | + |
| 70 | + <div className="grid gap-4 grid-cols-2 lg:grid-cols-4 mb-8"> |
| 71 | + <div className="space-y-4"> |
| 72 | + <H4>Button</H4> |
| 73 | + <Button>Click Me</Button> |
| 74 | + </div> |
| 75 | + <div className="space-y-4"> |
| 76 | + <H4>Badge</H4> |
| 77 | + <div className="space-x-2"> |
| 78 | + <Badge>Default Badge</Badge> |
| 79 | + <Badge variant="error">Error Badge</Badge> |
| 80 | + </div> |
| 81 | + </div> |
| 82 | + <div className="space-y-4"> |
| 83 | + <H4>Avatar</H4> |
| 84 | + <Avatar /> |
| 85 | + </div> |
| 86 | + <div className="space-y-4"> |
| 87 | + <H4>Input</H4> |
| 88 | + <Input /> |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + <div className="grid gap-8 grid-cols-1 lg:grid-cols-3"> |
| 92 | + <div className="space-y-4"> |
| 93 | + <H4>Textarea</H4> |
| 94 | + <Textarea /> |
| 95 | + </div> |
| 96 | + <div className="space-y-4"> |
| 97 | + <H4>Basic Card</H4> |
| 98 | + <BasicCard /> |
| 99 | + </div> |
| 100 | + <div className="space-y-4"> |
| 101 | + <H4>Accordion</H4> |
| 102 | + <Accordion /> |
| 103 | + </div> |
| 104 | + </div> |
| 105 | + </section> |
| 106 | + |
| 107 | + <section className="container max-w-6xl mx-auto "> |
| 108 | + <H2 className="mb-16"> |
| 109 | + And NO! We didn't just copy Gumroad! |
| 110 | + <br /> |
| 111 | + Inspired, if you will... 💅 |
| 112 | + </H2> |
| 113 | + |
| 114 | + <div className="grid grid-cols-1 lg:grid-cols-3 items-center"> |
| 115 | + <img |
| 116 | + src="/images/our_product_card.png" |
| 117 | + alt="our product card" |
| 118 | + className="w-80" |
| 119 | + /> |
| 120 | + <H3 className="lg:hidden mt-2 mb-12">👆 RetroUI Card</H3> |
| 121 | + |
| 122 | + <div className="hidden lg:block space-y-4"> |
| 123 | + <H3>👈 RetroUI Card</H3> |
| 124 | + <H3>Gumroad's Card 👉</H3> |
| 125 | + </div> |
| 126 | + <img |
| 127 | + src="/images/gumroad_product_card.png" |
| 128 | + alt="our product card" |
| 129 | + className="w-80" |
| 130 | + /> |
| 131 | + <H3 className="lg:hidden mt-2">👆 Gumroad's Card</H3> |
| 132 | + </div> |
| 133 | + </section> |
| 134 | + |
| 135 | + <footer className="bg-black py-8"> |
| 136 | + <div className="container max-w-6xl mx-auto flex flex-col lg:flex-row space-y-4 lg:space-y-0 justify-between items-center"> |
| 137 | + <div className="flex justify-center space-x-4"> |
| 138 | + <a |
| 139 | + href="https://twitter.com/ariflogs" |
| 140 | + className="text-primary-500 mx-2" |
| 141 | + > |
| 142 | + Twitter |
| 143 | + </a> |
| 144 | + <a |
| 145 | + href="https://github.com/ariflogs/retroui" |
| 146 | + className="text-primary-500 mx-2" |
| 147 | + > |
| 148 | + GitHub |
| 149 | + </a> |
| 150 | + <a href="/docs" className="text-primary-500 mx-2"> |
| 151 | + Documentation |
| 152 | + </a> |
| 153 | + </div> |
| 154 | + |
| 155 | + <p className="text-gray-300 text-sm"> |
| 156 | + Built by{" "} |
| 157 | + <a href="https://twitter.com/ariflogs" className="text-primary-500"> |
| 158 | + Arif Hossain |
| 159 | + </a> |
| 160 | + . |
| 161 | + </p> |
| 162 | + </div> |
| 163 | + </footer> |
| 164 | + </main> |
| 165 | + ); |
| 166 | +} |
0 commit comments