@@ -11,6 +11,7 @@ import { cn } from "@/lib/cn";
1111import { Card as FeatureCard } from "@/components/homepage/bento" ;
1212import { YouTubePlayer } from "@prisma-docs/ui/components/youtube-player" ;
1313import Image from "next/image" ;
14+ import Link from "next/link" ;
1415
1516const statsSection = [
1617 {
@@ -44,13 +45,16 @@ const prismaPostgresQuickstartUrl =
4445const CardFooter = ( ) => (
4546 < >
4647 < Separator className = "my-6" />
47- < div className = "flex flex-col md:flex-row justify-between w-full gap-8" >
48+ < div className = "flex flex-col items-center md:items-stretch md:flex-row justify-between w-full gap-8" >
4849 { badge_list . map ( ( badge : any ) => (
49- < div className = "flex flex-col md:flex-row gap-2 md:gap-6 md:items-center" key = { badge . title } >
50+ < div
51+ className = "flex flex-col items-center md:items-center md:flex-row gap-2 md:gap-6"
52+ key = { badge . title }
53+ >
5054 < h6 className = "font-semibold text-2xs text-foreground-neutral uppercase" >
5155 { badge . title }
5256 </ h6 >
53- < div className = "flex gap-3" >
57+ < div className = "flex justify-center md:justify-start gap-3" >
5458 { badge . list &&
5559 badge . list . map ( ( item : any ) => (
5660 < Button
@@ -115,10 +119,10 @@ const twoCol = [
115119 Prisma's compatibility with popular tools ensures no stack lock-in, lower integration
116120 costs, and smooth transitions.
117121 </ p >
118- < a href = "/stack" className = "link-btn orm" >
122+ < Link href = "/stack" className = "link-btn orm w-fit mx-auto lg:mx-0 " >
119123 < span > Learn more</ span >
120124 < i className = "fa-regular fa-arrow-right ml-2" />
121- </ a >
125+ </ Link >
122126 </ div >
123127 ) ,
124128 imageUrl : null ,
@@ -148,7 +152,7 @@ const twoCol_2 = [
148152 A meaningful comparison of database query latencies across database providers and ORM
149153 libraries in the Node.js & TypeScript ecosystem .
150154 </ p >
151- < Button variant = "orm" size = "xl" href = "https://benchmarks.prisma.io" className = "w-fit" >
155+ < Button variant = "orm" size = "xl" href = "https://benchmarks.prisma.io" className = "w-fit mx-auto lg:w-full " >
152156 < span > Explore Benchmarks</ span >
153157 < i className = "fa-regular fa-arrow-right ml-2!" />
154158 </ Button >
@@ -180,10 +184,10 @@ const twoCol_2 = [
180184 intuitive, both for SQL veterans and developers brand new to databases. The
181185 auto-completion helps you figure out your query without the need for documentation.
182186 </ p >
183- < a href = "/client" className = "link-btn orm" >
187+ < Link href = "/client" className = "link-btn orm w-fit mx-auto lg:mx-0 " >
184188 < span > Learn more</ span >
185189 < i className = "fa-regular fa-arrow-right ml-2" />
186- </ a >
190+ </ Link >
187191 </ div >
188192 ) ,
189193 imageUrl : "/illustrations/orm/orm_2" ,
@@ -280,7 +284,7 @@ export default function ORM() {
280284 < JsonLd id = "orm-software-application" data = { ormStructuredData } />
281285 < div className = "hero pt-40 -mt-24 flex items-end justify-center px-4 relative" >
282286 < div className = "absolute inset-0 pointer-events-none z-1 bg-[linear-gradient(180deg,var(--color-foreground-orm)_0%,var(--color-background-default)_100%)] opacity-20" />
283- < div className = "content relative z-2 my-12 py-12 flex flex-col gap-8" >
287+ < div className = "content relative z-2 flex flex-col gap-8" >
284288 < div className = "flex flex-col gap-4 items-center text-center" >
285289 < div className = "flex items-center gap-2 text-foreground-orm-weak uppercase tracking-widest text-sm font-sans-display font-black" >
286290 < i className = "fa-solid fa-database" />
@@ -318,7 +322,7 @@ export default function ORM() {
318322 </ div >
319323 </ div >
320324 </ div >
321- < div className = "my-12 flex gap-30 w-fit mx-auto px-4 md :px-40" >
325+ < div className = "my-12 flex flex-col sm:flex-row gap-30 w-fit mx-auto px-4 sm :px-40" >
322326 { statsSection ?. map ( ( stat : any , index : number ) => (
323327 < InfoStats
324328 key = { index }
@@ -339,15 +343,20 @@ export default function ORM() {
339343 < CardSection cardSection = { twoCol_2 } />
340344 < div className = "grid md:grid-cols-2 gap-9" >
341345 { twoCol_3 . map ( ( stat , index ) => (
342- < div key = { stat . title } className = "flex flex-col gap-4" >
346+ < div key = { stat . title } className = "flex flex-col items-center md:items-start gap-4" >
343347 < Action size = "4xl" color = "orm" className = { cn ( index === 0 && "p-0" , "relative" ) } >
344348 < Image src = { stat . icon } alt = { stat . title } fill loading = "lazy" />
345349 </ Action >
346- < h4 className = "text-2xl font-sans-display stretch-display text-foreground-neutral" >
350+ < h4 className = "text-2xl text-center md:text-left font-sans-display stretch-display text-foreground-neutral" >
347351 { stat . title }
348352 </ h4 >
349- < p className = "text-foreground-neutral-weak" > { stat . description } </ p >
350- < Button variant = "default-stronger" href = { stat . btn . url } size = "xl" className = "w-fit" >
353+ < p className = "text-center md:text-left text-foreground-neutral-weak" > { stat . description } </ p >
354+ < Button
355+ variant = "default-stronger"
356+ href = { stat . btn . url }
357+ size = "xl"
358+ className = "w-fit mx-auto md:mx-0"
359+ >
351360 < span >
352361 { stat . btn . label } { stat . btn . icon && < i className = { cn ( "ml-2" , stat . btn . icon ) } /> }
353362 </ span >
0 commit comments