gourami

[UNMAINTAINED] Activitypub server in Rust
Log | Files | Refs | README | LICENSE

commit 75d0a9e4e56c7bce5a7463c3e0d64726b827b40c
parent 6c250bcb96556b5df652bc4b56058a3eea35fe84
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Tue, 14 Apr 2020 20:22:13 -0500

Create very basic CSS template

bare bones, I don't have much CSS experience

Diffstat:
Mstatic/css/style.css | 40+++++++++++++++++++++++++++++++++++++++-
Mtemplates/base.html | 30+++++++++++++++---------------
2 files changed, 54 insertions(+), 16 deletions(-)

diff --git a/static/css/style.css b/static/css/style.css @@ -1 +1,39 @@ -a +.monospace { + font-family: "courier", monospace +} + +.title { + font-weight: 900; +} + +.navbar { + border: 1px solid black; + font-size:2rem; +} + +.text-right { + text-align: right; +} + +.text-center { + text-align: center; +} + +.text-left { + text-align: left; +} +.main-content { + border: 1px solid black; +} + +.footer { + border: 1px solid black; +} + +.white { + background-color: white; +} + +body { + background-color: lightgrey; +} diff --git a/templates/base.html b/templates/base.html @@ -2,29 +2,29 @@ <html lang="en"> <head> <title>{{title}}</title> - <link rel="stylesheet" type="text/css" href="static/css/style.css"> - <link rel="stylesheet" type="text/css" href="static/css/bootstrap-grid.min.css"> + <link rel="stylesheet" type="text/css" href="../static/css/style.css"> + <link rel="stylesheet" type="text/css" href="../static/css/bootstrap-grid.min.css"> </head> - <body> - <div class="container"> + <body class="monospace"> + <div class="container white"> <div id="header"> - <div id="row"> + <div class="row navbar"> <div class="col-sm"> - gourami t n d - </div> - <div class="col-sm text-right"> - logged in / logged out -- you + <div class="title">gourami/{{page}}</div> </div> + <div class="col-sm text-center">t n d</div> + <div class="col-sm text-right"> + logged out </div> </div> - <div id="content"> - <div id="row"> - size here - {% block content %}{% endblock %} - </div> </div> - <div id="footer"> + <div class="row main-content"> + size here + {% block content %}{% endblock %} + </div> + <div class="row footer"> Built with <a href="https://git.sr.ht/~alexwennerberg/gourami-social">gourami</a> </div> + </div> </body> </html>