This repository has been archived on 2024-05-13. You can view files and clone it, but cannot push or open issues or pull requests.
share2fedi/src/index.pug

64 lines
2.4 KiB
Text
Raw Normal View History

//-
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")
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
link(rel="stylesheet", href="main.css")
link(rel="stylesheet", href="https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Roboto:wght@400;500&display=swap")
2020-09-23 20:12:32 -05:00
link(rel='apple-touch-icon' sizes='180x180' href='./icons/apple-touch-icon.png')
link(rel='icon' type='image/png' sizes='32x32' href='./icons/favicon-32x32.png')
link(rel='icon' type='image/png' sizes='16x16' href='./icons/favicon-16x16.png')
link(rel='manifest' href='./icons/site.webmanifest')
link(rel='mask-icon' href='./icons/safari-pinned-tab.svg' color='#3088d4')
link(rel='shortcut icon' href='./icons/favicon.ico')
meta(name='msapplication-TileColor' content='#1f232b')
meta(name='msapplication-config' content='./icons/browserconfig.xml')
meta(name='theme-color' content='#1f232b')
body
header
h1 🐘 toot
p Quickly post on any Mastodon instance
main
form#form
section
label(for="text") Post text
textarea#text(rows=6, name="text", required)
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
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
section.submit
input(type="submit", value="Toot!")
footer
section
a(href="https://joinmastodon.org/") What is Mastodon?
section
a(href="https://github.com/NickKaramoff/toot") This project on GitHub
2020-09-23 09:08:38 -05:00
script(src="index.js")