2024-06-27 21:23:51 -06:00
|
|
|
{{define "title"}}
|
2024-06-27 21:51:00 -06:00
|
|
|
Pollo // Dashboard
|
2024-06-27 21:23:51 -06:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "headercontent"}}
|
2024-06-27 21:51:00 -06:00
|
|
|
Pollo // Dashboard
|
2024-06-27 21:23:51 -06:00
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "head"}}
|
|
|
|
<link rel="stylesheet" href="/public/css/styles.css" />
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "main"}}
|
2024-06-28 00:35:58 -06:00
|
|
|
<div class="flex flex-col items-center justify-center gap-8">
|
|
|
|
<h1 class="flex flex-row flex-wrap text-center justify-center items-center gap-1 text-4xl font-bold">
|
2024-06-28 09:11:03 -06:00
|
|
|
Hi, {{.Name}}!
|
2024-06-28 00:35:58 -06:00
|
|
|
</h1>
|
2024-06-28 14:23:35 -06:00
|
|
|
<!-- Form to create a new room -->
|
2024-06-28 15:16:18 -06:00
|
|
|
<form class="flex flex-col gap-2" method="POST" hx-post="/api/room" hx-target="#room-list" hx-swap="outerHTML">
|
|
|
|
<input class="input input-bordered input-primary w-full max-w-xs" type="text" name="roomName" placeholder="Room Name" required>
|
2024-06-28 14:23:35 -06:00
|
|
|
<button type="submit" class="btn btn-primary">Create Room</button>
|
|
|
|
</form>
|
|
|
|
<!-- Section to list rooms -->
|
2024-06-28 15:16:18 -06:00
|
|
|
<div class="flex flex-col gap-2" id="room-list" hx-get="/api/room" hx-trigger="load">
|
2024-06-28 14:23:35 -06:00
|
|
|
</div>
|
2024-06-27 21:23:51 -06:00
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
{{define "foot"}}
|
|
|
|
<script src="/public/js/htmx.base.js"></script>
|
|
|
|
<script src="/public/js/htmx.sse.js"></script>
|
|
|
|
{{end}}
|