feat: shared with me page
This commit is contained in:
parent
071f6c5855
commit
48cae4957e
5 changed files with 96 additions and 8 deletions
|
|
@ -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>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue