@@ -20,7 +20,8 @@ import { EventGrid } from "./events/EventGrid";
20
20
export default async function Home ( ) {
21
21
const games = await reader ( ) . collections . games . all ( ) ;
22
22
const carouselItems = games
23
- . filter ( ( a ) => a . entry . status === "beta" || a . entry . status === "mainnet" )
23
+ . filter ( ( a ) => a . slug === "realms-eternum" )
24
+ . concat ( games . filter ( ( a ) => ( a . slug !== "realms-eternum" && ( a . entry . status === "beta" || a . entry . status === "mainnet" ) ) ) )
24
25
. map ( ( game ) => ( {
25
26
alt : game . entry . title ,
26
27
src : `/content/games/${ game . slug } /${ game . entry . coverImage } ` ,
@@ -36,50 +37,50 @@ export default async function Home() {
36
37
{ carouselItems . map ( ( item , index ) => (
37
38
< CarouselItem key = { index } >
38
39
< Link href = { item . href } >
39
- < div className = "relative h-[700px] border-b" >
40
+ < div className = "relative h-[300px] sm:h-[400px] md:h-[500px] lg:h-[ 700px] border-b" >
40
41
< Image
41
42
src = { item . src }
42
43
alt = { item . alt }
43
44
width = { 1900 }
44
45
height = { 1200 }
45
46
className = "h-full w-full rounded object-cover"
46
47
/>
47
- < div className = "absolute bottom-0 left-0 right-0 rounded bg-gradient-to-r from-black to-transparent p-8" >
48
- < h2 className = "text-4xl" > { item . title } </ h2 >
49
- < p className = "mb-4 text-xl" > { item . description } </ p >
50
- < Button variant = "outline" > View game</ Button >
48
+ < div className = "absolute bottom-0 left-0 right-0 rounded bg-gradient-to-r from-black to-transparent p-4 sm:p-6 md:p- 8" >
49
+ < h2 className = "text-xl sm:text-2xl md:text-3xl lg:text- 4xl" > { item . title } </ h2 >
50
+ < p className = "mb-2 sm:mb-3 md:mb-4 text-sm sm:text-base md:text-lg lg: text-xl" > { item . description } </ p >
51
+ < Button variant = "outline" className = "text-sm sm:text-base" > View game</ Button >
51
52
</ div >
52
53
</ div >
53
54
</ Link >
54
55
</ CarouselItem >
55
56
) ) }
56
57
</ CarouselContent >
57
- < CarouselPrevious className = "left-2 sm:left-8" />
58
- < CarouselNext className = "right-2 sm:right-8" />
58
+ < CarouselPrevious className = "left-2 sm:left-4 md:left-6 lg:left- 8" />
59
+ < CarouselNext className = "right-2 sm:right-4 md:right-6 lg:right- 8" />
59
60
</ Carousel >
60
- < div className = "px-4 sm:px-8" >
61
+ < div className = "px-4 sm:px-6 md:px- 8" >
61
62
< Partners />
62
63
63
- < h2 className = "mb-4 font-sans text-2xl sm:text-3xl" > All Games</ h2 >
64
- < div className = "grid grid-cols-1 gap-4 md :grid-cols-2 lg:grid-cols-3" >
64
+ < h2 className = "mb-4 font-sans text-xl sm:text-2xl md :text-3xl" > All Games</ h2 >
65
+ < div className = "grid grid-cols-1 gap-8 sm :grid-cols-2 lg:grid-cols-3" >
65
66
{ games . map ( ( game , index ) => (
66
67
< GameCard key = { index } game = { game . entry } slug = { game . slug } />
67
68
) ) }
68
69
</ div >
69
70
70
- < div className = "my-24" >
71
- < h2 className = "mb-4 font-sans text-2xl sm:text-3xl" > News</ h2 >
71
+ < div className = "my-12 sm:my-16 md:my-20 lg:my- 24" >
72
+ < h2 className = "mb-4 font-sans text-xl sm:text-2xl md :text-3xl" > News</ h2 >
72
73
< BlogGrid />
73
74
</ div >
74
75
75
- < div className = "my-24" >
76
- < h2 className = "mb-4 font-sans text-2xl sm:text-3xl" > Events</ h2 >
76
+ < div className = "my-12 sm:my-16 md:my-20 lg:my- 24" >
77
+ < h2 className = "mb-4 font-sans text-xl sm:text-2xl md :text-3xl" > Events</ h2 >
77
78
< EventGrid isHomepage = { true } />
78
79
</ div >
79
80
80
- < hr className = "my-8 border" />
81
- < div className = "my-20" >
82
- < h2 className = "mb-4 font-sans text-2xl sm:text-3xl" >
81
+ < hr className = "my-6 sm:my- 8 border" />
82
+ < div className = "my-12 sm:my-16 md:my- 20" >
83
+ < h2 className = "mb-4 font-sans text-xl sm:text-2xl md :text-3xl" >
83
84
Featured Collections
84
85
</ h2 >
85
86
< CollectionsList />
0 commit comments