Skip to content

Commit f263fce

Browse files
Added Day 68
1 parent 7c1e732 commit f263fce

File tree

1 file changed

+166
-0
lines changed

1 file changed

+166
-0
lines changed

public/68/index.html

Lines changed: 166 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,166 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Day 65/100</title>
7+
</head>
8+
<body>
9+
<main>
10+
<div class="exmark-circle" id="exmark-circle">
11+
<svg
12+
class="exmark-circle-icon"
13+
version="1.1"
14+
xmlns="http://www.w3.org/2000/svg"
15+
xmlns:xlink="http://www.w3.org/1999/xlink"
16+
viewBox="0 0 50 50"
17+
>
18+
<circle class="exmark-circle-inner" cx="25" cy="25" r="23" />
19+
</svg>
20+
<div class="exmark-icon">
21+
<div class="exmark-icon-line"></div>
22+
<div class="exmark-icon-circle"></div>
23+
</div>
24+
</div>
25+
</main>
26+
27+
<style>
28+
@font-face {
29+
font-family: "SpaceMono";
30+
src: url("/assets/SpaceMono-Bold.woff2") format("woff2");
31+
font-weight: 700;
32+
}
33+
34+
body {
35+
margin: 0;
36+
overflow: hidden;
37+
display: flex;
38+
flex-direction: column;
39+
justify-content: center;
40+
align-items: center;
41+
-webkit-tap-highlight-color: transparent;
42+
width: 100vw;
43+
height: 100vh;
44+
background-color: #fff;
45+
}
46+
47+
.exmark-circle {
48+
position: relative;
49+
cursor: pointer;
50+
width: 60px;
51+
height: 60px;
52+
53+
transition: all 0.5s ease-in-out;
54+
}
55+
56+
.exmark-circle::before {
57+
content: "";
58+
position: absolute;
59+
top: 0;
60+
left: 0;
61+
width: 100%;
62+
height: 100%;
63+
border-radius: 50%;
64+
outline: 4.8px solid rgba(235, 235, 235, 1);
65+
outline-offset: -4.8px;
66+
z-index: 1;
67+
opacity: 1;
68+
transition: opacity 0.5s 0.5s ease-in-out;
69+
}
70+
71+
.exmark-circle-icon {
72+
position: absolute;
73+
top: 50%;
74+
left: 50%;
75+
transform: translate(-50%, -50%);
76+
width: 100%;
77+
height: 100%;
78+
z-index: 2;
79+
overflow: visible;
80+
}
81+
82+
.exmark-circle-inner {
83+
fill: none;
84+
transform-origin: center;
85+
rotate: -90deg;
86+
stroke: #000;
87+
stroke-width: 4px;
88+
stroke-linecap: round;
89+
stroke-dasharray: 314.1592653589793;
90+
stroke-dashoffset: 314.1592653589793;
91+
opacity: 0;
92+
transition: stroke-dashoffset 1s ease-in-out,
93+
opacity 0.2s 0.8s ease-in-out;
94+
}
95+
96+
.exmark-icon {
97+
position: absolute;
98+
top: 50%;
99+
left: 50%;
100+
transform: translate(-50%, -50%);
101+
width: 32px;
102+
height: 32px;
103+
z-index: 2;
104+
overflow: visible;
105+
}
106+
107+
.exmark-icon-line {
108+
position: absolute;
109+
top: 0%;
110+
left: 50%;
111+
transform: translate(-50%, 0%);
112+
width: 4.8px;
113+
height: 0%;
114+
border-radius: 1000px;
115+
background-color: #000;
116+
opacity: 0;
117+
transition: height 0.5s ease-in-out, opacity 0.2s 0.3s ease-in-out;
118+
}
119+
120+
.exmark-icon-circle {
121+
position: absolute;
122+
bottom: 0%;
123+
left: calc(50% - 2.4px);
124+
transform-origin: center center;
125+
width: 4.8px;
126+
height: 4.8px;
127+
border-radius: 1000px;
128+
background-color: #000;
129+
opacity: 0;
130+
scale: 0;
131+
transition: opacity 0.2s 0.3s ease-in-out, scale 0.3s ease-in-out;
132+
}
133+
134+
.exmark-circle-selected::before {
135+
opacity: 0;
136+
transition: opacity 0.5s ease-in-out;
137+
}
138+
139+
.exmark-circle-selected .exmark-circle-inner {
140+
stroke-dashoffset: 0;
141+
opacity: 1;
142+
transition: stroke-dashoffset 1s ease-in-out, opacity 0.2s ease-in-out;
143+
}
144+
145+
.exmark-circle-selected .exmark-icon-line {
146+
height: calc(100% - 9.6px);
147+
opacity: 1;
148+
transition: height 0.5s 0.5s ease-in-out, opacity 0.2s 0.5s ease-in-out;
149+
}
150+
151+
.exmark-circle-selected .exmark-icon-circle {
152+
opacity: 1;
153+
scale: 1;
154+
transition: opacity 0.3s 0.7s ease-in-out, scale 0.3s 0.7s ease-in-out;
155+
}
156+
</style>
157+
158+
<script>
159+
const exmarkCircle = document.getElementById("exmark-circle");
160+
161+
exmarkCircle.addEventListener("click", () => {
162+
exmarkCircle.classList.toggle("exmark-circle-selected");
163+
});
164+
</script>
165+
</body>
166+
</html>

0 commit comments

Comments
 (0)