diff --git a/app.py b/app.py index 4bdeb69..a56e3e2 100644 --- a/app.py +++ b/app.py @@ -9,5 +9,5 @@ app.debug = True os.system("sass static/scss/main.scss static/style/main.css") @app.route("/") -def hello_world(): +def index(): return render_template('index.html') diff --git a/static/scss/main.scss b/static/scss/main.scss index b5967e7..b8f937a 100644 --- a/static/scss/main.scss +++ b/static/scss/main.scss @@ -23,6 +23,7 @@ body { font-family: Pixeloid; color: $text; width: fit-content; + margin: 0 8px; } h1 { @@ -46,6 +47,14 @@ a { } } +header { + display: flex; + flex-direction: row-reverse; + justify-content: space-between; + background-color: $surface0; + padding: 8px; +} + .mono { font-family: PixeloidMono, monospace; background-color: $mantle; diff --git a/templates/header.tmpl b/templates/header.tmpl new file mode 100644 index 0000000..c5b2b9b --- /dev/null +++ b/templates/header.tmpl @@ -0,0 +1,10 @@ +
+ + + {%- if request.path != url_for('index') %} + Coders Squad + {% endif %} +
\ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 166afdb..b84251b 100644 --- a/templates/index.html +++ b/templates/index.html @@ -6,6 +6,8 @@ + {% include 'header.tmpl' %} +

Coders Squad

{% include 'services.tmpl' %}