Added simple web page, routes are in a separate file
This commit is contained in:
parent
9ead8a457c
commit
c7da7e32b7
9 changed files with 168 additions and 7 deletions
11
templates/404.html
Normal file
11
templates/404.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}404{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>404: Not Found</h1>
|
||||
<p>
|
||||
Go to the
|
||||
<a href="/">main page</a>
|
||||
</p>
|
||||
{% endblock %}
|
15
templates/500.html
Normal file
15
templates/500.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}500{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>500: ISE</h1>
|
||||
<p>
|
||||
An error occured while
|
||||
processing your request.
|
||||
</p>
|
||||
<p>
|
||||
Please, try again later
|
||||
or contact web site admin.
|
||||
</p>
|
||||
{% endblock %}
|
18
templates/base.html
Normal file
18
templates/base.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="${REPO_DESCRIPTION}">
|
||||
<title>{% block title %}{% endblock %} | ${REPO_NAME}</title>
|
||||
<link rel="stylesheet" href="/static/css/style.css">
|
||||
<script src="/static/js/script.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<header>${REPO_NAME}</header>
|
||||
<article>
|
||||
{% block content %}{% endblock %}
|
||||
</article>
|
||||
<footer id="js"></footer>
|
||||
</body>
|
||||
</html>
|
12
templates/index.html
Normal file
12
templates/index.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Main page{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>
|
||||
This is the default main page of
|
||||
<a href="https://git.dc09.ru/DarkCat09/tmpl-flask">
|
||||
Flask app template
|
||||
</a>
|
||||
</h1>
|
||||
{% endblock %}
|
Loading…
Add table
Reference in a new issue