11"use server" ;
22
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" ;
412import AccordionStyleDefault from "@/preview/components/accordion-style-default" ;
513import AlertStyleDefaultIcon from "@/preview/components/alert-style-with-icon" ;
614import AvatarStyleCircle from "@/preview/components/avatar-style-circle-sizes" ;
715import 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" ;
922import Image from "next/image" ;
1023import Link from "next/link" ;
1124
1225async function getContributors ( ) : Promise <
1326 { avatar : string ; username : string ; url : string } [ ]
1427> {
15- let request = await fetch (
28+ const request = await fetch (
1629 `https://api.github.com/repos/Logging-Stuff/RetroUI/contributors` ,
1730 {
1831 method : "GET" ,
@@ -22,7 +35,7 @@ async function getContributors(): Promise<
2235 }
2336 ) ;
2437
25- let contributorsList = await request . json ( ) ;
38+ const contributorsList = await request . json ( ) ;
2639 return [
2740 {
2841 avatar : "https://avatars.githubusercontent.com/u/58097221?v=4" ,
@@ -47,6 +60,19 @@ export default async function Home() {
4760 < 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]" >
4861 < 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" >
4962 < 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+
5076 < Text as = "h1" > Make your projects</ Text >
5177 < Text as = "h1" className = "text-outlined" >
5278 stand out!
@@ -282,14 +308,14 @@ export default async function Home() {
282308 </ Text >
283309 </ div >
284310
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 >
293319 </ div >
294320 < div className = "w-full" >
295321 < Image
0 commit comments