-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
86 lines (77 loc) · 2.22 KB
/
index.html
File metadata and controls
86 lines (77 loc) · 2.22 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
79
80
81
82
83
84
85
86
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>bubbles-frontend</title>
<!-- Preconnect to map domains to speed up tile fetching -->
<link rel="preconnect" href="https://api.protomaps.com">
<link rel="dns-prefetch" href="https://api.protomaps.com">
<style>
#splash-screen {
position: fixed;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
z-index: 9999;
transition: opacity 0.5s ease-out, visibility 0.5s;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.loader-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 24px;
}
.spinner {
width: 48px;
height: 48px;
border: 4px solid #e2e8f0;
border-top-color: #3b82f6;
border-radius: 50%;
animation: spin 1s linear infinite;
}
.loading-text {
font-size: 1.25rem;
font-weight: 500;
color: #1e293b;
letter-spacing: -0.025em;
}
.sub-text {
font-size: 0.875rem;
color: #64748b;
margin-top: -16px;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
body.app-loaded #splash-screen {
opacity: 0;
visibility: hidden;
}
</style>
</head>
<body>
<div id="splash-screen">
<div class="loader-container">
<div class="spinner"></div>
<div class="loading-text">Preparing Content</div>
<div class="sub-text">Setting up your campaign environment...</div>
</div>
</div>
<script>
// Capture the initial URL hash and search before Supabase or any other JS modules clear it.
// This allows our routing to correctly identify invite links even if the URL is wiped.
window.__INITIAL_HASH__ = window.location.hash;
window.__INITIAL_SEARCH__ = window.location.search;
</script>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>