1
1
import {
2
2
ArrowRight ,
3
3
Code2 ,
4
- GithubIcon ,
5
4
Layers ,
6
5
MapPin ,
7
6
Package ,
8
7
StarIcon ,
9
8
} from 'lucide-react' ;
9
+
10
10
import Image from 'next/image' ;
11
11
import Link from 'next/link' ;
12
- import { TerminalCodeBlock } from '@/components/terminal-codeblock' ;
12
+ import Prism from '@/lib/components/bits/prism' ;
13
+ import { ResourceCards } from '@/lib/components/resource-cards' ;
14
+ import { TerminalCodeBlock } from '@/lib/components/terminal-codeblock' ;
13
15
14
16
const getStarCount = async ( ) : Promise < number | undefined > => {
15
17
try {
@@ -61,10 +63,19 @@ export default async function HomePage({
61
63
62
64
return (
63
65
< main className = "flex min-h-[calc(100vh-3.5rem)] flex-col" >
66
+ < div className = { 'absolute-fill dark:opacity-100 opacity-60' } >
67
+ < Prism
68
+ animationType = { 'rotate' }
69
+ scale = { 1 }
70
+ offset = { { y : 120 } }
71
+ noise = { 0 }
72
+ hueShift = { 0.7 }
73
+ />
74
+ </ div >
64
75
{ /* Hero Section */ }
65
76
< section className = "relative flex flex-col items-center justify-center px-6 py-32 text-center" >
66
77
< div className = "absolute inset-0 -z-10" >
67
- < div className = "absolute inset-0 bg-gradient-to-b from-green-500/10 via-transparent to-transparent" />
78
+ < div className = "absolute inset-0 bg-gradient-to-b from-green-500/50 dark:from-green-500/20 via-transparent to-transparent" />
68
79
< div className = "absolute inset-0 bg-[radial-gradient(ellipse_at_center,_var(--tw-gradient-stops))] from-green-500/20 via-transparent to-transparent" />
69
80
</ div >
70
81
@@ -73,11 +84,11 @@ export default async function HomePage({
73
84
src = "/logo.png"
74
85
width = { 200 }
75
86
height = { 200 }
76
- className = "relative z-10 drop-shadow-xl transition-transform duration-300 hover:scale-105 drop-shadow-orange-400 dark:drop-shadow-blue-400 "
87
+ className = "relative z-10 drop-shadow-xl transition-transform duration-300 hover:scale-105 drop-shadow-slate-100 dark:drop-shadow-slate-50 "
77
88
/>
78
89
79
90
< h1 className = "mb-6 text-5xl font-bold tracking-tight md:text-6xl lg:text-7xl" >
80
- < span className = "bg-gradient-to-r from-green-600 to-green-500 bg-clip-text text-transparent" >
91
+ < span className = " dark:text-shadow-neutral-200 dark:text-shadow-lg bg-gradient-to-r from-green-600 to-green-500 bg-clip-text text-transparent" >
81
92
Naver Map
82
93
</ span >
83
94
< span className = "block mt-2 text-2xl text-fd-muted-foreground md:text-3xl lg:text-4xl font-normal" >
@@ -229,61 +240,7 @@ export default async function HomePage({
229
240
</ section >
230
241
231
242
{ /* Resources Section */ }
232
- < section className = "px-6 py-16" >
233
- < div className = "mx-auto max-w-6xl" >
234
- < h2 className = "mb-12 text-center text-3xl font-bold" > Explore More</ h2 >
235
- < div className = "grid gap-6 md:grid-cols-2 lg:grid-cols-4" >
236
- < Link
237
- href = { `/${ lang } /docs` }
238
- className = "group rounded-lg border border-fd-border bg-fd-card p-6 transition-all hover:border-fd-primary/50 hover:bg-fd-muted/50"
239
- >
240
- < h3 className = "font-semibold group-hover:text-fd-primary" >
241
- Documentation
242
- </ h3 >
243
- < p className = "text-sm text-fd-muted-foreground" >
244
- Complete API reference and guides
245
- </ p >
246
- </ Link >
247
- < Link
248
- href = { `/${ lang } /docs/examples` }
249
- className = "group rounded-lg border border-fd-border bg-fd-card p-6 transition-all hover:border-fd-primary/50 hover:bg-fd-muted/50"
250
- >
251
- < h3 className = "font-semibold group-hover:text-fd-primary" >
252
- Examples
253
- </ h3 >
254
- < p className = "text-sm text-fd-muted-foreground" >
255
- Sample implementations and demos
256
- </ p >
257
- </ Link >
258
- < a
259
- href = "https://navermaps.github.io/ios-map-sdk/guide-ko/"
260
- target = "_blank"
261
- rel = "noopener noreferrer"
262
- className = "group rounded-lg border border-fd-border bg-fd-card p-6 transition-all hover:border-fd-primary/50 hover:bg-fd-muted/50"
263
- >
264
- < h3 className = "font-semibold group-hover:text-fd-primary" >
265
- iOS SDK
266
- </ h3 >
267
- < p className = "text-sm text-fd-muted-foreground" >
268
- Native iOS documentation
269
- </ p >
270
- </ a >
271
- < a
272
- href = "https://navermaps.github.io/android-map-sdk/guide-ko/"
273
- target = "_blank"
274
- rel = "noopener noreferrer"
275
- className = "group rounded-lg border border-fd-border bg-fd-card p-6 transition-all hover:border-fd-primary/50 hover:bg-fd-muted/50"
276
- >
277
- < h3 className = "font-semibold group-hover:text-fd-primary" >
278
- Android SDK
279
- </ h3 >
280
- < p className = "text-sm text-fd-muted-foreground" >
281
- Native Android documentation
282
- </ p >
283
- </ a >
284
- </ div >
285
- </ div >
286
- </ section >
243
+ < ResourceCards lang = { lang } />
287
244
</ main >
288
245
) ;
289
246
}
0 commit comments