sojorn/verify-error.html
2026-02-15 00:33:24 -06:00

159 lines
4.5 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Verification Failed - Sojorn</title>
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap" rel="stylesheet">
<style>
:root {
--error: #EF4444;
--error-dark: #DC2626;
--bg: #09090b;
--card: #18181b;
--text: #ffffff;
--text-muted: #a1a1aa;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Outfit', sans-serif;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background-color: var(--bg);
color: var(--text);
overflow: hidden;
}
.container {
text-align: center;
background: var(--card);
padding: 3rem;
border-radius: 24px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
max-width: 440px;
width: 90%;
border: 1px solid rgba(255, 255, 255, 0.1);
position: relative;
z-index: 10;
animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.icon-wrapper {
width: 80px;
height: 80px;
background: rgba(239, 68, 68, 0.1);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
}
.icon {
color: var(--error);
width: 40px;
height: 40px;
}
h1 {
font-size: 2rem;
font-weight: 700;
margin-bottom: 0.75rem;
background: linear-gradient(to bottom right, #ffffff, #a1a1aa);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
p {
font-size: 1.1rem;
margin-bottom: 2rem;
color: var(--text-muted);
line-height: 1.6;
}
.btn {
display: inline-block;
background-color: var(--card);
color: white;
padding: 1rem 2.5rem;
text-decoration: none;
border-radius: 12px;
font-weight: 600;
font-size: 1.1rem;
transition: all 0.2s ease;
border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn:hover {
background-color: rgba(255, 255, 255, 0.05);
transform: translateY(-2px);
}
.bg-gradient {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(circle at 50% 50%, rgba(239, 68, 68, 0.05) 0%, rgba(0, 0, 0, 1) 70%);
z-index: 1;
}
#reason {
font-weight: 600;
color: var(--text);
}
</style>
</head>
<body>
<div class="bg-gradient"></div>
<div class="container">
<div class="icon-wrapper">
<svg class="icon" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"></path>
</svg>
</div>
<h1>Verification Failed</h1>
<p id="message">Something went wrong with your verification request. <span id="reason"></span></p>
<a href="sojorn://login" class="btn">Return to App</a>
</div>
<script>
const params = new URLSearchParams(window.location.search);
const reason = params.get('reason');
const reasonSpan = document.getElementById('reason');
const msgPara = document.getElementById('message');
if (reason === 'expired') {
reasonSpan.innerText = 'The link has expired.';
} else if (reason === 'invalid_token') {
reasonSpan.innerText = 'The token is invalid.';
} else if (reason === 'server_error') {
reasonSpan.innerText = 'A server error occurred.';
}
</script>
</body>
</html>