aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/templates/home/index.tmpl
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2025-02-11 16:31:08 +0530
committerVikas Kushwaha <dev@vikas.rocks>2025-02-11 16:31:08 +0530
commit57eb8f6712361a3bf75983ce153fac4846dc0273 (patch)
tree269a168d59c917c4e313c819e2b4c3ff8175f912 /cmd/web/templates/home/index.tmpl
Initial commit
Diffstat (limited to 'cmd/web/templates/home/index.tmpl')
-rw-r--r--cmd/web/templates/home/index.tmpl45
1 files changed, 45 insertions, 0 deletions
diff --git a/cmd/web/templates/home/index.tmpl b/cmd/web/templates/home/index.tmpl
new file mode 100644
index 0000000..65fee1d
--- /dev/null
+++ b/cmd/web/templates/home/index.tmpl
@@ -0,0 +1,45 @@
+<div class="home-page">
+ <div class="banner">
+ <div class="container">
+ <h1 class="logo-font">Projecty</h1>
+ <p>A place to share your projects.</p>
+ </div>
+ </div>
+
+ <div class="container page">
+ <div class="row">
+
+ <div class="col-md-9">
+ <div class="feed-toggle">
+ <ul id="feed-navigation" class="nav nav-pills outline-active"></ul>
+ </div>
+
+ <div id="feed-post-preview"
+ hx-trigger="load"
+
+ {{ if .Tag }}
+ hx-get="/htmx/home/tag-feed/{{ .TagSlug }}?page={{ .CurrentPage }}"
+ {{ else if .Personal }}
+ hx-get="/htmx/home/your-feed?page={{ .CurrentPage }}"
+ {{ else }}
+ hx-get="/htmx/home/global-feed?page={{ .CurrentPage }}"
+ {{ end }}
+ ></div>
+
+ <nav id="feed-pagination"></nav>
+ </div>
+
+ <div class="col-md-3">
+ <div class="sidebar">
+ <p>Popular Tags</p>
+
+ <div id="popular-tag-list" class="tag-list"
+ hx-trigger="load"
+ hx-get="/htmx/home/tag-list"
+ ></div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+</div>