Create base template and stylesheet

This commit is contained in:
Amma 2019-04-10 19:59:04 +02:00
parent 969b730291
commit 4bcfd6dada
3 changed files with 16 additions and 10 deletions

4
static/main.css Normal file
View File

@ -0,0 +1,4 @@
html{
font-family:'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
font-size:0.9em;
}

11
templates/base.html Normal file
View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{{ title }}</title>
<link rel="stylesheet" href="{{ url_for('static', filename='main.css') }}"
</head>
<body>
<p>{{ text }}</p>
</body>
</html>

View File

@ -1,10 +1 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>{{ title }}</title>
</head>
<body>
<p>{{ text }}</p>
</body>
</html>
{% extends "base.html" %}