@@ -581,6 +581,38 @@ module CuratedResources = {
581
581
},
582
582
]
583
583
584
+ let templates = [
585
+ {
586
+ imgSrc : "/static/nextjs_starter_logo.svg" ,
587
+ title : <>
588
+ <div > {React .string ("ReScript & " )} </div >
589
+ <div className = "text-gray-40" > {React .string ("NextJS" )} </div >
590
+ </>,
591
+ descr : "Get started with our NextJS starter template." ,
592
+ href : "https://github.com/rescript-lang/create-rescript-app/blob/master/templates/rescript-template-nextjs/README.md" ,
593
+ },
594
+ {
595
+ imgSrc : "/static/vitejs_starter_logo.svg" ,
596
+ title : <>
597
+ <div > {React .string ("ReScript & " )} </div >
598
+ <div style = {ReactDOM .Style .make (~color = "#6571FB" , ())}> {React .string ("ViteJS" )} </div >
599
+ </>,
600
+ descr : "Get started with ViteJS and ReScript." ,
601
+ href : "https://github.com/rescript-lang/create-rescript-app/blob/master/templates/rescript-template-vite/README.md" ,
602
+ },
603
+ // {
604
+ // imgSrc: "/static/nodejs_starter_logo.svg",
605
+ // title: <>
606
+ // <div> {React.string("ReScript & ")} </div>
607
+ // <div className="text-gray-40" style={ReactDOM.Style.make(~color="#699D65", ())}>
608
+ // {React.string("NodeJS")}
609
+ // </div>
610
+ // </>,
611
+ // descr: "Get started with ReScript targeting the Node platform.",
612
+ // href: "/",
613
+ // },
614
+ ]
615
+
584
616
@react.component
585
617
let make = () => {
586
618
<section className = "bg-gray-100 w-full pb-40 pt-20 " >
@@ -618,6 +650,29 @@ module CuratedResources = {
618
650
)
619
651
-> React .array }
620
652
</div >
653
+ //Container for templates
654
+ <div className = "px-5 md:px-8 max-w-1280 mx-auto my-20" >
655
+ <div
656
+ className = "body-lg text-center z-2 relative text-gray-40 w-[8rem] mx-auto bg-gray-100" >
657
+ {React .string ("Templates" )}
658
+ </div >
659
+ <hr className = "bg-gray-80 h-px border-0 relative top-[-12px]" />
660
+ </div >
661
+ <div
662
+ className = "grid grid-flow-col grid-cols-2 lg:grid-cols-3 lg:grid-rows-1 gap-2 md:gap-4 lg:gap-8 max-w-1280 px-5 md:px-8 mx-auto" >
663
+ {templates
664
+ -> Belt .Array .mapWithIndex ((i , card ) =>
665
+ <a
666
+ key = {Belt .Int .toString (i )}
667
+ href = {card .href }
668
+ className = "hover:bg-gray-80 bg-gray-90 px-5 pb-8 relative rounded-xl min-w-[200px]" >
669
+ <img className = "h-12 absolute mt-5" src = card .imgSrc />
670
+ <h5 className = "text-gray-10 hl-4 mt-32 h-12" > {card .title } </h5 >
671
+ <div className = "text-gray-40 mt-4 body-sm" > {React .string (card .descr )} </div >
672
+ </a >
673
+ )
674
+ -> React .array }
675
+ </div >
621
676
</div >
622
677
</section >
623
678
}
0 commit comments