diff --git a/assets/css/style.css b/assets/css/style.css index 1ef1442..96d5216 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -4,6 +4,7 @@ body { margin: 0; padding: 0; font-size: 16px; + font-family: "Helvetica Neue", Helvetica, serif; } .header { @@ -142,4 +143,17 @@ body { font-size: 1.15em; color: #495057; line-height: 1.6; +} + +.footer { + background-color: #457B9D; /* Muted blue */ + color: #FFFFFF; /* White text */ + text-align: center; + padding: 15px 10px; +} + +.footer a { + color: #A3C1AD; /* Muted green */ + text-decoration: none; + font-weight: bold; } \ No newline at end of file diff --git a/main.go b/main.go index 0fbdd20..48e677c 100644 --- a/main.go +++ b/main.go @@ -37,6 +37,8 @@ func main() { // pages routes r.GET("/", pages.Home) r.GET("/login", pages.Login) + r.GET("/welcome", pages.Welcome) + r.GET("/wishlist", pages.Wishlist) runErr := r.Run(":8080") diff --git a/pages/home.go b/pages/home.go index 452d515..ec60a85 100644 --- a/pages/home.go +++ b/pages/home.go @@ -6,9 +6,7 @@ import ( "github.com/joho/godotenv" "log" "net/http" - "os" "sponsorahacker/db" - "sponsorahacker/twitch" "sponsorahacker/utils" ) @@ -21,19 +19,11 @@ func Home(c *gin.Context) { isLoggedIn := utils.CheckIfLoggedIn(c) fmt.Println("isLoggedIn:", isLoggedIn) - _, err := db.NewDbClient("libsql://sponsorahacker-stephanie-gredell.turso.io") + _, err := db.NewDbClient() if err != nil { log.Fatal(err) } - client, twitchErr := twitch.NewTwitchClient(os.Getenv("TWITCH_CLIENT_ID"), os.Getenv("TWITCH_CLIENT_SECRET")) - - if twitchErr != nil { - log.Fatal(twitchErr) - } - - client.GetUser() - c.HTML(http.StatusOK, "index.html", gin.H{ "title": "Sponsor a Hacker", "isLoggedIn": isLoggedIn, diff --git a/pages/welcome.go b/pages/welcome.go new file mode 100644 index 0000000..88b1fc2 --- /dev/null +++ b/pages/welcome.go @@ -0,0 +1,12 @@ +package pages + +import ( + "github.com/gin-gonic/gin" + "net/http" +) + +func Welcome(c *gin.Context) { + c.HTML(http.StatusOK, "welcome.html", gin.H{ + "title": "Sponsor A Hacker", + }) +} diff --git a/pages/wishlist.go b/pages/wishlist.go new file mode 100644 index 0000000..95a9392 --- /dev/null +++ b/pages/wishlist.go @@ -0,0 +1,12 @@ +package pages + +import ( + "github.com/gin-gonic/gin" + "net/http" +) + +func Wishlist(c *gin.Context) { + c.HTML(http.StatusOK, "wishlist.html", gin.H{ + "title": "Sponsor A Hacker", + }) +} diff --git a/templates/apply.html b/templates/apply.html deleted file mode 100644 index 81ab73f..0000000 --- a/templates/apply.html +++ /dev/null @@ -1,12 +0,0 @@ - -
- - - -
+ Find your path, fund futures, or inspire a community today.
+Track your certifications and courses. Update or add goals to keep your community engaged.
+ +Join upcoming hackathons or community events to grow your skills and network.
+ +Access curated tutorials, guides, and practice challenges to enhance your skills.
+ +Get advice and guidance from experienced professionals to boost your learning journey.
+ +Choose a learner’s wishlist item and contribute to their education journey.
+ +Support innovation by organizing or sponsoring a hackathon for the community.
+ +Boost streamers who are funding education for members of their community.
+ +See the difference your contributions are making through real-time progress updates.
+ +Add new goals or track progress on your current items.
+Progress: 75% funded
+Progress: 40% funded
+