From 0775ec9b457bfff5917d3a45dd9246a88e914ba3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 6 Jan 2021 23:57:06 +0100 Subject: [PATCH] styling for front page and and channel create page --- channel.sh | 3 ++- webchat.css | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/channel.sh b/channel.sh index dfa6528..f8c97a4 100755 --- a/channel.sh +++ b/channel.sh @@ -53,9 +53,10 @@ nicklist(){ if [ ! -f "$chatfile" ]; then yield_page create <<-EOF + [h1 No such Channel] [form #nonexist method="POST" There is no channel named $(HTML "$LOCATION") - [submit "action" "create" Create] + [submit "action" "create" Set Up] ] EOF else diff --git a/webchat.css b/webchat.css index f2b6931..457b632 100644 --- a/webchat.css +++ b/webchat.css @@ -172,3 +172,40 @@ form#channel button[value=submit] { display: none; } #chat div.nicklist a.nick { color: #00F; } + +body.create, +body.front { + text-align: center; +} +body.create h1, +body.front h1 { + font-size: 1.25em; + font-weight: bold; + margin: 2em 1ex 1em 1ex; +} +body.front h2 { + font-weight: bold; + margin: 2em 1ex 1em 1ex; +} + +body.front label { + font-weight: bold; +} + +body.front #channels { + display: block; + margin: auto; + width: 20em; max-width: 100%; + text-align: left; +} +body.front #channels a { + display: block; + color: #44F; + text-decoration: underline; + margin: .5em 0 0 0; +} + +body.create button { + display: block; + margin: 1em auto; +} -- 2.39.2