From: Paul Hänsch Date: Wed, 6 Jan 2021 22:57:06 +0000 (+0100) Subject: styling for front page and and channel create page X-Git-Url: http://git.plutz.net/?p=httpchat;a=commitdiff_plain;h=0775ec9b457bfff5917d3a45dd9246a88e914ba3 styling for front page and and channel create page --- 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; +}