From 57eb8f6712361a3bf75983ce153fac4846dc0273 Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Tue, 11 Feb 2025 16:31:08 +0530 Subject: Initial commit --- cmd/web/templates/users/htmx-users-articles.tmpl | 2 + cmd/web/templates/users/htmx-users-page.tmpl | 3 ++ .../users/partials/article-favorite-button.tmpl | 12 +++++ .../templates/users/partials/feed-navigation.tmpl | 17 ++++++ .../templates/users/partials/follow-button.tmpl | 14 +++++ cmd/web/templates/users/partials/post-preview.tmpl | 61 ++++++++++++++++++++++ cmd/web/templates/users/show.tmpl | 51 ++++++++++++++++++ 7 files changed, 160 insertions(+) create mode 100644 cmd/web/templates/users/htmx-users-articles.tmpl create mode 100644 cmd/web/templates/users/htmx-users-page.tmpl create mode 100644 cmd/web/templates/users/partials/article-favorite-button.tmpl create mode 100644 cmd/web/templates/users/partials/feed-navigation.tmpl create mode 100644 cmd/web/templates/users/partials/follow-button.tmpl create mode 100644 cmd/web/templates/users/partials/post-preview.tmpl create mode 100644 cmd/web/templates/users/show.tmpl (limited to 'cmd/web/templates/users') diff --git a/cmd/web/templates/users/htmx-users-articles.tmpl b/cmd/web/templates/users/htmx-users-articles.tmpl new file mode 100644 index 0000000..d002097 --- /dev/null +++ b/cmd/web/templates/users/htmx-users-articles.tmpl @@ -0,0 +1,2 @@ +{{ template "users/partials/post-preview" . }} +{{ template "users/partials/feed-navigation" . }} \ No newline at end of file diff --git a/cmd/web/templates/users/htmx-users-page.tmpl b/cmd/web/templates/users/htmx-users-page.tmpl new file mode 100644 index 0000000..020649e --- /dev/null +++ b/cmd/web/templates/users/htmx-users-page.tmpl @@ -0,0 +1,3 @@ +{{ template "users/show" . }} +{{ template "components/navbar" . }} +{{ template "components/head" . }} \ No newline at end of file diff --git a/cmd/web/templates/users/partials/article-favorite-button.tmpl b/cmd/web/templates/users/partials/article-favorite-button.tmpl new file mode 100644 index 0000000..c63182a --- /dev/null +++ b/cmd/web/templates/users/partials/article-favorite-button.tmpl @@ -0,0 +1,12 @@ + \ No newline at end of file diff --git a/cmd/web/templates/users/partials/feed-navigation.tmpl b/cmd/web/templates/users/partials/feed-navigation.tmpl new file mode 100644 index 0000000..00629d9 --- /dev/null +++ b/cmd/web/templates/users/partials/feed-navigation.tmpl @@ -0,0 +1,17 @@ + \ No newline at end of file diff --git a/cmd/web/templates/users/partials/follow-button.tmpl b/cmd/web/templates/users/partials/follow-button.tmpl new file mode 100644 index 0000000..d893ea0 --- /dev/null +++ b/cmd/web/templates/users/partials/follow-button.tmpl @@ -0,0 +1,14 @@ + \ No newline at end of file diff --git a/cmd/web/templates/users/partials/post-preview.tmpl b/cmd/web/templates/users/partials/post-preview.tmpl new file mode 100644 index 0000000..4e00357 --- /dev/null +++ b/cmd/web/templates/users/partials/post-preview.tmpl @@ -0,0 +1,61 @@ +
+ {{ if .HasArticles }} + {{ $isSelf := .IsSelf }} + {{ range $article := .Articles }} + +
+ + +

{{ $article.Title }}

+

{{ $article.Description }}

+ +
+ Read more... + +
    + {{ range $tag := $article.Tags }} +
  • {{ $tag.Name }}
  • + {{ end }} +
+
+
+
+ {{ end }} + {{ end }} + + {{ if not .HasArticles }} +
+ +
+ {{ end }} +
\ No newline at end of file diff --git a/cmd/web/templates/users/show.tmpl b/cmd/web/templates/users/show.tmpl new file mode 100644 index 0000000..cf9f1d7 --- /dev/null +++ b/cmd/web/templates/users/show.tmpl @@ -0,0 +1,51 @@ +
+ + +
+
+
+
+ +
+ +
+
+
+
+
\ No newline at end of file -- cgit v1.2.3