Update text content

This commit is contained in:
JasterV 2026-02-07 23:00:16 +01:00
parent c9c5255642
commit e52c95872c
6 changed files with 10 additions and 21 deletions

View file

@ -35,7 +35,6 @@ defmodule SpazioSolazzoWeb.PageComponents do
secondary_label_icon="hero-user-group" secondary_label_icon="hero-user-group"
image_position={:right} image_position={:right}
booking_url="/meeting" booking_url="/meeting"
asset_type="Room"
/> />
""" """
attr :title, :string, required: true attr :title, :string, required: true
@ -50,7 +49,6 @@ defmodule SpazioSolazzoWeb.PageComponents do
attr :note, :string, default: nil attr :note, :string, default: nil
attr :image_position, :atom, default: :left, values: [:left, :right] attr :image_position, :atom, default: :left, values: [:left, :right]
attr :booking_url, :string, required: true attr :booking_url, :string, required: true
attr :asset_type, :string, required: true
attr :id, :string, default: nil attr :id, :string, default: nil
def space_card(assigns) do def space_card(assigns) do
@ -104,21 +102,15 @@ defmodule SpazioSolazzoWeb.PageComponents do
</p> </p>
<div class="card-actions flex flex-col sm:flex-row gap-8 sm:items-center justify-between mt-auto pt-10 border-t border-base-200"> <div class="card-actions flex flex-col sm:flex-row gap-8 sm:items-center justify-between mt-auto pt-10 border-t border-base-200">
<div class="flex flex-col"> <span class="text-3xl font-extrabold text-base-content">
<span class="text-[11px] uppercase font-bold tracking-widest text-neutral"> {@price}
{if @time_unit == "4 hours", do: "Access", else: "Rate"} <span class="text-base font-light text-neutral">/ {@time_unit}</span>
</span> </span>
<span class="text-3xl font-extrabold text-base-content">
{@price}
<span class="text-base font-light text-neutral">/ {@time_unit}</span>
</span>
</div>
<.link <.link
navigate={@booking_url} navigate={@booking_url}
class="btn btn-primary h-14 px-10 rounded-2xl uppercase text-xs tracking-widest" class="btn btn-primary h-10 px-5 rounded-2xl uppercase text-xs tracking-widest"
> >
<.icon name="hero-calendar" class="size-5" /> View more <.icon name="hero-arrow-right" class="size-5" />
{"Book #{@asset_type}"}
</.link> </.link>
</div> </div>
</div> </div>

View file

@ -43,7 +43,7 @@ defmodule SpazioSolazzoWeb.BookingFormLiveComponent do
~H""" ~H"""
<div> <div>
<.modal :if={@show} id={@id} show on_cancel={@on_cancel}> <.modal :if={@show} id={@id} show on_cancel={@on_cancel}>
<:title>Complete Your Booking</:title> <:title>Booking request</:title>
<:subtitle> <:subtitle>
<%= if @selected_time_slot do %> <%= if @selected_time_slot do %>
{@space.name} | {CalendarExt.format_time_range(@selected_time_slot)} on {CalendarExt.format_date( {@space.name} | {CalendarExt.format_time_range(@selected_time_slot)} on {CalendarExt.format_date(

View file

@ -1,7 +1,7 @@
<Layouts.app flash={@flash} current_user={@current_user}> <Layouts.app flash={@flash} current_user={@current_user}>
<.page_header <.page_header
booking_path={~p"/book/space/#{@space.slug}"} booking_path={~p"/book/space/#{@space.slug}"}
booking_label="Book Space" booking_label="Request a desk"
price="€25" price="€25"
price_unit="day" price_unit="day"
capacity={@space.capacity} capacity={@space.capacity}

View file

@ -1,7 +1,7 @@
<Layouts.app flash={@flash} current_user={@current_user}> <Layouts.app flash={@flash} current_user={@current_user}>
<.page_header <.page_header
booking_path={~p"/book/space/#{@space.slug}"} booking_path={~p"/book/space/#{@space.slug}"}
booking_label="Book Space" booking_label="Booking request"
price="€35" price="€35"
price_unit="hour" price_unit="hour"
capacity={@space.capacity} capacity={@space.capacity}

View file

@ -1,7 +1,7 @@
<Layouts.app flash={@flash} current_user={@current_user}> <Layouts.app flash={@flash} current_user={@current_user}>
<.page_header <.page_header
booking_path={~p"/book/space/#{@space.slug}"} booking_path={~p"/book/space/#{@space.slug}"}
booking_label="Book Space" booking_label="Booking request"
price="€50" price="€50"
price_unit="hour" price_unit="hour"
capacity={@space.capacity} capacity={@space.capacity}

View file

@ -58,7 +58,6 @@
primary_label_variant={:secondary} primary_label_variant={:secondary}
image_position={:left} image_position={:left}
booking_url={"/#{@coworking_space.slug}"} booking_url={"/#{@coworking_space.slug}"}
asset_type="Desk"
/> />
<% end %> <% end %>
@ -76,7 +75,6 @@
secondary_label_icon="hero-user-group" secondary_label_icon="hero-user-group"
image_position={:right} image_position={:right}
booking_url={"/#{@meeting_space.slug}"} booking_url={"/#{@meeting_space.slug}"}
asset_type="Room"
/> />
<% end %> <% end %>
@ -95,7 +93,6 @@
note="Note: This is not a professional studio and is not soundproofed." note="Note: This is not a professional studio and is not soundproofed."
image_position={:left} image_position={:left}
booking_url={"/#{@music_space.slug}"} booking_url={"/#{@music_space.slug}"}
asset_type="Slot"
/> />
<% end %> <% end %>
</div> </div>