From eef88ae31d31894e37460c5b9e25d1e0fcdccef4 Mon Sep 17 00:00:00 2001 From: f0x52 Date: Tue, 13 Jul 2021 18:40:47 +0200 Subject: [PATCH] frontpage template tweaks (#99) --- web/assets/bundle.css | 10 +++++----- web/source/style.css | 8 ++++---- web/template/index.tmpl | 14 ++++++-------- 3 files changed, 15 insertions(+), 17 deletions(-) diff --git a/web/assets/bundle.css b/web/assets/bundle.css index ab81b9b3d..7d4eae172 100644 --- a/web/assets/bundle.css +++ b/web/assets/bundle.css @@ -27,11 +27,11 @@ body header, body footer, body .fullWidth { grid-column: 1/-1; } -body aside.left { +body .left { grid-column: 1; } -body aside.right { +body .right { grid-column: 3; } @@ -81,11 +81,11 @@ a { color: #de8957; } -aside.logo { +.logo { justify-self: center; } -aside.logo img { +.logo img { height: 30vh; } @@ -164,7 +164,7 @@ footer a { grid-template-columns: 1fr 92% 1fr; } - body footer, body aside.left, body aside.right { + body footer, body .left, body .right { grid-column: 2; } diff --git a/web/source/style.css b/web/source/style.css index 7507460f2..992e538b0 100644 --- a/web/source/style.css +++ b/web/source/style.css @@ -34,11 +34,11 @@ body { grid-column: 1/-1; } - aside.left { + .left { grid-column: 1; } - aside.right { + .right { grid-column: 3; } } @@ -89,7 +89,7 @@ a { color: $acc1; } -aside.logo { +.logo { justify-self: center; img { height: 30vh; @@ -171,7 +171,7 @@ footer { body { grid-template-columns: 1fr 92% 1fr; - footer, aside.left, aside.right { + footer, .left, .right { grid-column: 2; } } diff --git a/web/template/index.tmpl b/web/template/index.tmpl index de84d430f..6751c9bd2 100644 --- a/web/template/index.tmpl +++ b/web/template/index.tmpl @@ -1,16 +1,14 @@ {{ template "header.tmpl" .}} - +

Home to {{.instance.Stats.user_count}} users who posted {{.instance.Stats.status_count}} statuses, federating with {{.instance.Stats.domain_count}} other instances.

- -

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

-

+

{{.instance.ShortDescription |noescape}} -

+
@@ -24,7 +22,7 @@
-

Pinafore

+

Pinafore

Pinafore is a web client designed for speed and simplicity.

Use Pinafore
@@ -32,7 +30,7 @@
-

Tusky

+

Tusky

Tusky is a lightweight mobile client for Android

Get Tusky