homepage 3 new cards with imgs

This commit is contained in:
Thu Savory 2025-01-11 13:54:23 +11:00
parent 7bf98f3a05
commit d16063aa0e
4 changed files with 42 additions and 15 deletions

View file

@ -1,20 +1,47 @@
<h1>Hello World</h1> <h1>Hello World</h1>
<div class="size-1/3 mr-4 mt-4"> <div class="flex gap-10">
<div class="p-10 bg-pink-100 shadow-md rounded-xl"> <div class="flex-1">
<h2>Books</h2> <div class="shadow-md rounded-xl pt-4 bg-pink-100">
<h2 class="text-center font-bold pb-2">BOOKS</h2>
c
<img src={~p"/images/book-card-homepage.jpg"} class="rounded-xl" />
</.link>
</div> </div>
<div class="p-10 bg-pink-200 shadow-md rounded-xl mt-2"> <div class="text-right py-2 text-pink-500">
<.link patch={~p"/books/thoughts"}>Share my thought</.link> <.link patch={~p"/books/thoughts"} class="hover:underline">
Share my thoughts
</.link>
</div> </div>
</div> </div>
<div class="size-1/3 mr-4 mt-4"> <div class="flex-1">
<div class="p-10 bg-blue-100 shadow-md rounded-xl"> <div class="shadow-md rounded-xl pt-4 bg-blue-100">
<h2>Movies</h2> <h2 class="text-center font-bold pb-2">MOVIES</h2>
<.link patch={~p"/movies"}>
<img src={~p"/images/movie-card-homepage.jpg"} class="rounded-xl" />
</.link>
</div> </div>
<div class="p-10 bg-blue-200 shadow-md rounded-xl mt-2"> <div class="text-right py-2 text-blue-500">
<.link patch={~p"/books/thoughts"}>Share my critics</.link> <.link patch={~p"/movies/critics"} class="hover:underline">
Share my critics
</.link>
</div>
</div>
<div class="flex-1">
<div class="shadow-md rounded-xl pt-4 bg-green-100">
<h2 class="text-center font-bold pb-2">RECIPES</h2>
<.link patch={~p"/recipes"}>
<img src={~p"/images/recipe-card-homepage.jpg"} class="rounded-xl" />
</.link>
</div>
<div class="text-right py-2 text-green-500">
<.link patch={~p"/recipes/tastes"} class="hover:underline">
Share my tastes
</.link>
</div>
</div> </div>
</div> </div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 717 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 KiB