base.html

html1 kB30 linesIn starter.zip

starter.ziptemplatesbase.html

HTML
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>{% block title %}Auth Demo{% endblock %}</title>
  <style>
    body { font-family: system-ui, sans-serif; background: #f4f5f7; display: grid; place-items: center; min-height: 100vh; margin: 0; }
    .card { background: #fff; padding: 2rem; border-radius: 10px; box-shadow: 0 2px 12px rgba(0,0,0,.08); width: min(340px, 90vw); }
    h1 { margin-top: 0; font-size: 1.4rem; }
    label { display: block; margin: .8rem 0 .3rem; font-size: .9rem; }
    input { width: 100%; padding: .55rem; box-sizing: border-box; border: 1px solid #ccc; border-radius: 6px; }
    button { margin-top: 1.2rem; width: 100%; padding: .6rem; border: 0; border-radius: 6px; background: #2f6fde; color: #fff; font-size: 1rem; cursor: pointer; }
    .flash { padding: .6rem; border-radius: 6px; margin-bottom: 1rem; font-size: .9rem; }
    .error { background: #fde8e8; color: #9b1c1c; }
    .success { background: #e6f6ec; color: #1e6b3a; }
    p.alt { text-align: center; font-size: .9rem; }
  </style>
</head>
<body>
  <main class="card">
    {% with messages = get_flashed_messages(with_categories=true) %}
      {% for category, message in messages %}
        <div class="flash {{ category }}">{{ message }}</div>
      {% endfor %}
    {% endwith %}
    {% block content %}{% endblock %}
  </main>
</body>
</html>

In templates/