Files
Outpost/templates/logout.html

187 lines
5.6 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Logged Out | {{ appName }}</title>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<style>
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@400;500;600&display=swap');
:root {
--brand-primary: #6366f1;
--brand-hover: #4f46e5;
--brand-success: #10b981;
--text-main: #0f172a;
--text-muted: #64748b;
--bg-body: #f8fafc;
--border-color: #e2e8f0;
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
--radius-xl: 2rem;
--radius-lg: 0.75rem;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-body);
background-image:
radial-gradient(at 0% 0%, hsla(253,16%,95%,1) 0, transparent 50%),
radial-gradient(at 100% 0%, hsla(225,39%,90%,1) 0, transparent 50%);
height: 100vh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
overflow: hidden;
}
.logout-card {
max-width: 448px;
width: 100%;
background: #ffffff;
border-radius: var(--radius-xl);
box-shadow: var(--shadow-xl);
border: 1px solid var(--border-color);
display: flex;
flex-direction: column;
overflow: hidden;
}
.card-content {
padding: 2.5rem;
display: flex;
flex-direction: column;
text-align: center;
}
.logout-icon {
width: 80px;
height: 80px;
background: #ecfdf5;
color: var(--brand-success);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
margin: 0 auto 2rem;
}
h1 {
font-family: 'Space Grotesk', sans-serif;
font-size: 1.875rem;
font-weight: 700;
color: var(--text-main);
margin-bottom: 1rem;
letter-spacing: -0.025em;
}
.description {
color: var(--text-muted);
font-size: 1rem;
margin-bottom: 2rem;
line-height: 1.5;
}
.btn {
width: 100%;
padding: 1rem;
border-radius: var(--radius-lg);
border: none;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
transition: all 0.3s ease;
text-decoration: none;
}
.btn-primary {
background: var(--brand-primary);
color: white;
box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}
.btn-primary:hover {
background: var(--brand-hover);
transform: translateY(-1px);
}
/* Mobile and popup responsiveness */
@media (max-width: 768px) {
body {
padding: 0;
align-items: stretch;
justify-content: stretch;
}
.logout-card {
max-width: none;
width: 100%;
height: 100vh;
border-radius: 0;
border: none;
box-shadow: none;
}
.card-content {
padding: 1.5rem;
height: 100%;
justify-content: center;
}
h1 {
font-size: 1.5rem;
}
.description {
font-size: 0.875rem;
}
}
</style>
</head>
<body>
<script>
// Check if in popup and apply fullscreen styling
if (window.opener || window.self !== window.top) {
document.documentElement.style.width = '100vw';
document.documentElement.style.height = '100vh';
document.body.style.width = '100vw';
document.body.style.height = '100vh';
document.querySelector('.logout-card').style.maxWidth = 'none';
document.querySelector('.logout-card').style.width = '100%';
document.querySelector('.logout-card').style.height = '100vh';
document.querySelector('.logout-card').style.borderRadius = '0';
document.querySelector('.logout-card').style.border = 'none';
document.querySelector('.logout-card').style.boxShadow = 'none';
}
</script>
<div class="logout-card">
<div class="card-content">
<div class="logout-icon">
<i class="fa-solid fa-check"></i>
</div>
<h1>You have been logged out</h1>
<p class="description">Your session has ended. You have been successfully logged out of your account.</p>
<a href="/login" class="btn btn-primary">
<i class="fa-solid fa-arrow-left"></i>
Back to Login
</a>
</div>
</div>
</body>
</html>