Make things *pop*

This commit is contained in:
2023-11-29 22:57:43 +00:00
parent 99397d7388
commit 1fbb8f6bcd
3 changed files with 9 additions and 7 deletions

View File

@@ -15,7 +15,9 @@
<div
:for={item <- @items}
phx-click={JS.navigate(~p"/details/#{item}")}
class="p-3 bg-purple-200 hover:bg-purple-300 active:bg-purple-400 border-2 border-black hover:shadow-sharp transition cursor-pointer"
class="p-3 bg-purple-200 hover:bg-purple-300 active:bg-purple-400 border-2 border-black
hover:shadow-sharp hover:-translate-x-0.5 hover:-translate-y-0.5 transition
cursor-pointer"
>
<div class="aspect-square relative flex flex-col justify-center bg-white border border-black">
<img
@@ -50,7 +52,9 @@
<div class="flex flex-col mt-4 space-y-4">
<div
:for={item <- @items}
class="grid grid-cols-6 grid-rows-4 gap-3 h-56 p-3 bg-purple-200 hover:bg-purple-300 active:bg-purple-400 border-2 border-black hover:shadow-sharp transition cursor-pointer"
class="grid grid-cols-6 grid-rows-4 gap-3 h-56 p-3 bg-purple-200 hover:bg-purple-300 active:bg-purple-400 border-2 border-black
hover:shadow-sharp hover:-translate-x-0.5 hover:-translate-y-0.5 transition
cursor-pointer"
phx-click={JS.navigate(~p"/details/#{item}")}
>
<div class="relative col-span-2 flex flex-col justify-center max-h-full h-full row-span-4 bg-white border border-black">