feat: shared with me page

This commit is contained in:
juancwu 2026-04-12 16:55:38 +00:00
commit 48cae4957e
5 changed files with 96 additions and 8 deletions

View file

@ -11,8 +11,8 @@ templ Spaces(spaces []blocks.SpaceCardInfo) {
<div class="container px-6 py-8 mx-auto">
<div class="mb-8 w-full flex justify-between items-center">
<div>
<h1 class="text-3xl font-bold">Spaces</h1>
<p class="text-muted-foreground mt-2">Manage and monitor your expenses across collaborative spaces.</p>
<h1 class="text-3xl font-bold">My Spaces</h1>
<p class="text-muted-foreground mt-2">Manage and monitor your expenses.</p>
</div>
<div>
@button.Button(button.Props{
@ -32,3 +32,19 @@ templ Spaces(spaces []blocks.SpaceCardInfo) {
</div>
}
}
templ SharedSpaces(spaces []blocks.SpaceCardInfo) {
@layouts.App("Shared with me") {
<div class="container px-6 py-8 mx-auto">
<div class="mb-8">
<h1 class="text-3xl font-bold">Shared with me</h1>
<p class="text-muted-foreground mt-2">Spaces that others have shared with you.</p>
</div>
<div class="">
for _, space := range spaces {
@blocks.SpaceCard(space)
}
</div>
</div>
}
}