mirror of
https://codeberg.org/JasterV/spazio-solazzo.git
synced 2026-04-26 18:20:03 +00:00
refactor: styles
This commit is contained in:
parent
8476050c41
commit
1194a2ce2b
4 changed files with 2 additions and 8 deletions
|
|
@ -172,7 +172,6 @@ defmodule SpazioSolazzoWeb.LandingComponents do
|
|||
id="page-header-carousel"
|
||||
images={@images}
|
||||
height="100%"
|
||||
rounded="none"
|
||||
/>
|
||||
<div class="absolute inset-0 bg-gradient-to-t from-base-300/80 via-transparent to-transparent pointer-events-none">
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -118,9 +118,7 @@ defmodule SpazioSolazzoWeb.PageComponents do
|
|||
class="btn btn-primary h-14 px-10 rounded-2xl uppercase text-xs tracking-widest"
|
||||
>
|
||||
<.icon name="hero-calendar" class="size-5" />
|
||||
{if @asset_type == "Desk",
|
||||
do: "Book Desk",
|
||||
else: if(@asset_type == "Room", do: "Reserve Room", else: "Book Slot")}
|
||||
{"Book #{@asset_type}"}
|
||||
</.link>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ defmodule SpazioSolazzoWeb.CarouselLiveComponent do
|
|||
## Configuration Options
|
||||
- `images`: List of image URLs (required)
|
||||
- `height`: Height of the carousel (default: "650px")
|
||||
- `rounded`: Rounded corners style (default: "none", options: "none", "2xl")
|
||||
"""
|
||||
use Phoenix.LiveComponent
|
||||
|
||||
|
|
@ -17,8 +16,7 @@ defmodule SpazioSolazzoWeb.CarouselLiveComponent do
|
|||
socket
|
||||
|> assign(assigns)
|
||||
|> assign_new(:carousel_index, fn -> 0 end)
|
||||
|> assign_new(:height, fn -> "650px" end)
|
||||
|> assign_new(:rounded, fn -> "none" end)}
|
||||
|> assign_new(:height, fn -> "650px" end)}
|
||||
end
|
||||
|
||||
@impl true
|
||||
|
|
@ -27,7 +27,6 @@
|
|||
id="home-carousel"
|
||||
images={@carousel_images}
|
||||
height="650px"
|
||||
rounded="none"
|
||||
/>
|
||||
</div>
|
||||
</section>
|
||||
|
|
|
|||
Loading…
Reference in a new issue