Lot of thing
This commit is contained in:
parent
3ebbe8172b
commit
e2e54b8f43
12 changed files with 421 additions and 227 deletions
17
backend/templates/base.html
Normal file
17
backend/templates/base.html
Normal 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>
|
||||
14
backend/templates/base_with_list.html
Normal file
14
backend/templates/base_with_list.html
Normal 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 %}
|
||||
5
backend/templates/home.html
Normal file
5
backend/templates/home.html
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{% extends "base_with_list.html" %}
|
||||
|
||||
{% block content %}
|
||||
HOME
|
||||
{% endblock %}
|
||||
|
|
@ -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>
|
||||
7
backend/templates/view_recipe.html
Normal file
7
backend/templates/view_recipe.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{% extends "base_with_list.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{{ current_recipe.title }}
|
||||
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue