| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8" /> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 6 | <title>{% block title %}{% endblock %}</title> |
| 7 | <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" /> |
| 8 | <script src="{{ url_for('static', filename='action.js') }}"></script> |
| 9 | </head> |
| 10 | <body> |
| 11 | <canvas id="pixelCanvas"></canvas> |
| 12 | |
| 13 | <main class="main-content-container"> |
| 14 | <header class="topnav"> |
| 15 | {% set path = request.path %} |
| 16 | <a href="/" class="{% if path == '/' %}active{% endif %}">Home</a> |
| 17 | <a href="/users" class="{% if path.startswith('/users') and not path.endswith('/new') %}active{% endif %}">Users</a> |
| 18 | <a href="/movies" class="{% if path.startswith('/movies') and not path.endswith('/new') %}active{% endif %}">Movies</a> |
| 19 | <a href="/users/new" class="{% if path == '/users/new' %}active{% endif %}">New User</a> |
| 20 | <a href="/movies/new" class="{% if path == '/movies/new' %}active{% endif %}">New Movie</a> |
| 21 | </header> |
| 22 | {% block content %}{% endblock %} |
| 23 | </main> |
| 24 | </body> |
| 25 | </html> |