-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
123 lines (114 loc) · 2.6 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;700&family=Orbitron:wght@400;700&display=swap"
rel="stylesheet"
/>
<title>Digital Clock</title>
<style>
*,
*::after,
*::before {
box-sizing: inherit;
margin: 0;
padding: 0;
color: inherit;
user-select: none;
font-family: inherit;
}
html {
background-color: rgb(25, 25, 25);
/* font-size: 10px; */
font-size: 62.5%;
font-family: "Orbitron", sans-serif;
}
body {
/* width: 110rem; */
margin: 0 auto;
display: flex;
justify-content: center;
align-items: center;
box-sizing: border-box;
color: #00ddff;
}
.container {
position: relative;
width: 60%;
padding: 5rem;
margin-top: 15%;
background-color: rgb(18, 18, 19);
display: flex;
justify-content: center;
border: 1px solid #00ddff;
border-radius: 9px;
}
span {
font-size: 15rem;
font-weight: 500;
}
.date,
.author {
font-size: 2rem;
}
.date {
position: absolute;
top: 1.2rem;
left: 2rem;
}
.author {
position: absolute;
bottom: 1.2rem;
right: 2rem;
}
@media screen and (max-width: 1000px) {
html {
font-size: 55%;
}
}
@media screen and (max-width: 768px) {
html {
font-size: 52%;
}
.container {
position: relative;
width: 70%;
}
}
@media screen and (max-width: 600px) {
html {
font-size: 40%;
}
.container {
position: relative;
width: 80%;
}
}
@media screen and (max-width: 400px) {
html {
font-size: 35%;
}
.container {
position: relative;
width: 90%;
}
span {
font-size: 12rem;
}
}
</style>
</head>
<body>
<div class="container">
<p class="date"></p>
<span class="hours"></span>
<span class="minutes"></span>
<span class="seconds"></span>
<p class="author">Developed by Eng Abdirashid Solo</p>
</div>
<script defer src="script.js"></script>
</body>
</html>