Initial commit - FastAPI guest portal with Authentik OIDC, UniFi integration, and branding assets
This commit is contained in:
78
app/templates/base.html
Normal file
78
app/templates/base.html
Normal file
@@ -0,0 +1,78 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{{ site.name if site is defined else "JFMT-PDX" }} Guest WiFi</title>
|
||||
<style>
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
||||
background: #005ED9;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 20px;
|
||||
}
|
||||
.card {
|
||||
background: white;
|
||||
border-radius: 16px;
|
||||
padding: 40px 32px;
|
||||
max-width: 420px;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
box-shadow: 0 8px 32px rgba(0,0,0,0.15);
|
||||
}
|
||||
.pup {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
h1 {
|
||||
font-size: 1.6rem;
|
||||
font-weight: 700;
|
||||
margin-bottom: 12px;
|
||||
color: #111;
|
||||
}
|
||||
p {
|
||||
color: #555;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.btn {
|
||||
display: inline-block;
|
||||
background: #005ED9;
|
||||
color: white;
|
||||
padding: 12px 32px;
|
||||
border-radius: 8px;
|
||||
text-decoration: none;
|
||||
font-weight: 600;
|
||||
margin-top: 8px;
|
||||
}
|
||||
.footer {
|
||||
margin-top: 32px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid #eee;
|
||||
font-size: 0.8rem;
|
||||
color: #999;
|
||||
}
|
||||
.footer img {
|
||||
height: 28px;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="card">
|
||||
<img class="pup" src="/static/pup.jpg" alt="Welcome">
|
||||
{% block content %}{% endblock %}
|
||||
<div class="footer">
|
||||
<img src="/static/jfmt-pdx-logo.svg" alt="JFMT-PDX"><br>
|
||||
Brought to you by JFMT-PDX
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
6
app/templates/error.html
Normal file
6
app/templates/error.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>Something went wrong</h1>
|
||||
<p>{{ message }}</p>
|
||||
<p>Please try reconnecting to the guest WiFi or ask for assistance.</p>
|
||||
{% endblock %}
|
||||
9
app/templates/success.html
Normal file
9
app/templates/success.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{% extends "base.html" %}
|
||||
{% block content %}
|
||||
<h1>You're connected!</h1>
|
||||
<p>Welcome to {{ site.name }} Guest WiFi.</p>
|
||||
<p>Your device has been authorized for <strong>{{ duration_hours }} hours</strong>.</p>
|
||||
{% if original_url %}
|
||||
<a class="btn" href="{{ original_url }}">Continue Browsing</a>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user