From 7e991f6dc59e257f2f5e1913cae98bea08db2cd1 Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Sun, 10 Dec 2023 20:39:35 -0300 Subject: [PATCH 1/3] remove templates section --- src/layouts/LandingPageLayout.res | 112 +++++++++++++++--------------- 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/src/layouts/LandingPageLayout.res b/src/layouts/LandingPageLayout.res index 3197e4ea5..d1e3fdf91 100644 --- a/src/layouts/LandingPageLayout.res +++ b/src/layouts/LandingPageLayout.res @@ -581,39 +581,39 @@ module CuratedResources = { }, ] - let templates = [ - { - imgSrc: "/static/nextjs_starter_logo.svg", - title: <> -
{React.string("ReScript & ")}
-
{React.string("NextJS")}
- , - descr: "Get started with our NextJS starter template.", - href: "https://github.com/ryyppy/rescript-nextjs-template", - }, - /* - { - imgSrc: "/static/vitejs_starter_logo.svg", - title: <> -
{React.string("ReScript & ")}
-
{React.string("ViteJS")}
- , - descr: "Get started with ViteJS and ReScript.", - href: "/", - }, - { - imgSrc: "/static/nodejs_starter_logo.svg", - title: <> -
{React.string("ReScript & ")}
-
- {React.string("NodeJS")} -
- , - descr: "Get started with ReScript targeting the Node platform.", - href: "/", - }, - */ - ] + // let templates = [ + // { + // imgSrc: "/static/nextjs_starter_logo.svg", + // title: <> + //
{React.string("ReScript & ")}
+ //
{React.string("NextJS")}
+ // , + // descr: "Get started with our NextJS starter template.", + // href: "https://github.com/ryyppy/rescript-nextjs-template", + // }, + // /* + // { + // imgSrc: "/static/vitejs_starter_logo.svg", + // title: <> + //
{React.string("ReScript & ")}
+ //
{React.string("ViteJS")}
+ // , + // descr: "Get started with ViteJS and ReScript.", + // href: "/", + // }, + // { + // imgSrc: "/static/nodejs_starter_logo.svg", + // title: <> + //
{React.string("ReScript & ")}
+ //
+ // {React.string("NodeJS")} + //
+ // , + // descr: "Get started with ReScript targeting the Node platform.", + // href: "/", + // }, + // */ + // ] @react.component let make = () => { @@ -652,29 +652,29 @@ module CuratedResources = { ) ->React.array} - //Container for templates -
-
- {React.string("Templates")} -
-
-
-
- {templates - ->Belt.Array.mapWithIndex((i, card) => - - -
{card.title}
-
{React.string(card.descr)}
-
- ) - ->React.array} -
+ // //Container for templates + //
+ //
+ // {React.string("Templates")} + //
+ //
+ //
+ //
+ // {templates + // ->Belt.Array.mapWithIndex((i, card) => + // + // + //
{card.title}
+ //
{React.string(card.descr)}
+ //
+ // ) + // ->React.array} + //
} From 169dd3eecae65c670c2bc9e52e0f34425d16d11f Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Sun, 10 Dec 2023 20:42:00 -0300 Subject: [PATCH 2/3] remove comment --- src/layouts/LandingPageLayout.res | 57 ------------------------------- 1 file changed, 57 deletions(-) diff --git a/src/layouts/LandingPageLayout.res b/src/layouts/LandingPageLayout.res index d1e3fdf91..9996d72fd 100644 --- a/src/layouts/LandingPageLayout.res +++ b/src/layouts/LandingPageLayout.res @@ -581,40 +581,6 @@ module CuratedResources = { }, ] - // let templates = [ - // { - // imgSrc: "/static/nextjs_starter_logo.svg", - // title: <> - //
{React.string("ReScript & ")}
- //
{React.string("NextJS")}
- // , - // descr: "Get started with our NextJS starter template.", - // href: "https://github.com/ryyppy/rescript-nextjs-template", - // }, - // /* - // { - // imgSrc: "/static/vitejs_starter_logo.svg", - // title: <> - //
{React.string("ReScript & ")}
- //
{React.string("ViteJS")}
- // , - // descr: "Get started with ViteJS and ReScript.", - // href: "/", - // }, - // { - // imgSrc: "/static/nodejs_starter_logo.svg", - // title: <> - //
{React.string("ReScript & ")}
- //
- // {React.string("NodeJS")} - //
- // , - // descr: "Get started with ReScript targeting the Node platform.", - // href: "/", - // }, - // */ - // ] - @react.component let make = () => {
@@ -652,29 +618,6 @@ module CuratedResources = { ) ->React.array} - // //Container for templates - //
- //
- // {React.string("Templates")} - //
- //
- //
- //
- // {templates - // ->Belt.Array.mapWithIndex((i, card) => - // - // - //
{card.title}
- //
{React.string(card.descr)}
- //
- // ) - // ->React.array} - //
} From 51ec85fbb1ada514d5530b021c089e5af4f90cdb Mon Sep 17 00:00:00 2001 From: Pedro Castro Date: Sat, 6 Jan 2024 21:59:35 -0300 Subject: [PATCH 3/3] add link to new templates --- src/layouts/LandingPageLayout.res | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/src/layouts/LandingPageLayout.res b/src/layouts/LandingPageLayout.res index 9996d72fd..a139307ae 100644 --- a/src/layouts/LandingPageLayout.res +++ b/src/layouts/LandingPageLayout.res @@ -581,6 +581,38 @@ module CuratedResources = { }, ] + let templates = [ + { + imgSrc: "/static/nextjs_starter_logo.svg", + title: <> +
{React.string("ReScript & ")}
+
{React.string("NextJS")}
+ , + descr: "Get started with our NextJS starter template.", + href: "https://github.com/rescript-lang/create-rescript-app/blob/master/templates/rescript-template-nextjs/README.md", + }, + { + imgSrc: "/static/vitejs_starter_logo.svg", + title: <> +
{React.string("ReScript & ")}
+
{React.string("ViteJS")}
+ , + descr: "Get started with ViteJS and ReScript.", + href: "https://github.com/rescript-lang/create-rescript-app/blob/master/templates/rescript-template-vite/README.md", + }, + // { + // imgSrc: "/static/nodejs_starter_logo.svg", + // title: <> + //
{React.string("ReScript & ")}
+ //
+ // {React.string("NodeJS")} + //
+ // , + // descr: "Get started with ReScript targeting the Node platform.", + // href: "/", + // }, + ] + @react.component let make = () => {
@@ -618,6 +650,29 @@ module CuratedResources = { ) ->React.array} + //Container for templates +
+
+ {React.string("Templates")} +
+
+
+
+ {templates + ->Belt.Array.mapWithIndex((i, card) => + + +
{card.title}
+
{React.string(card.descr)}
+
+ ) + ->React.array} +
}