Skip to content

Commit

Permalink
took out the solve exercises cards
Browse files Browse the repository at this point in the history
  • Loading branch information
SaySayo committed Aug 9, 2023
1 parent 6261c43 commit b694477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 43 deletions.
4 changes: 2 additions & 2 deletions src/ocamlorg_frontend/components/learn_components.eml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let lang_manual_banner =

let install_card
=
<div class="w-[450px] h-52 bg-learn-area-light-blue px-6 flex flex-row pt-8 md:w-[500px]">
<div class="w-[450px] h-52 bg-learn-area-light-blue px-6 flex flex-row pt-6 pb-3 md:w-[500px]">
<%s! download_icon "w-24 h-24 mt-8 flex-shrink-0" %>
<div class="flex flex-col ml-1 flex-shrink gap-x-4">
<div class="flex flex-row justify-between">
Expand All @@ -59,7 +59,7 @@ let install_card

let standard_lib_card
=
<div class="w-[450px] h-52 bg-learn-area-light-blue px-6 flex flex-row pt-8 md:w-[500px]">
<div class="w-[450px] h-52 bg-learn-area-light-blue px-6 flex flex-row pt-6 pb-3 md:w-[500px]">
<%s! command_line_icon "w-24 h-24 mt-8 flex-shrink-0" %>
<div class="flex flex-col ml-1 flex-shrink gap-x-4">
<h3 class="text-default text-2xl font-normal leading-7">Standard Library API </h3>
Expand Down
41 changes: 0 additions & 41 deletions src/ocamlorg_frontend/pages/learn.eml
Original file line number Diff line number Diff line change
Expand Up @@ -11,47 +11,6 @@ Learn_layout.render
~right_sidebar_html:None
~current:Overview @@
<h1 class="font-bold mb-8">Learn OCaml</h1>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 xl:gap-8 border-b border-gray-200 pb-10">
<div class="relative flex-1 bg-gradient-to-br from-orange-300 to-orange-500 rounded-xl text-white md:max-h-96 overflow-hidden">
<div class="p-6 xl:p-8 h-full xl:h-auto flex flex-col">
<h2 class="font-bold mb-2">Get Started</h2>
<div class="font-medium mb-4 opacity-80">Learn how to get OCaml set up in your project.</div>
<a class="mt-auto bg-black font-semibold text-center py-2 px-5 rounded-md bg-opacity-10 hover:bg-opacity-20 transition-colors" href="<%s Url.getting_started %>">
Start Now
</a>
</div>
<div class="hidden xl:flex justify-end pl-8">
<img src="<%s Ocamlorg_static.Asset.url "img/learn/learn-get-started.svg" %>" class="w-full" alt="Get Started background">
</div>
</div>
<div class="relative flex-1 bg-gradient-to-br from-purple-400 to-purple-700 rounded-xl text-white md:max-h-96 overflow-hidden">
<div class="p-6 xl:p-8 h-full xl:h-auto flex flex-col">
<h2 class="font-bold mb-2">Solve Exercises</h2>
<div class="font-medium mb-4 opacity-80">
Learning by doing, or do by learning!
</div>
<a class="mt-auto bg-black font-semibold text-center py-2 px-5 rounded-md bg-opacity-10 hover:bg-opacity-20 transition-colors" href="<%s Url.problems %>">
I'm Ready
</a>
</div>
<div class="hidden xl:flex justify-end pl-8">
<img src="<%s Ocamlorg_static.Asset.url "img/learn/learn-exercise.svg" %>" class="w-full" alt="Exercises Background">
</div>
</div>

<div class="relative flex-1 bg-gradient-to-br from-emerald-400 to-emerald-700 rounded-xl text-white md:max-h-96 overflow-hidden">
<div class="p-6 xl:p-8 h-full xl:h-auto flex flex-col">
<h2 class="font-bold mb-2">Language Manual</h2>
<div class="font-medium mb-4 opacity-80">Acquire a deeper understanding!</div>
<a class="mt-auto whitespace-nowrap bg-black font-semibold text-center py-2 px-5 rounded-md bg-opacity-10 hover:bg-opacity-20 transition-colors" href="<%s Url.manual %>">
Take Me There
</a>
</div>
<div class="hidden xl:flex justify-end pl-8">
<img src="<%s Ocamlorg_static.Asset.url "img/learn/learn-language.svg" %>" class="w-full" alt="Manual background">
</div>
</div>
</div>
<div class="w-full">
<%s! Learn_components.api_card_block %>
</div>
Expand Down

0 comments on commit b694477

Please sign in to comment.