some experimentation with frontend

This commit is contained in:
Lennart
2024-10-04 21:36:07 +02:00
parent 8e1e1d5af5
commit 59006bc9f2
9 changed files with 188 additions and 20 deletions

View File

@@ -0,0 +1,12 @@
<h2>Welcome {{ owner }}!</h2>
<ul>
{% for calendar in calendars %}
<li>
{% if let Some(name) = calendar.displayname %}
{{ name }}
{% else %}
{{ calendar.id }}
{% endif %}
</li>
{% endfor %}
</ul>

View File

@@ -0,0 +1,7 @@
<form action="login" method="post">
<label for="username">Username</label>
<input type="text" name="username" placeholder="username">
<label for="password">Password</label>
<input type="password" name="password" placeholder="password">
<button type="submit">Login</button>
</form>

View File

@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>RustiCal</title>
<link href="css/style.css" rel="stylesheet">
</head>
<body>
{{ body|safe }}
</body>
</html>