Skip to content

Commit ded1a69

Browse files
committed
feat: CC & MDJAmin
1 parent 9082898 commit ded1a69

3 files changed

Lines changed: 66 additions & 22 deletions

File tree

css/style.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,34 @@ body {
153153
height: calc(240px + 70px);
154154
background: rgb(255, 255, 255);
155155
}
156+
157+
.MDJAminDiv {
158+
z-index: 4444;
159+
position: fixed;
160+
bottom: 5%;
161+
left: 2%;
162+
}
163+
.MDJAmin {
164+
text-decoration: none;
165+
border-bottom: 1px dashed rgb(179, 255, 0);
166+
border-top: 1px dashed rgb(179, 255, 0);
167+
/* border-bottom: 1px dashed rgb(44, 44, 44); */
168+
/* border-top: 1px dashed rgb(44, 44, 44); */
169+
padding: 4px 0;
170+
/* color: rgba(44, 44, 44, 0.525); */
171+
color: rgba(204, 204, 204, 0.414);
172+
font-family: monospace;
173+
font-style: italic;
174+
font-size: 1.1em;
175+
transition: all 0.5s;
176+
/* text-shadow: 0 0 10px rgb(179, 255, 0); */
177+
animation: colorful 30s linear infinite;
178+
}
179+
180+
.MDJAmin:hover {
181+
color: white;
182+
color: rgb(179, 255, 0);
183+
text-shadow: 0 0 10px rgb(179, 255, 0);
184+
transform: rotate(calc(var(--index) * -30deg));
185+
animation: colorful 30s linear infinite;
186+
}

index.html

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,43 @@
22

33
<!DOCTYPE html>
44
<html lang="en">
5-
6-
<head>
7-
<meta charset="UTF-8">
8-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
9-
<link rel="shortcut icon" href="clock-icon.png" type="image/x-icon">
10-
<link rel="stylesheet" href="css/style.css">
5+
<head>
6+
<meta charset="UTF-8" />
7+
<meta
8+
name="viewport"
9+
content="width=device-width, initial-scale=1.0"
10+
/>
11+
<link
12+
rel="shortcut icon"
13+
href="clock-icon.png"
14+
type="image/x-icon"
15+
/>
16+
<link
17+
rel="stylesheet"
18+
href="css/style.css"
19+
/>
1120
<title>Wall Clock</title>
12-
</head>
21+
</head>
1322

14-
<body>
15-
23+
<body>
1624
<div class="wrapper">
17-
<div class="bar-seconds"></div>
18-
<div class="number-hours"></div>
25+
<div class="bar-seconds"></div>
26+
<div class="number-hours"></div>
1927

20-
<div class="hand-box">
21-
<div class="hand hours"><i></i></div>
22-
<div class="hand minutes"><i></i></div>
23-
<div class="hand seconds"><i></i></div>
24-
</div>
28+
<div class="hand-box">
29+
<div class="hand hours"><i></i></div>
30+
<div class="hand minutes"><i></i></div>
31+
<div class="hand seconds"><i></i></div>
32+
</div>
33+
</div>
34+
<div class="MDJAminDiv">
35+
<a
36+
class="MDJAmin"
37+
href="https://github.com/MDJAmin"
38+
target="_blank"
39+
>MDJAmin</a
40+
>
2541
</div>
26-
2742
<script src="js/script.js"></script>
28-
</body>
29-
30-
</html>
43+
</body>
44+
</html>

js/script.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ function getCurrentTime() {
3232
let CurrentMinutes = date.getMinutes();
3333
let Currentseconds = date.getSeconds();
3434

35-
handHours.style.transform = `rotate(${CurrentHours * 30 + CurrentMinutes / 2
36-
}deg)`;
35+
handHours.style.transform = `rotate(${CurrentHours * 30 + CurrentMinutes / 2}deg)`;
3736
handMinutes.style.transform = `rotate(${CurrentMinutes * 6}deg)`;
3837
handSeconds.style.transform = `rotate(${Currentseconds * 6}deg)`;
3938
}

0 commit comments

Comments
 (0)