-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
156 lines (136 loc) · 6.29 KB
/
index.html
File metadata and controls
156 lines (136 loc) · 6.29 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!DOCTYPE html>
<html class="sl-theme-dark" lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description"
content="This website is under construction. Please check back later.">
<meta property="og:title" content="Website Under Construction">
<meta property="og:description"
content="This website is under construction. Please check back later.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://digitalmalayalistudio.github.io/unstruction/">
<meta property="og:image" content="https://digitalmalayalistudio.github.io/unstruction/assets/preview.webp">
<title>Website Under Construction</title>
<link rel="icon" href="assets/favicon.svg" type="image/svg+xml">
<script src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/dist/utilities/shoelace.js"
data-shoelace="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.0.0/dist/"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.16.0/cdn/themes/dark.css">
<script type="module"
src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/card/card.js"></script>
<script type="module"
src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/button/button.js"></script>
<script type="module"
src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/icon-button/icon-button.js"></script>
<script type="module"
src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/icon/icon.js"></script>
<script type="module"
src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/button-group/button-group.js"></script>
<script type="module"
src="https://cdn.jsdelivr.net/npm/@shoelace-style/shoelace@2.18.0/cdn/components/badge/badge.js"></script>
<style>
body {
min-height: 100dvh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-family: var(--sl-font-sans);
line-height: var(--sl-line-height-normal);
}
.card-overview {
max-width: 350px;
}
.card-overview small {
color: var(--sl-color-neutral-700);
}
.card-overview [slot='footer'] {
display: flex;
justify-content: space-between;
align-items: center;
}
sl-badge::part(base) {
background-color: var(--sl-color-orange-600);
--pulse-color: var(--sl-color-orange-600);
}
sl-button::part(base) {
color: var(--sl-color-gray-50);
background-color: var(--sl-color-orange-600);
border-color: var(--sl-color-orange-300);
}
sl-button::part(base):hover {
background-color: var(--sl-color-orange-500);
}
sl-icon-button::part(base):hover {
color: var(--sl-color-orange-600);
}
.copyright {
color: var(--sl-color-neutral-600);
text-align: center;
margin-top: 2rem;
}
.copyright a {
color: var(--sl-color-orange-600);
}
</style>
</head>
<body>
<sl-card class="card-overview">
<img slot="image" src="assets/preview.webp" alt="Unstruction" width="350">
<strong>Unstruction</strong><br>
This website is under construction.<br>Please check back later in <sl-badge pill pulse
class="days"></sl-badge> days, <sl-badge pill pulse class="hr"></sl-badge> hours, <sl-badge
pill pulse class="min"></sl-badge> minutes and <sl-badge pill pulse
class="sec"></sl-badge> seconds. <br>
<small>Feel free to reach out to us.</small>
<div slot="footer">
<sl-button-group label="Alignment">
<sl-button size="medium" circle href="tel:123456789">
<sl-icon name="telephone" label="Phone"></sl-icon>
</sl-button>
<sl-button size="medium" circle href="mailto:mail@example.com">
<sl-icon name="envelope" label="Mail"></sl-icon>
</sl-button>
<sl-button size="medium" circle href="https://wa.me/91123456789">
<sl-icon name="whatsapp" label="WhatsApp"></sl-icon>
</sl-button>
<sl-button size="medium" circle href="https://maps.google.com" target="_blank">
<sl-icon name="geo-alt" label="Map"></sl-icon>
</sl-button>
</sl-button-group>
</div>
</sl-card>
<small class="copyright"><sl-icon-button name="github" label="Settings" style="font-size: 1.2rem;"
href="https://github.com/digitalmalayalistudio/unstruction/"
target="_blank"></sl-icon-button><br>MIT-licensed template by
<a href="http://studio.digitalmalayali.in/">Digital Malayali Studio</a><br>
© 2024 Digital Malayali Studio</small>
<script>
const id = setInterval(timer, 1000);
function timer() {
const target = new Date('Jan 1, 3000, 00:00:00').getTime();
const current = new Date().getTime();
const diff = target - current;
const s = 1000;
const m = s * 60;
const h = m * 60;
const d = h * 24;
let days = Math.floor(diff / d);
let hr = Math.floor((diff % d) / h);
let min = Math.floor((diff % h) / m);
let sec = Math.floor((diff % m) / s);
document.querySelector('.days').textContent = days;
document.querySelector('.hr').textContent = hr;
document.querySelector('.min').textContent = min;
document.querySelector('.sec').textContent = sec;
if (diff <= 0) {
clearInterval(id);
document.querySelector('.days').textContent = '0';
document.querySelector('.hr').textContent = '0';
document.querySelector('.min').textContent = '0';
document.querySelector('.sec').textContent = '0';
}
}
timer();
</script>
</body>