@@ -5,68 +5,92 @@ import { siteUrls } from "@/config/urls";
5
5
import { buttonVariants } from "@/components/ui/button" ;
6
6
import { Icons } from "@/components/icons" ;
7
7
import { HighlightTabs } from "@/app/(app)/_components/highlight-tabs" ;
8
+ import { EarlyAccessForm } from "@/app/(app)/_components/early-access-form" ;
9
+ import Balancer from "react-wrap-balancer" ;
10
+ import { Background } from "@/components/background" ;
8
11
9
12
export default async function HomePage ( ) {
10
13
const repoStars = await getRepoStars ( ) ;
11
14
12
15
return (
13
- < div className = "container flex flex-col items-center justify-center gap-4 py-20" >
14
- < Link
15
- href = { siteUrls . twitter }
16
- className = "flex items-center space-x-2 rounded-md bg-secondary px-3 py-2 text-sm hover:bg-secondary/80"
17
- >
18
- < span > 🎉</ span >
19
- < span className = "font-medium" >
20
- RapidLaunch is in development. Follow our progress on 𝕏
21
- (formally Twitter)
22
- </ span >
23
- < ExternalLinkIcon className = "h-4 w-4 flex-shrink-0" />
24
- </ Link >
25
- < Balance
26
- as = "h1"
27
- className = "text-center font-heading text-3xl font-bold sm:text-4xl sm:leading-tight md:text-5xl md:leading-tight"
28
- >
29
- Rapidly launch your MVP with Beautiful Starterkits, Blocks, and
30
- more.
31
- </ Balance >
32
- < Balance
33
- as = "p"
34
- className = "text-center text-muted-foreground sm:text-xl"
35
- >
36
- Elevate your development game with Rapidlaunch! Launch your apps
37
- faster with our SaaS starterkits, components, building guides,
38
- and more. Customizable. Open Source.
39
- </ Balance >
40
- < div className = "flex items-center gap-4" >
41
- < Link
42
- href = { siteUrls . docs }
43
- className = { buttonVariants ( {
44
- className : "flex items-center gap-2" ,
45
- } ) }
46
- >
47
- Early Access
48
- </ Link >
16
+ < >
17
+ < section className = "container flex flex-col items-center justify-center gap-4 py-20" >
49
18
< Link
50
- href = { siteUrls . github }
51
- className = { buttonVariants ( {
52
- className : "flex items-center" ,
53
- variant : "outline" ,
54
- } ) }
19
+ href = { siteUrls . twitter }
20
+ className = "flex items-center space-x-2 rounded-md bg-secondary px-3 py-2 text-sm hover:bg-secondary/80"
55
21
>
56
- < Icons . gitHub className = "mr-2 h-4 w-4" / >
57
- Github -
58
- < span className = "ml-1 flex items-center font-normal text-muted-foreground" >
59
- { repoStars }
22
+ < span > 🎉 </ span >
23
+ < span className = "font-medium" >
24
+ RapidLaunch is in development. Follow our progress on 𝕏
25
+ (formally Twitter)
60
26
</ span >
27
+ < ExternalLinkIcon className = "h-4 w-4 flex-shrink-0" />
61
28
</ Link >
62
- </ div >
29
+ < Balance
30
+ as = "h1"
31
+ className = "text-center font-heading text-3xl font-bold sm:text-4xl sm:leading-tight md:text-5xl md:leading-tight"
32
+ >
33
+ Rapidly launch your MVP with Beautiful Starterkits, Blocks,
34
+ and more.
35
+ </ Balance >
36
+ < Balance
37
+ as = "p"
38
+ className = "text-center text-muted-foreground sm:text-xl"
39
+ >
40
+ Elevate your development game with Rapidlaunch! Launch your
41
+ apps faster with our SaaS starterkits, components, building
42
+ guides, and more. Customizable. Open Source.
43
+ </ Balance >
44
+ < div className = "flex items-center gap-4" >
45
+ < Link
46
+ href = { siteUrls . earlyAccess }
47
+ className = { buttonVariants ( {
48
+ className : "flex items-center gap-2" ,
49
+ } ) }
50
+ >
51
+ Early Access
52
+ </ Link >
53
+ < Link
54
+ href = { siteUrls . github }
55
+ className = { buttonVariants ( {
56
+ className : "flex items-center" ,
57
+ variant : "outline" ,
58
+ } ) }
59
+ >
60
+ < Icons . gitHub className = "mr-2 h-4 w-4" />
61
+ Github -
62
+ < span className = "ml-1 flex items-center font-normal text-muted-foreground" >
63
+ { repoStars }
64
+ </ span >
65
+ </ Link >
66
+ </ div >
67
+
68
+ < HighlightTabs className = "mt-36" />
69
+ </ section >
63
70
64
- < HighlightTabs className = "mt-36" />
65
- </ div >
71
+ < section
72
+ id = "early-access"
73
+ className = "relative border-y border-border bg-muted/30 py-36"
74
+ >
75
+ < Background >
76
+ < div className = "container flex max-w-xl flex-col items-center space-y-8" >
77
+ < Balancer
78
+ as = "h2"
79
+ className = "w-full text-center font-heading text-4xl font-bold"
80
+ >
81
+ Join the Early Access List and get notified when we
82
+ launch!
83
+ </ Balancer >
84
+
85
+ < EarlyAccessForm />
86
+ </ div >
87
+ </ Background >
88
+ </ section >
89
+ </ >
66
90
) ;
67
91
}
68
92
69
- export async function getRepoStars ( ) {
93
+ async function getRepoStars ( ) {
70
94
const response = await fetch (
71
95
"https://api.github.com/repos/afarooq-oss/rapidlaunch" ,
72
96
{
@@ -82,7 +106,5 @@ export async function getRepoStars() {
82
106
? Number ( ( data as { stargazers_count ?: string } ) . stargazers_count )
83
107
: 0 ;
84
108
85
- console . log ( data ) ;
86
-
87
109
return stars ;
88
110
}
0 commit comments