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

60 lines
2.1 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 10:08:38 -04: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 10:08:38 -04: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 21:12:32 -04: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')
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 10:08:38 -04:00
section.remember
input#remember(type="checkbox", name="remember")
label(for="remember") Remember my instance on this device
2020-09-23 10:08:38 -04: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 10:08:38 -04:00
script(src="index.js")