website/templates/index.html

72 lines
2.6 KiB
HTML
Raw Normal View History

2024-03-23 19:19:02 +00:00
<!DOCTYPE html>
<html>
2024-03-27 23:13:14 +00:00
<head>
2024-03-29 21:35:38 +00:00
<title>{{title}}</title>
2024-03-27 23:13:14 +00:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2024-03-27 23:24:13 +00:00
<link rel="stylesheet" href="/static/css/global.css">
2024-03-28 00:17:44 +00:00
<link rel="stylesheet" href="/static/css/index.css">
2024-03-23 19:19:02 +00:00
</head>
<body>
2024-03-28 17:05:00 +00:00
<input type="checkbox" id="toggle">
2024-03-27 23:13:14 +00:00
<div id="content">
<div class="box titlebar">
2024-03-29 21:35:38 +00:00
<h1>{{title}}</h1>
2024-03-27 23:13:14 +00:00
</div>
<div id="main-pane">
<div class="box" id="sidenav">
2024-03-30 20:33:14 +00:00
<a href="/">Home</a>
<a href="/projects">Projects</a>
<a href="/contact">Contact me</a>
<a href="/r/hmm">???</a>
2024-03-28 17:05:00 +00:00
<label id="login-btn" for="toggle">Login</label>
2024-03-27 23:13:14 +00:00
</div>
<div class="box" id="content-pane">
{% for post in posts if posts.len() > 0 %}
2024-03-29 21:35:38 +00:00
<div class="post">
2024-03-30 19:50:42 +00:00
<a class="post-img" href="{{post.origin_url}}"><img class="post-img" src="{{post.img_url}}" alt="post img"></a>
2024-03-29 21:35:38 +00:00
<span>
2024-03-30 20:53:09 +00:00
<a class="post-title" href="{{post.origin_url}}"><h4 class="post-title">{{post.title}}</h4></a>
2024-03-30 17:31:39 +00:00
<p>{{post.descr}}</p>
2024-03-29 21:35:38 +00:00
</span>
</div>
{% else %}
<h2 style="color: gray;">No posts found, check back later. D:</h2>
2024-03-29 21:35:38 +00:00
{% endfor %}
2024-03-27 23:13:14 +00:00
</div>
</div>
</div>
2024-03-23 19:19:02 +00:00
2024-03-28 17:05:00 +00:00
<div id="login-modal-container">
<div id="login-modal">
2024-03-29 21:35:38 +00:00
2024-03-28 17:05:00 +00:00
<h1>login <labeL for="toggle">(x)</labeL></h1>
<p>secrets beyond human comprehension lie beneath this unassuming login screen</p>
2024-03-29 21:35:38 +00:00
<div class="container">
2024-03-28 17:05:00 +00:00
<div class="form-group">
<label for="uname"><b>Email:</b></label>
<input type="text" name="uname" required>
</div>
<div class="form-group">
<label for="psw"><b>Password:</b></label>
<input type="password" name="psw" required>
</div>
2024-03-29 21:35:38 +00:00
2024-03-28 17:05:00 +00:00
<br>
<button type="submit">Login</button>
<br>
<label>
<input type="checkbox" checked="checked" name="remember"> Remember me
</label>
</div>
</div>
</div>
2024-03-23 19:19:02 +00:00
</body>
2024-03-27 23:13:14 +00:00
</html>