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/index.htm | |
| 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/index.htm')
| -rw-r--r-- | static/html/index.htm | 74 |
1 files changed, 71 insertions, 3 deletions
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 |
