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"
image_position={:right}
booking_url="/meeting"
asset_type="Room"
/>
"""
attr :title, :string, required: true
@ -50,7 +49,6 @@ defmodule SpazioSolazzoWeb.PageComponents do
attr :note, :string, default: nil
attr :image_position, :atom, default: :left, values: [:left, :right]
attr :booking_url, :string, required: true
attr :asset_type, :string, required: true
attr :id, :string, default: nil
def space_card(assigns) do
@ -104,21 +102,15 @@ defmodule SpazioSolazzoWeb.PageComponents do
</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="flex flex-col">
<span class="text-[11px] uppercase font-bold tracking-widest text-neutral">
{if @time_unit == "4 hours", do: "Access", else: "Rate"}
</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
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" />
{"Book #{@asset_type}"}
View more <.icon name="hero-arrow-right" class="size-5" />
</.link>
</div>
</div>

View file

@ -43,7 +43,7 @@ defmodule SpazioSolazzoWeb.BookingFormLiveComponent do
~H"""
<div>
<.modal :if={@show} id={@id} show on_cancel={@on_cancel}>
<:title>Complete Your Booking</:title>
<:title>Booking request</:title>
<:subtitle>
<%= if @selected_time_slot do %>
{@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}>
<.page_header
booking_path={~p"/book/space/#{@space.slug}"}
booking_label="Book Space"
booking_label="Request a desk"
price="€25"
price_unit="day"
capacity={@space.capacity}

View file

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

View file

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

View file

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