Skip to content

Instantly share code, notes, and snippets.

@lorenzobn
Created September 18, 2021 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lorenzobn/2b7e6d679050d9c25f64ebae3c76620a to your computer and use it in GitHub Desktop.
Save lorenzobn/2b7e6d679050d9c25f64ebae3c76620a to your computer and use it in GitHub Desktop.
The basic layout of Flask1FA web application
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Basic Page Needs
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<meta charset="utf-8">
<title>Login page with 2FA</title>
<!-- CSS
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
<!-- Skeleton CSS -->
<link rel="stylesheet" href="/static/css/normalize.css">
<link rel="stylesheet" href="/static/css/skeleton.css">
<!-- Custom CSS file -->
<link rel="stylesheet" href="/static/css/style.css">
{% block header %}
{% endblock %}
</head>
<body>
<div class="container">
{% block body %}
{% endblock %}
<div class="row">
{% with messages = get_flashed_messages() %}
{% if messages %}
<ul class="flashes">
{% for message in messages %}
<li class="error">{{ message }}</li>
{% endfor %}
</ul>
{% endif %}
{% endwith %}
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment