summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
authorlost+skunk <[email protected]>2024-06-13 23:56:03 +0300
committerlost+skunk <[email protected]>2024-06-13 23:56:03 +0300
commit6f872fe2f7fa2ee5cae749bdde5ad002d380b556 (patch)
treedfa3ccbb1dc495dc37c73ba2360054dfd50cb4b0 /html
downloadskunky-art-6f872fe2f7fa2ee5cae749bdde5ad002d380b556.tar.gz
skunky-art-6f872fe2f7fa2ee5cae749bdde5ad002d380b556.tar.bz2
skunky-art-6f872fe2f7fa2ee5cae749bdde5ad002d380b556.zip
альфа: работают только посты и поиск
Diffstat (limited to 'html')
-rw-r--r--html/about.htm23
-rw-r--r--html/deviantion.htm44
-rw-r--r--html/index.htm20
-rw-r--r--html/search.htm29
4 files changed, 116 insertions, 0 deletions
diff --git a/html/about.htm b/html/about.htm
new file mode 100644
index 0000000..2c43bbe
--- /dev/null
+++ b/html/about.htm
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>SkunkyArt</title>
+ <link rel="stylesheet" href="gui/css/skunky.css">
+ </head>
+ <main>
+ <header>
+ <h1><a href="/">HOME</a> | <a href="/dd">DD</a></h1>
+ <form method="get" action="/search">
+ <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
+ <select name="type">
+ <option value="all">All</option>
+ <option value="tag">Tag</option>
+ </select>
+ <button type="submit">Search!</button>
+ </form>
+ </header>
+ <p>
+ SkunkyArt is an alternative frontend for deviantart.com, written in Go.
+ </p>
+ </main>
+</html> \ No newline at end of file
diff --git a/html/deviantion.htm b/html/deviantion.htm
new file mode 100644
index 0000000..8516965
--- /dev/null
+++ b/html/deviantion.htm
@@ -0,0 +1,44 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>SkunkyArt | {{.Post.Deviation.Author.Username}} - {{.Post.Deviation.Title}}</title>
+ <link rel="stylesheet" href="/gui/css/skunky.css">
+ </head>
+ <main>
+ <header>
+ <h1><a href="/">HOME</a> | <a href="/dd">DD</a></h1>
+ <form method="get" action="/search">
+ <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
+ <select name="type">
+ <option value="all">All</option>
+ <option value="tag">Tag</option>
+ </select>
+ <button type="submit">Search!</button>
+ </form>
+ </header>
+ <figure>
+ <img src="/media/{{.Post.Deviation.Author.Username}}?type=a" width="30px">
+ <span><strong><a href="/user/{{.Post.Deviation.Author.Username}}">{{.Post.Deviation.Author.Username}}</a></strong> — {{if (.Post.Deviation.DD)}}
+ <span class="dd" title="Daily Deviation!"><b>{{.Post.Deviation.Title}}</b></span>
+ {{else}}{{.Post.Deviation.Title}}{{end}}
+ {{if (ne .Post.Deviation.License "none")}}<mark title="License">{{.Post.Deviation.License}}</mark>{{end}} {{if (.Post.Deviation.AI)}}[🤖]{{end}}
+ {{if (.Post.Deviation.NSFW)}}[<span class="nsfw">NSFW</span>]{{end}}
+ </span>
+ <br>
+ {{if (ne .Post.IMG "")}}
+ <a href="{{.Post.IMG}}" title="open/download image"><img src="{{.Post.IMG}}" width="50%"></a>
+ <br>
+ {{end}}
+ {{if (ne .Tags "")}}
+ {{.Tags}}<br>
+ {{end}}
+ <span>Published: <strong>{{.StringTime}}</strong>; Views: <strong>{{.Post.Deviation.Stats.Views}}</strong>; Favourites: <strong>{{.Post.Deviation.Stats.Favourites}}</strong>; Downloads: <strong>{{.Post.Deviation.Stats.Downloads}}</strong></span>
+ {{if (ne .Post.Description "")}}
+ {{.Post.Description}}
+ {{end}}
+ {{if (ne .Comments "")}}
+ {{.Comments}}
+ {{end}}
+ </figure>
+ </main>
+</html> \ No newline at end of file
diff --git a/html/index.htm b/html/index.htm
new file mode 100644
index 0000000..e754884
--- /dev/null
+++ b/html/index.htm
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>SkunkyArt</title>
+ <link rel="stylesheet" href="gui/css/skunky.css"
+ </head>
+ <main>
+ <center>
+ <form method="get" action="search">
+ <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
+ <select name="type">
+ <option value="all">All</option>
+ <option value="tag">Tag</option>
+ </select>
+ <button type="submit">Search!</button>
+ </form>
+ <h1><a href="dd">Daily Deviations</a> | <a href="about">About</a> | <a href="https://git.macaw.me/skunky/SkunkyArt" target="_blank">Source Code</a></h1>
+ </center>
+ </main>
+</html> \ No newline at end of file
diff --git a/html/search.htm b/html/search.htm
new file mode 100644
index 0000000..4ef9fbd
--- /dev/null
+++ b/html/search.htm
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>SkunkyArt | Search</title>
+ <link rel="stylesheet" href="/gui/css/skunky.css">
+ </head>
+ <main>
+ <header>
+ <h1><a href="/">HOME</a> | <a href="/dd">DD</a></h1>
+ <form method="get" action="search">
+ <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false">
+ <select name="type">
+ <option value="all">All</option>
+ <option value="tag">Tag</option>
+ </select>
+ <button type="submit">Search!</button>
+ </form>
+ </header>
+ {{if (ne .List "")}}
+ {{if (ne .Search.Total 0)}}
+ <h1>Total resuls: {{.Search.Total}}</h1>
+ {{end}}
+ {{.List}}
+ {{.Search.Pages}}
+ {{else}}
+ <p>No results :(</p>
+ {{end}}
+ </main>
+</html> \ No newline at end of file