Python

Create the UI

The application will use the jinja template engine to render the pages as HTML.

In a folder called views in your application directory, create the following templates:

layout.html

index.html

authenticate.html

entercode.html

<!-- errorcode.html -->

{% extends "layout.html" %}

{% block content %}
<h1>Account Verification: Step 2</h1>
<fieldset>
  <form action="/check-code" method="POST">
    <input class="ghost-input" name="code" type="text" placeholder="Enter your verification code" required>
    <input class="ghost-button" type="submit" value="Verify me!">
  </form>
</fieldset>

{% endblock %}

Finally, create a file called style.css in the static/styles directory, which contains the following style sheet: