aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/templates/home/index.tmpl
diff options
context:
space:
mode:
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>