styling and animation of own card controls

This commit is contained in:
efim 2023-04-28 21:32:04 +04:00
parent 340fcdcf41
commit ba625d738e
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ object OwnHandControls {
val submitVote = Fetch.get(s"/api/vote/$value").text
div(
className := "cursor-pointer w-24 h-48 m-1 rounded-l flex justify-center items-center m-3 text-black bg-gray-50 border-black border-2",
className := "cursor-pointer w-24 h-48 m-1 rounded-l flex justify-center items-center m-3 text-black bg-gray-50 border-black border-2 drop-shadow-md",
className := "hover:-translate-y-2 hover:scale-[1.02] hover:drop-shadow-xl rounded-lg hover:bg-gray-100 ease-linear duration-200",
onClick.flatMap(_ => submitVote) --> Observer(resp => g.console.info(resp.toString())),
div(
className := "-rotate-45 text-xl",