-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoffline.html
More file actions
103 lines (91 loc) · 2.74 KB
/
offline.html
File metadata and controls
103 lines (91 loc) · 2.74 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#0f172a">
<title>Offline | Abhishek S. Raut</title>
<style>
body {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
text-align: center;
padding: 20px;
background: #0f172a;
color: #fff;
}
.skip-link {
position: absolute;
top: -40px;
left: 12px;
z-index: 1000;
background: #fff;
color: #0f172a;
padding: 8px 12px;
border-radius: 8px;
text-decoration: none;
}
.skip-link:focus {
top: 12px;
}
.offline-container {
max-width: 500px;
padding: 40px;
background: rgba(255, 255, 255, 0.05);
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
}
h1 {
font-size: 3rem;
margin-bottom: 20px;
background: linear-gradient(90deg, #38bdf8, #818cf8);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
p {
color: #94a3b8;
margin-bottom: 30px;
line-height: 1.6;
}
.btn-retry {
display: inline-block;
padding: 12px 24px;
background: #38bdf8;
color: #0f172a;
text-decoration: none;
border: 0;
cursor: pointer;
border-radius: 10px;
font-weight: 700;
transition: transform 0.2s ease;
}
.btn-retry:hover {
transform: scale(1.05);
}
.btn-retry:focus {
outline: none;
}
.btn-retry:focus-visible {
outline: 2px solid #38bdf8;
outline-offset: 2px;
}
</style>
</head>
<body class="dark-theme">
<a href="#main" class="skip-link">Skip to main content</a>
<main id="main" class="offline-container">
<h1>Offline</h1>
<p>It seems you're currently disconnected. Don't worry, the portfolio is designed to work offline once visited,
but some resources might be missing.</p>
<button type="button" id="retry-btn" class="btn-retry">Try Again</button>
</main>
<script>
const retryBtn = document.getElementById('retry-btn');
if (retryBtn) retryBtn.addEventListener('click', () => window.location.reload());
</script>
</body>
</html>