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!
@@ -282,14 +308,14 @@ export default async function Home() {
282
308
</ Text >
283
309
</ div >
284
310
285
- < Button id = "checkout-figma-kit" data-umami-event = "checkout-figma-kit" >
286
- < Link
287
- href = "https://buy.polar.sh/polar_cl_lDjYITXPX3VSsoGl2UfxIZqiinJ9xVn4y9YAP1ApYcJ "
288
- target = "_blank "
289
- >
290
- Checkout Now
291
- </ Link >
292
- </ Button >
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 >
293
319
</ div >
294
320
< div className = "w-full" >
295
321
< Image
0 commit comments