mirror of
https://git.macaw.me/skunky/SkunkyArt.git
synced 2025-04-28 12:05:06 +03:00
альфа: работают только посты и поиск
This commit is contained in:
commit
6f872fe2f7
12 changed files with 544 additions and 0 deletions
23
html/about.htm
Normal file
23
html/about.htm
Normal file
|
@ -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>
|
44
html/deviantion.htm
Normal file
44
html/deviantion.htm
Normal file
|
@ -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>
|
20
html/index.htm
Normal file
20
html/index.htm
Normal file
|
@ -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>
|
29
html/search.htm
Normal file
29
html/search.htm
Normal file
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue