set up docker generation

This commit is contained in:
2022-10-02 17:43:55 +02:00
parent 712320fb47
commit 0b66d4ae0d
21 changed files with 447 additions and 58 deletions

View File

@@ -0,0 +1,7 @@
{% extends "layout.html" %}
{% block title %}
About us
{% endblock %}
{% block content %}
<p>About page for the Visual Studio Code Flask tutorial.</p>
{% endblock %}

View File

@@ -0,0 +1,7 @@
{% extends "layout.html" %}
{% block title %}
Contact us
{% endblock %}
{% block content %}
<p>Contact page for the Visual Studio Code Flask tutorial.</p>
{% endblock %}

View File

@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='site.css') }}" />
<title>Hello, Flask</title>
</head>
<body>
{%if name %}
<span class="message">Hello there, {{ name }}!</span> It's {{ date.strftime("%A, %d %B, %Y at %X") }}.
{% else %}
<span class="message">What's your name? Provide it after /hello/ in the URL.</span>
{% endif %}
</body>
</html>
<!-- The above syntax makes use of jinja and it's documentation can be found over here http://jinja.pocoo.org/docs/2.10/templates/ -->

View File

@@ -0,0 +1,7 @@
{% extends "layout.html" %}
{% block title %}
Home
{% endblock %}
{% block content %}
<p>Home page for the Visual Studio Code Flask tutorial.</p>
{% endblock %}

View File

@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>{% block title %}{% endblock %}</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='site.css') }}" />
</head>
<body>
<div class="navbar">
<a href="{{ url_for('home') }}" class="navbar-brand">Home</a>
<a href="{{ url_for('about') }}" class="navbar-item">About</a>
<a href="{{ url_for('contact') }}" class="navbar-item">Contact</a>
</div>
<div class="body-content">
{% block content %}
{% endblock %}
<hr/>
<footer>
<p>&copy; 2018</p>
</footer>
</div>
</body>
</html>