Add base jinja template.
This commit is contained in:
parent
fb54a9c2e0
commit
17494ca4df
|
@ -0,0 +1,22 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<title>{% block title %}UnderCover{% endblock title %}</title>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles_min.css') }}">
|
||||||
|
<link rel="icon" href="{{ url_for('static', filename='favicon.png') }}" />
|
||||||
|
<meta name="viewport" content="user-scalable=no; width=device-width">
|
||||||
|
{% block head %}{{ head }}{% endblock head %}
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<a href="/" style="text-decoration: none;">
|
||||||
|
<h1><span class="logo left">Under</span><span class="logo right">Cover</span></h1>
|
||||||
|
</a>
|
||||||
|
<h2>The secret cover letter generator</h2>
|
||||||
|
{% block content %}
|
||||||
|
{{ content }}
|
||||||
|
{% endblock content %}
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
|
@ -1,12 +1,8 @@
|
||||||
<!doctype html>
|
{% extends "base.jinja2" %}
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
{% block title %}UnderCover{% endblock %}
|
||||||
<title>UnderCover</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles_min.css') }}">
|
|
||||||
<link rel="icon" href="{{ url_for('static', filename='favicon.png') }}" />
|
|
||||||
<meta name="viewport" content="user-scalable=no; width=device-width">
|
|
||||||
|
|
||||||
|
{% block head %}
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onload = () => {
|
window.onload = () => {
|
||||||
{% if errors %}
|
{% if errors %}
|
||||||
|
@ -34,13 +30,9 @@
|
||||||
e.parentNode.removeChild(e)
|
e.parentNode.removeChild(e)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</head>
|
{% endblock head %}
|
||||||
|
|
||||||
<body>
|
{% block content %}
|
||||||
<a href="/" style="text-decoration: none;">
|
|
||||||
<h1><span class="logo left">Under</span><span class="logo right">Cover</span></h1>
|
|
||||||
</a>
|
|
||||||
<h2>The secret cover letter generator</h2>
|
|
||||||
{% if username %}
|
{% if username %}
|
||||||
<div class="user logged-in">
|
<div class="user logged-in">
|
||||||
<p>You are logged in as {{ username }}</p>
|
<p>You are logged in as {{ username }}</p>
|
||||||
|
@ -99,6 +91,4 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
>Generate PDF</a>
|
>Generate PDF</a>
|
||||||
</form>
|
</form>
|
||||||
</body>
|
{% endblock content %}
|
||||||
|
|
||||||
</html>
|
|
||||||
|
|
Loading…
Reference in New Issue