1
1
"use server" ;
2
2
3
- import { Button , Text , Input , Textarea , Card , Avatar } from "@/packages/ui" ;
3
+ import {
4
+ Button ,
5
+ Text ,
6
+ Input ,
7
+ Textarea ,
8
+ Card ,
9
+ Avatar ,
10
+ Badge ,
11
+ } from "@/packages/ui" ;
4
12
import AccordionStyleDefault from "@/preview/components/accordion-style-default" ;
5
13
import AlertStyleDefaultIcon from "@/preview/components/alert-style-with-icon" ;
6
14
import AvatarStyleCircle from "@/preview/components/avatar-style-circle-sizes" ;
7
15
import BadgeStyleVariants from "@/preview/components/badge-style-variants" ;
8
- import { GithubIcon , HeartIcon , MessageCircle } from "lucide-react" ;
16
+ import {
17
+ ArrowRightIcon ,
18
+ GithubIcon ,
19
+ HeartIcon ,
20
+ MessageCircle ,
21
+ } from "lucide-react" ;
9
22
import Image from "next/image" ;
10
23
import Link from "next/link" ;
11
24
12
25
async function getContributors ( ) : Promise <
13
26
{ avatar : string ; username : string ; url : string } [ ]
14
27
> {
15
- let request = await fetch (
28
+ const request = await fetch (
16
29
`https://api.github.com/repos/Logging-Stuff/RetroUI/contributors` ,
17
30
{
18
31
method : "GET" ,
@@ -22,7 +35,7 @@ async function getContributors(): Promise<
22
35
}
23
36
) ;
24
37
25
- let contributorsList = await request . json ( ) ;
38
+ const contributorsList = await request . json ( ) ;
26
39
return [
27
40
{
28
41
avatar : "https://avatars.githubusercontent.com/u/58097221?v=4" ,
@@ -47,6 +60,19 @@ export default async function Home() {
47
60
< div className = "bg-[url('/images/banner_void_2.svg')] bg-cover bg-no-repeat bg-center flex flex-col items-center h-[1900px] lg:h-[1400px]" >
48
61
< section className = "container max-w-6xl mx-auto px-4 lg:px-0 text-gray-900 flex justify-center items-center lg:gap-28 xl:gap-32 my-28" >
49
62
< div className = "text-center lg:text-left w-full lg:w-2/3" >
63
+ < Link
64
+ id = "checkout-figma-kit"
65
+ data-umami-event = "checkout-figma-kit"
66
+ href = "https://buy.polar.sh/polar_cl_lDjYITXPX3VSsoGl2UfxIZqiinJ9xVn4y9YAP1ApYcJ"
67
+ target = "_blank"
68
+ className = "mb-6 inline-block"
69
+ >
70
+ < Badge >
71
+ Checkout Retro UI Figma Kit{ " " }
72
+ < ArrowRightIcon className = "ml-2 h-4 w-4 inline-block" />
73
+ </ Badge >
74
+ </ Link >
75
+
50
76
< Text as = "h1" > Make your projects</ Text >
51
77
< Text as = "h1" className = "text-outlined" >
52
78
stand out!
@@ -155,7 +181,10 @@ export default async function Home() {
155
181
156
182
< section className = "container max-w-6xl mx-auto px-4 lg:px-0 flex flex-col lg:flex-row gap-12 lg:gap-16 lg:grid-cols-2 my-36" >
157
183
< div className = "w-full lg:w-3/5" >
158
- < Text as = "h2" > Easily Customize to Your Own Needs! 🛠️</ Text >
184
+ < Text as = "h2" >
185
+ Easily < span className = "text-outlined" > Customize</ span > to Your Own
186
+ Needs! 🛠️
187
+ </ Text >
159
188
< div className = "flex flex-col space-y-1 mt-6 mb-8 text-muted" >
160
189
< Text className = "text-xl" >
161
190
Copy-Paste Ready: Components that you can just copy paste.
@@ -183,7 +212,8 @@ export default async function Home() {
183
212
184
213
< section className = "container max-w-6xl mx-auto bg-[url('/images/starts_bg.svg')] bg-cover bg-no-repeat py-12" >
185
214
< Text as = "h2" className = "text-center mb-28" >
186
- A Growing Community of < br /> Developers and Designers.
215
+ A < span className = "text-outlined" > Growing</ span > Community of < br /> { " " }
216
+ Developers and Designers.
187
217
</ Text >
188
218
189
219
< div className = "grid grid-cols-1 md:grid-cols-2 gap-12 max-w-2xl mx-auto" >
@@ -192,7 +222,7 @@ export default async function Home() {
192
222
Github Stars
193
223
</ Text >
194
224
< Text as = "h1" className = "text-outlined text-7xl lg:text-8xl" >
195
- 150 +
225
+ 230 +
196
226
</ Text >
197
227
< Image
198
228
src = "/images/shooting_star.svg"
@@ -220,6 +250,83 @@ export default async function Home() {
220
250
</ div >
221
251
</ section >
222
252
253
+ < section className = "container max-w-6xl mx-auto px-4 lg:px-0 my-48" >
254
+ < Text as = "h2" className = "text-center mb-28" >
255
+ Works With Both < span className = "text-outlined" > SSR</ span > and{ " " }
256
+ < span className = "text-outlined" > SPA</ span > Applications.
257
+ </ Text >
258
+
259
+ < div className = "grid grid-cols-5 lg:grid-cols-5 gap-8 lg:gap-6 max-w-2xl mx-auto items-center" >
260
+ < Image
261
+ src = "/images/logos/vite.png"
262
+ alt = "vite"
263
+ width = { 60 }
264
+ height = { 60 }
265
+ />
266
+ < Image
267
+ src = "/images/logos/nextjs.png"
268
+ alt = "nextjs"
269
+ width = { 60 }
270
+ height = { 60 }
271
+ />
272
+ < Image
273
+ src = "/images/logos/remix.png"
274
+ alt = "remix"
275
+ width = { 55 }
276
+ height = { 55 }
277
+ />
278
+ < Image
279
+ src = "/images/logos/astro.png"
280
+ alt = "astro"
281
+ width = { 55 }
282
+ height = { 55 }
283
+ />
284
+ < Image
285
+ src = "/images/logos/gatsby.png"
286
+ alt = "gatsby"
287
+ width = { 60 }
288
+ height = { 60 }
289
+ />
290
+ </ div >
291
+ </ section >
292
+
293
+ < section className = "container max-w-6xl mx-auto px-4 lg:px-0 grid grid-cols-1 lg:grid-cols-2 items-center my-36" >
294
+ < div className = "w-full" >
295
+ < Text as = "h2" >
296
+ The < span className = "text-outlined" > Figma</ span > UI Kit You Were
297
+ Looking For!
298
+ </ Text >
299
+ < div className = "flex flex-col space-y-1 mt-6 mb-8 text-muted" >
300
+ < Text className = "text-xl" >
301
+ - Based on the design foundation of RetroUI.
302
+ </ Text >
303
+ < Text className = "text-xl" >
304
+ - Comes with 60+ UI elements like cards, modals, stats, etc .
305
+ </ Text >
306
+ < Text className = "text-xl" >
307
+ - Get Lifetime update of new versions.
308
+ </ Text >
309
+ </ div >
310
+
311
+ < Link
312
+ id = "checkout-figma-kit"
313
+ data-umami-event = "checkout-figma-kit"
314
+ href = "https://buy.polar.sh/polar_cl_lDjYITXPX3VSsoGl2UfxIZqiinJ9xVn4y9YAP1ApYcJ"
315
+ target = "_blank"
316
+ >
317
+ < Button > Checkout Now</ Button >
318
+ </ Link >
319
+ </ div >
320
+ < div className = "w-full" >
321
+ < Image
322
+ src = "/images/figma-banner.png"
323
+ width = { 800 }
324
+ height = { 800 }
325
+ alt = "retroui code showcase"
326
+ />
327
+ </ div >
328
+ </ section >
329
+
223
330
< section className = "container max-w-6xl mx-auto border-2 bg-primary-400 border-black py-16 px-4 lg:p-16 my-36" >
224
331
< Text as = "h2" className = "text-center mb-2" >
225
332
Community Contributors
0 commit comments