front end html to look like existing capsul site without <pre>

This commit is contained in:
2020-05-10 21:43:06 -05:00
parent d706ae7761
commit 5d37f26585
8 changed files with 204 additions and 51 deletions

View File

@ -1,38 +1,39 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{% block title %}{% endblock %}{% if self.title() %} - {% endif %}capsul💊</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" href="/icon.png" />
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<link href="data:image/gif;base64,R0lGODlhEAAQAMIHAAAAAAAA//8AAP8A/wD/AAD/////AP///yH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEKAAcALAAAAAAQABAAAANJeLrc/vCNOaKi0x66T/ngd21ZGF6cVyxEU5Wr0h5CPQRdAQDHThCCUU7XawFtAYNBtQP8gJfkwQAChGqCm5Kqs4Iey51mwRsfEgA7" rel="icon">
<title>{% block title %}{% endblock %}{% if self.title() %} - {% endif %}Capsul💊</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="Description" content="Cyberia Capsul">
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
<header>
<div class="float-right">
{% if session["account"] %}
<span>Logged in as {{ session["account"] }}</span>
<a href="{{ url_for('auth.logout') }}">Log Out</a>
{% else %}
<a href="{{ url_for('auth.login') }}">Log In</a>
{% endif %}
</div>
<h1>
capsul
</h1>
<div>
<a href="/"><b>Capsul</b></a>💊
</div>
<div>
{% if session["account"] %}
{ {{ session["account"] }} <a href="{{ url_for('auth.logout') }}">Log Out</a> }
{% else %}
<a href="{{ url_for('auth.login') }}">Login</a>
{% endif %}
</div>
</header>
{% for message in get_flashed_messages() %}
<div class="flash">{{ message }}</div>
{% endfor %}
<main>
{% for message in get_flashed_messages() %}
<div class="flash">{{ message }}</div>
{% endfor %}
{% block content %}{% endblock %}
</main>
<footer>
(c) Attribution-ShareAlike 4.0 International <br/>
&nbsp;&nbsp;&nbsp;&nbsp;A service by Cyberia Computer Club 2020-<span class="bigtext"></span> <br/>
<br/>
<br/>
<a href="https://giit.cyberia.club/~forest/capsul-flask/tree/master/capsulflask{% block pagesource %}{% endblock %}">View page source</a>
</footer>
</body>
</html>
</html>

View File

@ -2,5 +2,35 @@
{% block content %}
Index Page!
{% endblock %}
<div class="hero">
<h1>CAPSUL</h1>
<pre>
.-.
/:::\
/::::/
/ `-:/
/ /
\ /
`"`
</pre>
</div>
<p>
Simple, fast, private compute by <a href="https://cyberia.club">https://cyberia.club</a><br/><br/>
Spin up your choice of virtual machine by sending an email. <br/><br/>
<ul>
<li>Simply log in with your email address </li>
<li>All root disks are backed up at no charge</li>
<li>All storage is fast, local, and solid-state</li>
<li>All network connections are low latency</li>
<li>Supported by amazing volunteers from Cyberia</li>
<li>Upfront prices, no confusing billing</li>
<li>A Minnesota non-profit organization that will never exploit you</li>
<li>We donate a portion of our proceeds to likeminded hacker groups around the globe</li>
</ul>
</p>
{% endblock %}
{% block pagesource %}/templates/index.html{% endblock %}

View File

@ -3,5 +3,9 @@
{% block title %}check your email{% endblock %}
{% block content %}
check your email. a login link has been sent to {{ email }}
{% endblock %}
<div class="hero">
<div class="single-content">check your email. a login link has been sent to {{ email }}</div>
</div>
{% endblock %}
{% block pagesource %}/templates/login-landing.html{% endblock %}

View File

@ -3,9 +3,14 @@
{% block title %}login{% endblock %}
{% block content %}
<form method="post">
<div class="hero">
<form method="post" class="single-content">
<label for="email">Email Address</label>
<input name="email" id="email" required>
<input type="text" name="email" id="email" required>
<input type="submit" value="Log In">
</form>
{% endblock %}
</div>
{% endblock %}
{% block pagesource %}/templates/login.html{% endblock %}