summaryrefslogtreecommitdiff
path: root/layouts/partials/app.html
diff options
context:
space:
mode:
authorLibravatar Mubashshir <ahmubashshir@gmail.com>2023-08-02 14:19:46 +0600
committerLibravatar Mubashshir <ahm@jadupc.com>2023-08-02 14:20:47 +0600
commite131686760d4325ed5316033d60d5ac81ada0d1c (patch)
treed91c0b3a7175fb3f26816ea41be60cc5bd5cc9d0 /layouts/partials/app.html
downloadstore-source-e131686760d4325ed5316033d60d5ac81ada0d1c.tar.gz
store-source-e131686760d4325ed5316033d60d5ac81ada0d1c.zip
Initial commit
Signed-off-by: Mubashshir <ahm@jadupc.com>
Diffstat (limited to 'layouts/partials/app.html')
-rw-r--r--layouts/partials/app.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/layouts/partials/app.html b/layouts/partials/app.html
new file mode 100644
index 0000000..4ccd861
--- /dev/null
+++ b/layouts/partials/app.html
@@ -0,0 +1,34 @@
+ <div class="card">
+ <div class="info">
+ {{- with (printf "asset/icons/%s.png" .id | resources.Get) -}}
+ <div class="icon">
+ <img src="{{ .RelPermalink }}" alt="logo">
+ </div>
+ {{- end }}
+ <div class="title">
+ <h1 class="name">
+ {{- .data.name | safeHTML -}}
+ <span>
+ <a {{ printf `href=%q` .data.url | safeHTMLAttr }} targer="_blank" style="padding">
+ <svg xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 24 24" fill="none"
+ stroke="white" stroke-width="2"
+ stroke-linecap="round" stroke-linejoin="round"
+ width="16px" height="16px">
+ <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path>
+ <path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path>
+ </svg>
+ </a>
+ </span>
+ </h1>
+ <p class="gen-name">{{- .data.info | safeHTML -}}</p>
+ <a {{ printf "apt://%s" .id | printf "href=%q" | safeHTMLAttr }} class="ins-btn">Install</a>
+ </div>
+ </div>
+
+ {{- with (printf "asset/snaps/%s.png" .id| resources.Get) -}}
+ <div class="image">
+ <img src="{{ .RelPermalink }}" alt="logo">
+ </div>
+ {{- end -}}
+ </div>