From ef1afa8b5ee18703f1dc1a25d16b5abdd45a5a2a Mon Sep 17 00:00:00 2001 From: Stephanie Gredell Date: Sat, 16 Nov 2024 04:13:07 -0500 Subject: [PATCH] change wishlist to goals --- main.go | 2 +- pages/wishlist.go | 4 +- templates/goals.html | 212 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 215 insertions(+), 3 deletions(-) create mode 100644 templates/goals.html diff --git a/main.go b/main.go index 537bbc1..ea9eb73 100644 --- a/main.go +++ b/main.go @@ -43,7 +43,7 @@ func main() { r.GET("/", pages.Home) r.GET("/login", pages.Login) r.GET("/welcome", pages.Welcome) - r.GET("/wishlist", pages.Wishlist) + r.GET("/goals", pages.Goals) runErr := r.Run(":8080") diff --git a/pages/wishlist.go b/pages/wishlist.go index 95a9392..eb944af 100644 --- a/pages/wishlist.go +++ b/pages/wishlist.go @@ -5,8 +5,8 @@ import ( "net/http" ) -func Wishlist(c *gin.Context) { - c.HTML(http.StatusOK, "wishlist.html", gin.H{ +func Goals(c *gin.Context) { + c.HTML(http.StatusOK, "goals.html", gin.H{ "title": "Sponsor A Hacker", }) } diff --git a/templates/goals.html b/templates/goals.html new file mode 100644 index 0000000..6079765 --- /dev/null +++ b/templates/goals.html @@ -0,0 +1,212 @@ + + + + + + + Goals + + + +{{template "pageheader"}} +
+
+

Manage Your Goals

+

Add new goals or track progress on your current items.

+
+ +
+

Add a New Goal

+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+
+ +
+

Your Current Wishlist

+
+
+
+

Full-Stack Development Certification

+

Progress: 75% funded

+
+ +
+
+
+

Data Science Course

+

Progress: 40% funded

+
+ +
+
+
+ + +
+{{template "footer"}} + + \ No newline at end of file