From cf86acee94652ac7cd8e8f313e6abf6c9901c398 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 3 Jul 2021 18:39:34 -0700 Subject: add some styling to news pull request --- static/anews.html | 10 +++++----- static/index.html | 25 +++++++++++-------------- static/main.html | 19 +++++++++++++++++-- static/nadmin.html | 19 +++++++++++-------- static/news.html | 6 +++--- 5 files changed, 47 insertions(+), 32 deletions(-) (limited to 'static') diff --git a/static/anews.html b/static/anews.html index 127760a..08bfdfa 100644 --- a/static/anews.html +++ b/static/anews.html @@ -22,16 +22,16 @@

{{ .Title }}

- +
{{ range $i, $e := .NewsItems }} {{ end }} diff --git a/static/index.html b/static/index.html index 61aeab8..520829e 100644 --- a/static/index.html +++ b/static/index.html @@ -20,45 +20,42 @@ {{ define "content" }}

{{ .Title }}

-

{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code here.

+

{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code at https://github.com/FChannel0.

-
Local boards
{{ range .Boards }} -
{{.Name}} - {{.PrefName}}
+
{{.Name}} - {{.PrefName}} {{ if not .Restricted }} [NSFW] {{ end }}
{{ end }} {{ range .BoardRemainer }}
{{ end }}
-
-
-
+
{{ if $.Board.ModCred }}[Delete] {{end}} - {{unixtoreadable $e.Time}} - {{$e.Title}} - {{ if eq $i 0 }} -

{{$e.Content}}

- {{ end }} + {{unixtoreadable $e.Time}} - {{$e.Title}} +

{{$e.Content}}

+
+ {{ if .NewsItems }} +
{{ .PreferredUsername }} news +

{{ .PreferredUsername }} News

- {{ range $i, $e := .NewsItems }} {{ end }}
-
{{ if $.Board.ModCred }}[Delete] {{end}} {{unixtoreadable $e.Time}} - {{$e.Title}} - {{ if eq $i 0 }} -

{{$e.Content}}

- {{ end }} +

{{$e.Content}}

+ {{ end }} -
- +
Current known instances +

Current known instances

{{ range .InstanceIndex }} diff --git a/static/main.html b/static/main.html index 70e3c23..00b395f 100644 --- a/static/main.html +++ b/static/main.html @@ -40,6 +40,14 @@ background-color: #f9f9e0; {{ end }} } + + .box { + {{ if .Board.Restricted }} + background-color: #eff5ff; + {{ else }} + background-color: #f9f9e0; + {{ end }} + } .quote { color: #789922; @@ -76,8 +84,15 @@ {{ if .Board.ModCred }} diff --git a/static/nadmin.html b/static/nadmin.html index 877e1e5..88b92c9 100644 --- a/static/nadmin.html +++ b/static/nadmin.html @@ -17,21 +17,24 @@ - + + + + + - -
-