2021-01-29 18:48:40 -05:00
|
|
|
//-
|
|
|
|
toot - Cross-instance share page for Mastodon
|
|
|
|
Copyright (C) 2020-2021 Nikita Karamov <nick@karamoff.dev>
|
|
|
|
|
|
|
|
This program is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published
|
|
|
|
by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
2020-09-23 09:08:38 -05:00
|
|
|
<!DOCTYPE html>
|
|
|
|
html(lang="en")
|
2021-01-29 16:56:37 -05:00
|
|
|
head
|
|
|
|
meta(charset="UTF-8")
|
|
|
|
meta(name="viewport", content="width=device-width, initial-scale=1.0")
|
|
|
|
title toot
|
2020-09-23 09:08:38 -05:00
|
|
|
|
2021-01-29 16:56:37 -05:00
|
|
|
link(rel="stylesheet", href="main.css")
|
2021-01-30 08:32:09 -05:00
|
|
|
link(rel="preconnect", href="https://fonts.gstatic.com" crossorigin)
|
|
|
|
|
|
|
|
link(href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="preload" as="style")
|
|
|
|
link(href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet" media="print" onload="this.media='all'")
|
|
|
|
noscript
|
|
|
|
link(href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet")
|
2020-09-23 20:12:32 -05:00
|
|
|
|
2021-01-30 08:27:29 -05:00
|
|
|
link(rel='icon' href='/favicon.ico')
|
|
|
|
link(rel='icon' type='image/svg+xml' href='/apple-touch-icon.png')
|
|
|
|
link(rel='apple-touch-icon' href='./icons/apple-touch-icon.png')
|
|
|
|
link(rel='manifest' href='/site.webmanifest')
|
|
|
|
meta(name='theme-color' content='#3088d4')
|
2021-01-29 16:56:37 -05:00
|
|
|
body
|
|
|
|
header
|
2021-01-30 08:28:35 -05:00
|
|
|
h1
|
|
|
|
img(src="/icon.svg" width=72 height=72 alt="toot")
|
2021-01-30 08:56:17 -05:00
|
|
|
p
|
2021-03-12 15:08:53 -05:00
|
|
|
| for
|
2021-01-30 08:56:17 -05:00
|
|
|
img(src="/mastodon.svg" width=95.5 height=27)
|
2021-01-29 16:56:37 -05:00
|
|
|
main
|
|
|
|
form#form
|
|
|
|
section
|
|
|
|
label(for="text") Post text
|
2021-03-12 15:20:34 -05:00
|
|
|
textarea#text(rows=6, name="text", placeholder="What's on your mind?",required)
|
2021-01-29 16:56:37 -05:00
|
|
|
section
|
|
|
|
datalist#instances_list
|
|
|
|
label(for="choose_instance") Choose your Mastodon instance
|
|
|
|
input#instance(type="url", name="instance", placeholder="https://", list="instances_list", required)
|
2020-09-23 09:08:38 -05:00
|
|
|
|
2021-01-29 16:56:37 -05:00
|
|
|
section.remember
|
|
|
|
input#remember(type="checkbox", name="remember")
|
|
|
|
label(for="remember") Remember my instance on this device
|
2020-09-23 09:08:38 -05:00
|
|
|
|
2021-01-29 16:56:37 -05:00
|
|
|
section.submit
|
2021-03-12 15:20:25 -05:00
|
|
|
input(type="submit", value="TOOT!")
|
2021-01-29 16:56:37 -05:00
|
|
|
footer
|
|
|
|
section
|
|
|
|
a(href="https://joinmastodon.org/") What is Mastodon?
|
|
|
|
section
|
2021-03-12 15:16:02 -05:00
|
|
|
a(href="https://github.com/NickKaramoff/toot") toot on GitHub
|
2020-09-23 09:08:38 -05:00
|
|
|
|
2021-01-29 16:56:37 -05:00
|
|
|
script(src="index.js")
|