Add Mastodon branding (#8)

from NickKaramoff/mastodon-branding
This commit is contained in:
Nikita Karamov 2021-03-17 08:43:51 +01:00 committed by GitHub
commit 61531e52c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 17 deletions

View file

@ -39,6 +39,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- License changed from MIT to AGPL-3.0 - License changed from MIT to AGPL-3.0
- Add new, Mastodon-like logo (#6) - Add new, Mastodon-like logo (#6)
- Change "Mastodon" text to Mastodon's logo (#6)
## [1.0.0] - 2021-01-29 ## [1.0.0] - 2021-01-29

View file

@ -39,12 +39,14 @@ html(lang="en")
header header
h1 h1
img(src="/icon.svg" width=72 height=72 alt="toot") img(src="/icon.svg" width=72 height=72 alt="toot")
p Quickly post on any Mastodon instance p
| for
img(src="/mastodon.svg" width=95.5 height=27)
main main
form#form form#form
section section
label(for="text") Post text label(for="text") Post text
textarea#text(rows=6, name="text", required) textarea#text(rows=6, name="text", placeholder="What's on your mind?",required)
section section
datalist#instances_list datalist#instances_list
label(for="choose_instance") Choose your Mastodon instance label(for="choose_instance") Choose your Mastodon instance
@ -55,11 +57,11 @@ html(lang="en")
label(for="remember") Remember my instance on this device label(for="remember") Remember my instance on this device
section.submit section.submit
input(type="submit", value="Toot!") input(type="submit", value="TOOT!")
footer footer
section section
a(href="https://joinmastodon.org/") What is Mastodon? a(href="https://joinmastodon.org/") What is Mastodon?
section section
a(href="https://github.com/NickKaramoff/toot") This project on GitHub a(href="https://github.com/NickKaramoff/toot") toot on GitHub
script(src="index.js") script(src="index.js")

1
src/static/mastodon.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 4.9 KiB

View file

@ -22,10 +22,10 @@ $bg: #1F232B;
$text: #9baec8; $text: #9baec8;
$title:#d9e1e8; $title:#d9e1e8;
$footer-bg: #16191F; $button-bg: #2b90d9;
$button-hover-bg: #56a7e1;
$button-bg: #3c99dc;
$button-hover-bg: #4ea2df;
$button-text: white; $button-text: white;
$input-bg: #131419; $input-bg: #131419;
$border-color: #303643;

View file

@ -46,15 +46,27 @@ body {
} }
header { header {
border-bottom: 1px solid $border-color;
padding: 1.5rem 0;
text-align: center; text-align: center;
padding-top: 2rem; width: 100%;
h1 { h1 {
margin: 0 0 8px; display: inline-block;
margin: 0 1rem 0 0;
vertical-align: middle;
} }
p { p {
margin: 0 0 26px; display: inline-block;
line-height: 1.2rem;
margin: 0;
text-align: left;
vertical-align: middle;
img {
vertical-align: middle;
}
} }
} }
@ -100,7 +112,8 @@ main {
color: $button-text; color: $button-text;
font-weight: 500; font-weight: 500;
font-family: inherit; font-family: inherit;
padding: 4px 16px; height: 2.5rem;
padding: 0 1rem;
line-height: 36px; line-height: 36px;
border: 0; border: 0;
cursor: pointer; cursor: pointer;
@ -139,8 +152,8 @@ main {
} }
footer { footer {
background-color: $footer-bg; border-top: 1px solid $border-color;
padding: 0.5rem 0; padding: 1rem 0;
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
@ -153,12 +166,11 @@ footer {
a { a {
color: inherit; color: inherit;
text-decoration: none;
&:hover { &:hover {
color: $title; text-decoration: underline;
} }
transition: color 300ms ease;
} }
} }
} }