Skip to content

Commit

Permalink
fixed responsiveness and padding
Browse files Browse the repository at this point in the history
  • Loading branch information
SaySayo committed Aug 29, 2023
1 parent 09cf82d commit fb9826e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ocamlorg_frontend/components/learn_components.eml
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ class_
let book_tile
books
=
<div class="flex flex-col gap-12 xl:flex-row">
<div class="flex flex-col gap-12 lg:gap-6 lg:flex-row xl:gap-12">
<% books |> List.rev |> List.iteri (fun index (item : Data.Book.t) -> if (index < 2) then ( %>
<div class="flex flex-col w-full gap-4 lg:w-60">
<div class="pl-20 lg:pl-0">
<img src="<%s Ocamlorg_static.Media.url item.cover %>"
class="mt-2 w-60 h-80 border border-gray-200 object-contain"
class="mt-2 w-60 h-80 lg:w-52 lg:h-72 xl:w-60 xl:h-80 border border-gray-200 object-contain"
alt="">
</div>
<%s! skill_tag item.difficulty "mt-2 grow-0 w-28" %>
Expand All @@ -149,8 +149,8 @@ let books_content_block
books
~(link : link )
=
<div class="w-full bg-default flex flex-col items-center h-full p-4 lg:justify-end md:w-1/2">
<div class="w-96 sm:w-full">
<div class="w-full bg-default flex h-full p-4 md:w-1/2">
<div class="w-96 sm:w-auto lg:ml-auto lg:pr-4">
<div class="pt-4 text-default text-sm font-medium leading-7 tracking-widest"> BOOK </div>
<h2 class="mt-2 text-default text-2xl font-normal leading-7"> Recommended Books </h2>
<%s! book_tile books %>
Expand Down

0 comments on commit fb9826e

Please sign in to comment.