Lot of thing

This commit is contained in:
Greg Burri 2020-05-20 17:25:56 +02:00
parent 3ebbe8172b
commit e2e54b8f43
12 changed files with 421 additions and 227 deletions

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Recettes de cuisine</title>
<link rel="stylesheet" type="text/css" href="/static/style.css" />
</head>
<body>
<div class="header-container"><h1><a href="/">RECIPES</a></h1></div>
<div class="main-container">
{% block main_container %}{% endblock %}
</div>
<div class="footer-container">gburri - 2020</div>
</body>
</html>

View file

@ -0,0 +1,14 @@
{% extends "base.html" %}
{% block main_container %}
<div class="list">
<ul>
{% for recipe in recipes %}
<li><a href="/recipe/view/{{ recipe.id }}">{{ recipe.title|escape }}</a></li>
{% endfor %}
</ul>
</div>
<div class="content">
{% block content %}{% endblock %}
</div>
{% endblock %}

View file

@ -0,0 +1,5 @@
{% extends "base_with_list.html" %}
{% block content %}
HOME
{% endblock %}

View file

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Recettes de cuisine</title>
<link rel="stylesheet" type="text/css" href="static/style.css" />
</head>
<body>
<div class="container">
<h1>{{ test }}</h1>
</div>
<p>Text to test the new font.</p>
<p>=> [|1, 2, 3|] <-</p>
</body>
</html>

View file

@ -0,0 +1,7 @@
{% extends "base_with_list.html" %}
{% block content %}
{{ current_recipe.title }}
{% endblock %}