diff options
| author | lost+skunk <[email protected]> | 2024-09-23 09:38:32 +0300 |
|---|---|---|
| committer | lost+skunk <[email protected]> | 2024-09-23 09:38:32 +0300 |
| commit | 191984b31ef228c4077904a2831a2af593352670 (patch) | |
| tree | 33d8dd464d525ce2ad8c92a749436f1c12442800 /static/html | |
| parent | c39399403e031a8c1ad53969770e4261d2c9e7aa (diff) | |
| download | skunky-art-1.3.2.tar.gz skunky-art-1.3.2.tar.bz2 skunky-art-1.3.2.zip | |
v1.3.2v1.3.2
Diffstat (limited to 'static/html')
| -rw-r--r-- | static/html/about.htm | 2 | ||||
| -rw-r--r-- | static/html/head.htm | 1 | ||||
| -rw-r--r-- | static/html/index.htm | 74 |
3 files changed, 73 insertions, 4 deletions
diff --git a/static/html/about.htm b/static/html/about.htm index 94bbf5c..eac4e47 100644 --- a/static/html/about.htm +++ b/static/html/about.htm @@ -6,7 +6,7 @@ <p> SkunkyArt is an alternative frontend for deviantart.com, written in Go. </p> - <h3><a href="https://go.kde.org/matrix/#/#skunkyart:ebloid.ru" target="_blank">Room in Matrix</a></h3> + <h3><a href="https://go.kde.org/matrix/#/#skunkyart:ebloid.ru" target="_blank">Room in [matrix]</a></h3> <b>Instance settings:</b> <ul> <li><b>NSFW</b>: <span class="about-{{.Templates.About.Nsfw}}">{{if .Templates.About.Nsfw}}YES{{else}}NO{{end}}</span></li> diff --git a/static/html/head.htm b/static/html/head.htm index 08ecf45..aa36c73 100644 --- a/static/html/head.htm +++ b/static/html/head.htm @@ -21,5 +21,6 @@ <meta name="referrer" content="no-referrer" /> <link rel="stylesheet" href="{{.BasePath}}stylesheet"> <link rel="icon" type="image/x-icon" href="{{.BasePath}}favicon.ico"> + <meta name="viewport" content="width=device-width, height=device-height, initial-scale=0.4, user-scalable=no; user-scalable=0"/> </head> {{end}}
\ No newline at end of file diff --git a/static/html/index.htm b/static/html/index.htm index 08feba5..219bb97 100644 --- a/static/html/index.htm +++ b/static/html/index.htm @@ -4,9 +4,75 @@ <title>SkunkyArt</title> <link rel="stylesheet" href="{{.}}stylesheet"/> <link rel="icon" type="image/x-icon" href="{{.}}favicon.ico"> + <meta name="viewport" content="width=device-width, height=device-height, initial-scale=0.4, user-scalable=no; user-scalable=0"/> + + <style> + main { + display: flex; + max-width: fit-content; + position: absolute; + top: 50%; + right: 50%; + transform: translate(50%, -50%); + } + div { + transform: translate(0, 50%); + margin-left: 4%; + flex-basis: 100%; + height: 30%; + display: block; + max-width: fit-content; + } + div h1, form { + margin: 0; + } + div form { + font-size: 100%; + max-width: 100% + } + div form input { + width: 100% + } + img { + width: 30%; + height: 30%; + } + + @media (orientation: portrait) { + main { + display: block; + width: 200%; + } + img { + width: 100%; + height: 100%; + } + form { + width: 200%; + } + div { + margin: -25%; + margin-top: auto; + width: 200%; + } + div h1 { + text-align: center; + } + } + @media (max-width: 1155px) and (orientation: landscape) { + img { + width: 50%; + } + div { + transform: none; + } + } + </style> </head> <main> - <center> + <img src="{{.}}favicon.ico" title="SkunkyArt logo" draggable="false"> + <div> + <h1><a href="{{.}}dd">Daily Deviations</a> | <a href="{{.}}about">About</a></h1> <form method="get" action="{{.}}search"> <input type="text" name="q" placeholder="Search for ..." autocomplete="off" autocapitalize="none" spellcheck="false"> <select name="type"> @@ -16,7 +82,9 @@ </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> + <h1 style="margin-top: 5%; font-size: 200%; text-align: center;"> + <a href="https://git.macaw.me/skunky/SkunkyArt" target="_blank" title="Source Code">SkunkyArt</a> + </h1> + </div> </main> </html>
\ No newline at end of file |
