From 1d9f90db00b64a8e5198676f177e4946454d6721 Mon Sep 17 00:00:00 2001 From: kaikubasta Date: Wed, 10 Feb 2016 22:09:38 +0100 Subject: [PATCH] new templates, add css accessible, responsive, minimalistic --- templates/accountform.html | 47 +++++++++++++++----- templates/css/style.css | 88 ++++++++++++++++++++++++++++++++++++++ templates/error.html | 6 ++- templates/feedset.html | 8 ++-- templates/index.html | 35 ++++++++++----- templates/list.html | 14 +++--- templates/partials.html | 38 +++++++++++++--- templates/signupform.html | 39 +++++++++++++---- 8 files changed, 230 insertions(+), 45 deletions(-) create mode 100644 templates/css/style.css diff --git a/templates/accountform.html b/templates/accountform.html index dcec5a5..d730a3b 100644 --- a/templates/accountform.html +++ b/templates/accountform.html @@ -1,12 +1,39 @@ {{ template "header" }} -

edit account

-
- E-mail:
- New password:
- New password (repeat):
-
- Name:
- Old password:
- -
+
+
+ Edit account + +
+ + +

Used for password reset and feed owner authentication.

+
+ +
+ + +
+ +
+ + +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
{{ template "footer" }} diff --git a/templates/css/style.css b/templates/css/style.css new file mode 100644 index 0000000..ef1ef42 --- /dev/null +++ b/templates/css/style.css @@ -0,0 +1,88 @@ +body { + background-color: white; + color: black; + font: 1rem/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Open Sans', 'Helvetica Neue', sans-serif; + max-width: 30rem; + padding: 0 1rem; + margin: 0 auto; +} + +a { + color: #00c; +} + +a:hover { + background-color: #00c; + color: white; +} + +a:focus { + outline: thin solid; +} + +header, +nav, +footer { + text-align: center; +} + +nav ul { + list-style: none; + padding-left: 0; +} + +nav li { + display: inline-block; + margin: 0 .5rem; +} + +section, +fieldset { + background-color: #eee; + padding: 1rem; + border: 1px solid black; +} + +section.success { + background-color: #cfc; +} + +section.error { + background-color: #fcc; +} + +section h2:first-child { + margin-top: 0; +} + +form div { + margin-bottom: 1rem; +} + +form p, +label span { + color: #444; + font-size: .8rem; +} + +form p { + margin: 0; +} + +legend, +label { + font-weight: bold; +} + +label { + display: block; +} + +button, +input { + font-size: 1rem; +} + +input#twt { + width: 100%; +} diff --git a/templates/error.html b/templates/error.html index 0cda565..f44c1f0 100644 --- a/templates/error.html +++ b/templates/error.html @@ -1,4 +1,6 @@ {{ template "header" }} -

error

-

Something went wrong: {{ .Msg }}

+
+

Error

+

Something went wrong: {{ .Msg }}

+
{{ template "footer" }} diff --git a/templates/feedset.html b/templates/feedset.html index df1154b..d5be2e7 100644 --- a/templates/feedset.html +++ b/templates/feedset.html @@ -1,6 +1,6 @@ {{ template "header" }} -

feed setup

-

- Feed successfully set. -

+
+

Success

+

Your account has been created.

+
{{ template "footer" }} diff --git a/templates/index.html b/templates/index.html index ee334ce..1972ca8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,12 +1,27 @@ {{ template "header" }} -

publish a twtxt

-
- Message:
- Name: - Password:
- -
- No feed yet? Create one!
- Also, check out other people's feeds
- Or edit your account settings. +
+
+ Send tweet + +
+ + +

Max. 140 characters

+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
{{ template "footer" }} diff --git a/templates/list.html b/templates/list.html index afbfdb1..f851d1d 100644 --- a/templates/list.html +++ b/templates/list.html @@ -1,8 +1,10 @@ {{ template "header" }} -

list of feeds

- +
+

Feeds

+ +
{{ template "footer" }} diff --git a/templates/partials.html b/templates/partials.html index a7d7911..2422213 100644 --- a/templates/partials.html +++ b/templates/partials.html @@ -1,10 +1,38 @@ {{ define "header" }} - - hosted twtxt server -
+ + + + + + + + + hosted twtxt server + + + + + + + +
+

hosted twtxt server

+
+ + {{ end }} {{ define "footer" }} -
-

This project is licensed under the AGPLv3, source code here.

+ + + + {{ end }} diff --git a/templates/signupform.html b/templates/signupform.html index bf49183..82ea936 100644 --- a/templates/signupform.html +++ b/templates/signupform.html @@ -1,10 +1,33 @@ {{ template "header" }} -

sign up

-
- Name: (only up to 140 legal chars: A-Z, a-z, 0-1, _)
- Password:
- Password (repeat):
- E-mail: (optional; stored internally to reach and/or identify you when there's trouble with your feed, you want to reset your password, etc.; in any such communication, communicating from an address provided here is a necessary condition for you to be treated as the owner of your feed)
- -
+
+
+ Create account + +
+ + +

Legal characters: A-Z, a-z, 0-9, _ (max. 140)

+
+ +
+ + +

Used for password reset and feed owner authentication.

+
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
{{ template "footer" }}