feat(chat): add placeholder modal for new room

This commit is contained in:
João Paulo Dubas 2025-01-28 00:06:12 +00:00
parent e96efdecfa
commit 33f36a5254
Signed by: joao.dubas
SSH Key Fingerprint: SHA256:V1mixgOGRc/YMhGx/DNkOSmJxgA2vHNrDZEk3wt/kOA

View File

@ -46,6 +46,12 @@ defmodule SlaxWeb.ChatRoomLive do
>
Browse rooms
</.link>
<.link
class="block select-none cursor-pointer whitespace-nowrap text-gray-800 hover:text-white px-6 py-1 hover:bg-sky-600"
phx-click={show_modal("new-room-modal")}
>
Create a new room
</.link>
</div>
</div>
</div>
@ -203,6 +209,10 @@ defmodule SlaxWeb.ChatRoomLive do
</div>
</div>
</div>
<.modal id="new-room-modal">
<.header>New chat room</.header>
(Form goes here)
</.modal>
"""
end