forked from InvalidLenni/invalidlenni.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbirthday.html
More file actions
226 lines (211 loc) · 10.4 KB
/
birthday.html
File metadata and controls
226 lines (211 loc) · 10.4 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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Import CSS and Assets -->
<link rel="stylesheet" href="../css/icons.css">
<link rel="stylesheet" href="../css/bootstrap.min.css">
<link rel="stylesheet" href="../css/main.css">
<link rel="stylesheet" href="../css/menu.css">
<link rel="icon" href="assets/favicon.png">
<!-- Import Icons -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/fontawesome.min.css" integrity="sha512-8Vtie9oRR62i7vkmVUISvuwOeipGv8Jd+Sur/ORKDD5JiLgTGeBSkI3ISOhc730VGvA5VVQPwKIKlmi+zMZ71w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/solid.min.css" integrity="sha512-6/gTF62BJ06BajySRzTm7i8N2ZZ6StspU9uVWDdoBiuuNu5rs1a8VwiJ7skCz2BcvhpipLKfFerXkuzs+npeKA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/brands.min.css" integrity="sha512-bSncow0ApIhONbz+pNI52n0trz5fMWbgteHsonaPk42JbunIeM9ee+zTYAUP1eLPky5wP0XZ7MSLAPxKkwnlzw==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <!-- Import manifest.json -->
<link rel="manifest" href="manifest.json">
<!-- Make twitter:... embed -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@invalidlenni" />
<meta name="twitter:title" content="InvalidLenni" />
<meta name="twitter:description" content="On the website can you find my projects, about me and more." />
<meta name="twitter:image" content="https://invalidlenni.de/assets/favicon.png" />
<!-- Make og:... embed -->
<meta content="Lenni's Birthday Timer" property="og:title" />
<meta content="On the website can you find my projects, about me and more!" property="og:description" />
<meta content="https://invalidlenni.de/" property="og:url" />
<meta content="assets/favicon.png" property="og:image" />
<meta content="#43B581" data-react-helmet="true" name="theme-color" />
<meta name="robots" content="noindex" />
<title>InvalidLenni</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container-fluid container">
<a class="navbar-brand" href="https://invalidlenni.de/">
<img src="../assets/avatar.png" alt="" width="50" height="50" class="rounded-circle"> <span>InvalidLenni</span>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link" href="../index.html"><i class="fa fa-fw fa-home"></i> Home</a>
<!-- <span class="fa fa-home"></span>-->
</li>
<li class="nav-item">
<a class="nav-link" href="./pages/partners.html"><i class="fa fa-handshake-o"></i> Partners</a>
</li>
<br>
<li class="nav-item">
<a class="nav-link" href="https://invalidlenni.de/pages/links.html"><i class="fa fa-link"></i> My linkpage</a>
<!-- <span class="fa fa-link"></span>-->
</li>
<br>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="linksdrop" role="button" data-bs-toggle="dropdown"
aria-expanded="false">
<i class="fa-solid fa-layer-group"></i> My stack
</a>
<ul class="dropdown-menu bgn" aria-labelledby="linksdrop">
<li><a class="dropdown-item text-muted font-weight-bold" href="#my-projects"><i class="fa fa-external-link" aria-hidden="true"></i> My projects are...</a>
</li>
<li><a class="dropdown-item text-muted font-weight-bold" href="#staff-at"><i class="fa fa-external-link" aria-hidden="true"></i> I'm staff at...</a>
</li>
<li><a class="dropdown-item text-muted font-weight-bold" href="#translator-at"><i class="fa fa-external-link" aria-hidden="true"></i> I'm translator for...</a>
</li>
</ul>
</li>
<br>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="linksdrop" role="button" data-bs-toggle="dropdown"
aria-expanded="false">
<i class="fa fa-link"></i> Links
</a>
<ul class="dropdown-menu bgn" aria-labelledby="linksdrop">
<li><a class="dropdown-item text-muted font-weight-bold" href="./links.html" target="_blank"><i class="fa fa-external-link" aria-hidden="true"></i> Linksite</a>
</li>
<li><a class="dropdown-item text-muted font-weight-bold" href="https://blog.invalidlenni.de/" target="_blank"><i class="fa fa-external-link" aria-hidden="true"></i> My blog</a>
</li>
<li><a class="dropdown-item text-muted font-weight-bold" href="https://dev.to/invalidlenni"><i class="fa fa-external-link" aria-hidden="true"></i> My DEV Blog</a></li>
<li><a class="dropdown-item text-muted font-weight-bold" href="https://discord.gg/ntJEy5ADMu" target="_blank"><i class="fa fa-external-link" aria-hidden="true"></i> Lenni's Development Place
(Discord Server)</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
</div>
<section class="my-birthday">
<h2>Waiting for my birthday (time):</h2>
<div class="countdown">
<div class="container-day">
<h3 class="day">Time</h3>
<h3>Days</h3>
</div>
<div class="container-hour">
<h3 class="hour">Time</h3>
<h3>Hour</h3>
</div>
<div class="container-minute">
<h3 class="minute">Time</h3>
<h3>Minute</h3>
</div>
<div class="container-seconds">
<h3 class="seconds">Time</h3>
<h3>Seconds</h3>
</div>
</div>
<img class="image" src="./image/image.png" alt="">
</section>
<footer class="mastfoot mb-auto">
<div class="container-fluid mb-auto">
<div class="">
<div class="">
<p style="position:static; text-align: center; padding-bottom: 10%; font-size: 19px; margin: 0px; padding: 0px;"><a href="https://invalidlenni.de/"
style="text-decoration: none; color: white;">Made with 💖 by</a></br>InvalidLenni ©
2021 - <script>document.write((new Date()).getFullYear()) </script>. All<br>
rights reserved. Source code available at <a href="https://github.com/InvalidLenni/invalidlenni.github.io/">Github</a> and the website will be hosted by <a href="https://pages.github.com/">Github (Pages)</a>. Badges hosted by <a href="https://shields.io/">Shields</a> and <a href="https://github.com/">Github</a>. You can support me <a href="https://deinserverhost.de/store/aff.php?aff=4224">here</a> with money. You can you join my discord server or follow my twitter account <strong>without money</strong>. <a href="https://twitter.com/https://twitter.com/intent/tweet?text=I want to say hello to @invalidlenni! I viewed your website. 😄">Say hello to me on Twitter!</a>.</br></p>
</div>
</div>
</div>
</div>
</footer>
</body>
</html>
<script>
const countdown = () => {
const countDate = new Date('Sep 09 2022 00:00:00').getTime();
const now = new Date().getTime();
const gap = countDate - now;
const seconds = 1000;
const minutes = seconds * 60;
const hours = minutes * 60;
const day = hours * 24;
// calculate
const textDay = Math.floor(gap / day);
const textHour = Math.floor((gap % day) / hours);
const textMinute = Math.floor((gap % hours) / minutes);
const textSeconds = Math.floor((gap % minutes) / seconds);
document.querySelector('.day').innerHTML = textDay;
document.querySelector('.hour').innerHTML = textHour;
document.querySelector('.minute').innerHTML = textMinute;
document.querySelector('.seconds').innerHTML = textSeconds;
}
countdown()
setInterval(countdown, 1000)
</script>
<style>* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Roboto, sans-serif;
background-color: #7ee8fa;
background-image: linear-gradient(315deg, #7ee8fa 0%, #80ff72 74%);
/* background is from egggradient.com */
}
h2 {
font-size: 5rem;
font-weight: bold;
padding: 3rem;
}
.image {
width: 10rem;
padding-top: 3rem;
}
.coming-soon {
min-height: 100vh;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
.countdown {
display: flex;
width: 40rem;
justify-content: space-around;
text-align: center;
}
.day, .hour, .minute, .seconds {
font-size: 3rem;
}
/* responsiveness */
/* TODO: make .countdown width to 25rem */
/* TODO: make h2 fontsize 2rem and padding 9% */
/* TODO: make .day, .hour, .minute, .seconds fontsize 2rem */
@media screen and (max-width: 500px) {
.countdown{
width: 25rem;
}
h2 {
font-size: 2rem;
padding: 9%;
}
.day,
.hour,
.minute,
.seconds{
font-size: 2rem;
}
}
</style>