-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·80 lines (80 loc) · 2.18 KB
/
Copy pathindex.html
File metadata and controls
executable file
·80 lines (80 loc) · 2.18 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#E27B58" />
<link rel="manifest" href="/manifest.json" />
<title>Auroville Community</title>
<style>
/* Critical CSS for layout */
html, body {
margin: 0;
padding: 0;
height: 100%;
background-color: #1A1A1A;
}
#root {
min-height: 100vh;
background-color: #1A1A1A;
}
/* Layout styles for non-Welcome pages */
#root:not(.welcome-page) {
display: grid;
grid-template-columns: 256px 1fr;
}
/* Prevent layout shift */
.layout-container {
display: grid;
grid-template-columns: 256px 1fr;
min-height: 100vh;
background-color: #1A1A1A;
width: 100%;
margin: 0;
padding: 0;
}
.layout-sidebar-container {
width: 256px;
min-width: 256px;
max-width: 256px;
background-color: #1A1A1A;
border-right: 1px solid #2A2A2A;
position: relative;
margin: 0;
padding: 0;
}
.layout-main-container {
display: flex;
flex-direction: column;
min-width: 0;
background-color: #1A1A1A;
position: relative;
margin: 0;
padding: 0;
}
/* Welcome page specific styles */
.welcome-page {
display: block !important;
width: 100% !important;
}
</style>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', () => {
navigator.serviceWorker.register('/service-worker.js')
.then(registration => {
console.log('ServiceWorker registration successful with scope: ', registration.scope);
})
.catch(error => {
console.error('ServiceWorker registration failed: ', error);
});
});
}
</script>
</body>
</html>