diff --git a/handler/account.go b/handler/account.go
index 7df1efb..65e4cad 100644
--- a/handler/account.go
+++ b/handler/account.go
@@ -42,7 +42,7 @@ func (handler AccountImpl) handleAccountPage() http.HandlerFunc {
return
}
- comp := account.AccountListComp(nil)
+ comp := account.Account()
handler.render.RenderLayout(r, w, comp, user)
}
}
diff --git a/template/account/account.templ b/template/account/account.templ
new file mode 100644
index 0000000..9490e3f
--- /dev/null
+++ b/template/account/account.templ
@@ -0,0 +1,27 @@
+package account
+
+import "fmt"
+
+templ Account() {
+
+ @accountItem("Sparkasse", 51268)
+ @accountItem("Bargeld", 11822)
+ @accountItem("Bargeld Milch", 8200)
+
+}
+
+func displayBalance(balance int) string {
+
+ euros := float64(balance) / 100
+ return fmt.Sprintf("%.2f €", euros)
+}
+
+templ accountItem(name string, balance int) {
+
+
{ name }
+
{ displayBalance(balance) }
+
+
+
+
+}
diff --git a/template/account/workout.templ b/template/account/workout.templ
deleted file mode 100644
index 4924a27..0000000
--- a/template/account/workout.templ
+++ /dev/null
@@ -1,7 +0,0 @@
-package account
-
-import "spend-sparrow/types"
-
-templ AccountListComp(accounts []*types.Account) {
-
diff --git a/template/not_found.templ b/template/not_found.templ
index f564669..0d42ae9 100644
--- a/template/not_found.templ
+++ b/template/not_found.templ
@@ -5,7 +5,7 @@ templ NotFound() {
}
diff --git a/template/root.templ b/template/root.templ
new file mode 100644
index 0000000..928478b
--- /dev/null
+++ b/template/root.templ
@@ -0,0 +1,14 @@
+package template
+
+templ Index() {
+
+
+
+ SpendSparrow
+
+
+ Spend on the important, like a fine Whiskey
+
+
Getting Started
+
+}