From f9bc305acaaf26bf3c5ef4ae49f7b5a20c9c1dfe Mon Sep 17 00:00:00 2001 From: f0x52 Date: Mon, 21 Jun 2021 19:46:10 +0200 Subject: new styling for frontpage, update login and authorize templates (#46) * new styling for frontpage, update login and authorize templates * run go fmt * add AssetBaseDir to command flag parsing * untested: move landing page to it's own router * go fmt, fix typo * fix package, adapt to proper Route structure --- web/template/authorize.tmpl | 43 ++++++++++++----------------------------- web/template/footer.tmpl | 13 +++++++++++++ web/template/header.tmpl | 16 +++++++++++++++ web/template/index.tmpl | 47 +++++++++++++++++++++++++++++++++++++++++++++ web/template/sign-in.tmpl | 41 +++++++++++++-------------------------- 5 files changed, 101 insertions(+), 59 deletions(-) create mode 100644 web/template/footer.tmpl create mode 100644 web/template/header.tmpl create mode 100644 web/template/index.tmpl (limited to 'web/template') diff --git a/web/template/authorize.tmpl b/web/template/authorize.tmpl index fa6338b35..bc609ed66 100644 --- a/web/template/authorize.tmpl +++ b/web/template/authorize.tmpl @@ -1,34 +1,15 @@ - - - - - GoToSocial Authorization - - - - - - -
-
-
-

Hi {{.user}}!

-

Application {{.appname}} {{if len .appwebsite | eq 0 | not}}({{.appwebsite}}) {{end}}would like to perform actions on your behalf, with scope {{.scope}}.

-

The application will redirect to {{.redirect}} to continue.

-

+{{ template "header.tmpl" .}} + +

Hi {{.user}}!

+

Application {{.appname}} {{if len .appwebsite | eq 0 | not}}({{.appwebsite}}) {{end}}would like to perform actions on your behalf, with scope {{.scope}}.

+

The application will redirect to {{.redirect}} to continue.

+

-

-
-
-
- - +

+ +{{ template "footer.tmpl" .}} \ No newline at end of file diff --git a/web/template/footer.tmpl b/web/template/footer.tmpl new file mode 100644 index 000000000..19e9cdbc4 --- /dev/null +++ b/web/template/footer.tmpl @@ -0,0 +1,13 @@ + + + + \ No newline at end of file diff --git a/web/template/header.tmpl b/web/template/header.tmpl new file mode 100644 index 000000000..62ed66de8 --- /dev/null +++ b/web/template/header.tmpl @@ -0,0 +1,16 @@ + + + + + + + + + {{.instance.Title}} - GoToSocial + + +
+

+ {{.instance.Title}} +

+
\ No newline at end of file diff --git a/web/template/index.tmpl b/web/template/index.tmpl new file mode 100644 index 000000000..8d431b8d3 --- /dev/null +++ b/web/template/index.tmpl @@ -0,0 +1,47 @@ +{{ template "header.tmpl" .}} + +
+ +

Home to 3 users + who posted 42069 statuses, + federating with 9001 other instances.

+ +

This is the default landing page, you can edit it from ./web/template/index.tmpl

+ +
+ +
+

+ GoToSocial does not provide it's own frontend, but implements the Mastodon client API. + You can use this server through a variety of clients: +

+
+
+ +
+

Pinafore

+

Pinafore is a web client designed for speed and simplicity.

+ Use Pinafore +
+
+
+ +
+

Tusky

+

Tusky is a lightweight mobile client for Android

+ Get Tusky +
+
+
+
+{{ template "footer.tmpl" .}} \ No newline at end of file diff --git a/web/template/sign-in.tmpl b/web/template/sign-in.tmpl index b7aa7c702..cfe932b3a 100644 --- a/web/template/sign-in.tmpl +++ b/web/template/sign-in.tmpl @@ -1,28 +1,13 @@ - - - - - Login - - - - - - -
-

Login

-
-
- - -
-
- - -
- -
-
- - - +{{ template "header.tmpl" .}} +
+

Login

+
+ + + + + + +
+
+{{ template "footer.tmpl" .}} -- cgit v1.3