@@ -23,6 +23,7 @@ import { screens } from "@/lib/utils/screen"
23
23
import BuilderCard from "./_components/BuilderCard"
24
24
import BuilderSwiper from "./_components/BuilderSwiper/lazy"
25
25
import SpeedRunCard from "./_components/SpeedRunCard"
26
+ import VideoCourseCard from "./_components/VideoCourseCard"
26
27
import VideoCourseSwiper from "./_components/VideoCourseSwiper/lazy"
27
28
import { getBuilderPaths , getVideoCourses } from "./utils"
28
29
@@ -118,7 +119,7 @@ const DevelopersPage = async ({
118
119
sizes = { `(max-width: ${ screens . sm } ) 100vw, calc(50vw - 14rem)` }
119
120
className = "h-56 object-cover"
120
121
/>
121
- < div className = "" >
122
+ < div >
122
123
< h3 > { t ( "page-developers-jump-right-in-title" ) } </ h3 >
123
124
< p className = "text-sm text-body-medium" >
124
125
{ t ( "page-developers-quickstart-scaffold-subtext" ) } { " " }
@@ -164,7 +165,7 @@ const DevelopersPage = async ({
164
165
sizes = { `(max-width: ${ screens . sm } ) 100vw, calc(50vw - 14rem)` }
165
166
className = "max-h-56 w-full object-cover object-top"
166
167
/>
167
- < div className = "" >
168
+ < div >
168
169
< h3 > { t ( "page-developers-get-help-title" ) } </ h3 >
169
170
< p className = "text-sm text-body-medium" >
170
171
{ t ( "page-developers-get-help-desc" ) }
@@ -197,7 +198,7 @@ const DevelopersPage = async ({
197
198
sizes = { `(max-width: ${ screens . sm } ) 100vw, calc(50vw - 14rem)` }
198
199
className = "-my-2 max-h-60 w-full object-contain" // -my-2 accounts for image shadows
199
200
/>
200
- < div className = "" >
201
+ < div >
201
202
< h3 > { t ( "page-developers-resources-title" ) } </ h3 >
202
203
< p className = "text-sm text-body-medium" >
203
204
{ t ( "page-developers-resources-desc" ) }
@@ -223,7 +224,7 @@ const DevelopersPage = async ({
223
224
sizes = { `(max-width: ${ screens . sm } ) 100vw, calc(50vw - 14rem)` }
224
225
className = "max-h-56 w-full object-contain"
225
226
/>
226
- < div className = "" >
227
+ < div >
227
228
< h3 > { t ( "page-developers-tutorials-title" ) } </ h3 >
228
229
< p className = "text-sm text-body-medium" >
229
230
{ t ( "page-developers-tutorials-desc" ) }
@@ -246,7 +247,19 @@ const DevelopersPage = async ({
246
247
< h2 > { t ( "page-developers-video-courses-title" ) } </ h2 >
247
248
< p > { t ( "page-developers-video-courses-desc" ) } </ p >
248
249
249
- < div className = "w-screen max-xl:-ms-8 xl:w-full" >
250
+ { /* DESKTOP */ }
251
+ < div className = "flex w-screen gap-6 overflow-x-auto max-2xl:-mx-8 max-2xl:pe-8 max-sm:hidden lg:gap-8 2xl:w-full" >
252
+ { courses . map ( ( course , idx ) => (
253
+ < VideoCourseCard
254
+ key = { idx }
255
+ course = { course }
256
+ className = "w-[20%] min-w-[240px] max-w-[271px] max-2xl:first:ms-8"
257
+ />
258
+ ) ) }
259
+ </ div >
260
+
261
+ { /* MOBILE */ }
262
+ < div className = "w-screen max-xl:-ms-8 sm:hidden xl:w-full" >
250
263
< VideoCourseSwiper courses = { courses } />
251
264
</ div >
252
265
</ Section >
0 commit comments