feat(budget): first draft
All checks were successful
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 1m17s

This commit is contained in:
2026-01-02 17:52:33 +01:00
parent 1be6d9cb11
commit 818dab401e
6 changed files with 43 additions and 12 deletions

View File

@@ -1,7 +1,14 @@
package budget
templ Page() {
<div></div>
import "spend-sparrow/internal/template/svg"
templ page() {
<div class="flex flex-wrap gap-20 text-xl mt-10 justify-center">
@newItem()
for i:=range(10) {
@item(i)
}
</div>
}
templ Items() {
@@ -12,6 +19,22 @@ templ Edit() {
<div></div>
}
templ Item() {
<div></div>
templ newItem() {
<section class="p-5 flex gap-4 active:bg-gray-200 flex-col justify-center items-center hover:bg-gray-100 transition-all cursor-pointer w-44 h-44 rounded-lg bg-gray-50 border-1 border-gray-300">
New Budget
<div class="w-10">
@svg.Plus()
</div>
</section>
}
templ item(i int) {
<section class="flex flex-col w-44 h-44 p-5 rounded-lg bg-gray-50 border-1 border-gray-300 ">
<span>
Budget { i }
</span>
<span>
{ 200 + i }€
</span>
</section>
}