diff --git a/src/ocamlorg_frontend/components/learn_components.eml b/src/ocamlorg_frontend/components/learn_components.eml index 2377dc1d85..3cd1dab6d1 100644 --- a/src/ocamlorg_frontend/components/learn_components.eml +++ b/src/ocamlorg_frontend/components/learn_components.eml @@ -12,4 +12,36 @@ class_ | None -> <> | Some _ -> - <> \ No newline at end of file + <> + +let book_tile +books += +
+ <% books |> List.rev |> List.iteri (fun index (item : Data.Book.t) -> if (index < 2) then ( %> +
+ + <%s! skill_tag item.difficulty "mt-2 grow-0 w-28" %> +

<%s item.title %>

+

Suitable for complete beginners to programming

+
+ <% ) else %> + <% ); %> +
+ + + +let books_content_block +books += +
+
Books
+

Recommended Books

+ <%s! book_tile books %> + + See all books + <%s! Icons.arrow_small_right "h-6 w-6" %> + +
\ No newline at end of file diff --git a/src/ocamlorg_frontend/pages/outreachy.eml b/src/ocamlorg_frontend/pages/outreachy.eml index d4f85c4542..22e4389166 100644 --- a/src/ocamlorg_frontend/pages/outreachy.eml +++ b/src/ocamlorg_frontend/pages/outreachy.eml @@ -45,3 +45,6 @@ Layout.render <% ); %> +
+<%s! Learn_components.books_content_block Data.Book.featured %> +
\ No newline at end of file