-
Notifications
You must be signed in to change notification settings - Fork 0
/
status.html
142 lines (125 loc) · 4.53 KB
/
status.html
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Status Page - SwiftPeakDevelopment</title>
<style>
/* Base styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #1a1a1a; /* Dark background color */
color: #fff; /* White text color */
transition: background-color 0.3s, color 0.3s;
display: flex;
flex-direction: column;
position: relative; /* Ensures positioning for absolute elements */
}
/* Navigation styles */
nav {
background-color: #333; /* Darker navigation background color */
padding: 20px 0;
width: 100%;
display: flex;
justify-content: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow effect */
}
a {
color: #fff;
text-decoration: none;
margin: 0 15px;
padding: 10px 20px;
border-radius: 5px;
transition: background-color 0.3s, color 0.3s;
background-color: #444; /* Darker color */
}
a:hover {
background-color: #555; /* Darker color on hover */
}
/* Container styles */
.container {
max-width: 800px;
padding: 40px;
background-color: #333; /* Darker container background color */
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Adjust shadow */
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
margin: 20px auto;
position: relative;
}
/* Clock box styles */
.clock-box {
position: absolute;
top: 20px;
right: 20px;
padding: 10px 15px;
background-color: #444; /* Darker clock box background color */
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow effect */
}
/* Iframe for status */
.status-iframe {
width: 100%;
height: 900px;
border: none;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Shadow effect */
}
/* Medium size YouTube video at top-left */
.youtube-video {
width: 400px;
height: 225px;
position: absolute;
top: 10px;
left: 10px;
z-index: 1; /* Ensures video stays above other elements */
cursor: move; /* Set cursor style to indicate draggable */
}
</style>
</head>
<body>
<!-- YouTube video iframe at top-left with medium size -->
<iframe class="youtube-video" src="https://www.youtube.com/embed/nTW-yEWG94Q?autoplay=1" frameborder="0" allowfullscreen></iframe>
<!-- Navigation bar -->
<nav>
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="services.html">Services</a>
<a href="status.html">Status Page</a>
<a href="login.html">Login</a>
<a href="signup.html">Coming Soon</a>
</nav>
<!-- Clock box -->
<div class="clock-box">
<div id="clock" style="font-size: 1.5em;"></div>
</div>
<!-- Embedded live status -->
<iframe class="status-iframe" src="https://status.swiftpeekhosting.uk/" title="Live Status" frameborder="0"></iframe>
<!-- Script for redirecting to an external status page and clock functionality -->
<script>
function redirectToExternalPage() {
window.location.href = "https://status.swiftpeekhosting.uk/";
}
function updateClock() {
const clock = document.getElementById('clock');
const options = {
timeZone: 'Europe/London',
hour: 'numeric',
minute: 'numeric',
second: 'numeric'
};
const formatter = new Intl.DateTimeFormat('en-GB', options);
const currentTime = formatter.format(new Date());
clock.textContent = `GMT/UK Time: ${currentTime}`;
}
// Update the clock every second
setInterval(updateClock, 1000);
// Initial call to set the clock immediately
updateClock();
</script>
</body>
</html>