Skip to content

Instantly share code, notes, and snippets.

@ryanleeallred
Created July 13, 2022 08:52
Show Gist options
  • Save ryanleeallred/ef584bf5793ec7fa6a45c6a843243855 to your computer and use it in GitHub Desktop.
Save ryanleeallred/ef584bf5793ec7fa6a45c6a843243855 to your computer and use it in GitHub Desktop.
base.html file for Twitoff Flask App
<!DOCTYPE html>
<html>
<head>
<title>TwitOff - {{ title }}</title>
<link rel="stylesheet" href="https://unpkg.com/picnic" />
</head>
<body>
<nav>
<a href="/" class="brand"><span>TwitOff!</span></a>
<!-- responsive-->
<input id="bmenub" type="checkbox" class="show">
<label for="bmenub" class="burger pseudo button">Menu</label>
<div class="menu">
<a href="/update" class="button warning">Update Tweets</a>
<a href="/reset" class="button error">Reset Database</a>
</div>
</nav>
<article class="flex two" style="padding: 3em 1em;">
{% block content %}
{% for user in users %}
<p>{{ user.username }}</p>
{% endfor %}
{% endblock %}
</article>
<!-- <script src="https://cdn.jsdelivr.net/npm/umbrellajs"/> -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment