forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoauth_callback.html
More file actions
78 lines (78 loc) · 2.08 KB
/
Copy pathoauth_callback.html
File metadata and controls
78 lines (78 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!DOCTYPE html>
<html>
<head>
<title>{{ title }} - Omi</title>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="1;url={{ redirect_url }}">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.container {
text-align: center;
padding: 2rem;
background: rgba(255, 255, 255, 0.1);
border-radius: 20px;
backdrop-filter: blur(10px);
max-width: 500px;
}
h2 {
margin: 0 0 1rem 0;
font-size: 1.5rem;
}
.spinner {
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top: 3px solid white;
width: 40px;
height: 40px;
animation: spin 1s linear infinite;
margin: 20px auto;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
p {
margin: 0.5rem 0;
line-height: 1.5;
}
.small-text {
font-size: 0.9em;
margin-top: 20px;
}
a {
color: white;
text-decoration: underline;
}
a:hover {
opacity: 0.8;
}
</style>
</head>
<body>
<div class="container">
<h2>{{ icon }} {{ message }}</h2>
{% if show_spinner %}
<div class="spinner"></div>
{% endif %}
<p>{{ description }}</p>
<p class="small-text">
If you're not redirected automatically,
<a href="{{ redirect_url }}">click here</a>
</p>
</div>
<script>
setTimeout(function() {
window.location.href = '{{ redirect_url }}';
}, 1000);
</script>
</body>
</html>