initial commit

This commit is contained in:
2023-01-28 15:55:33 +01:00
parent dcbf34269d
commit a1e482f23a
11 changed files with 286 additions and 0 deletions

22
templates/base.html Normal file
View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
{% block head %}<title>Scratch Cloudvars Server</title>{% endblock %}
</head>
<body>
<header class="w3-container w3-border-bottom w3-border-blue-grey w3-light-grey w3-margin-bottom" style="position: fixed; top: 0; width: 100vw; height: 3em">
{% block header %}<span><a class="w3-button" href="/"><i class="material-icons w3-xlarge">home</i></a>Scratch Cloudvars Server</span>{% endblock %}
</header>
<div class="w3-container" style="margin-top: 4em; margin-bottom:3em">
{% block content %}{% endblock %}
</div>
<footer class="w3-container w3-border-top w3-light-grey w3-border-blue-grey w3-center" style="position: fixed; bottom: 0; width: 100vw; height: auto">
{% block footer %}<div class="w3-small">{{ now }} - {{ request.base_url }}</div>{% endblock %}
</footer>
</body>
</html>

20
templates/index.html Normal file
View File

@ -0,0 +1,20 @@
{% extends 'base.html' %}
{% block content %}
<div class="w3-display-container" style="height: 200px">
<div class="w3-row w3-half w3-display-middle">
<div class="w3-blue-grey w3-col w3-mobile s6">
<a class="w3-block w3-button" href="/train">
<i class="material-icons w3-jumbo">school</i>
<p>train</p>
</a>
</div>
<div class="w3-blue-grey w3-col w3-mobile s6">
<a class="w3-block w3-button" href="/manage">
<i class="material-icons w3-jumbo">settings_applications</i>
<p>manage vocabulary</p>
</a>
</div>
</div>
</div>
{% endblock %}