Skip to content

Commit 1689fb1

Browse files
Added Day 100
1 parent 8c9c3f4 commit 1689fb1

1 file changed

Lines changed: 164 additions & 0 deletions

File tree

public/100/index.html

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
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 100/100</title>
7+
</head>
8+
<body>
9+
<main>
10+
<div class="text">
11+
<div class="square" id="square"></div>
12+
<div class="circle circle-1" id="circle-1"></div>
13+
<div class="circle circle-2" id="circle-2"></div>
14+
<div class="logo">
15+
&lt;<span class="logo-blue">100-days</span>&gt;<br />
16+
&nbsp;<span class="logo-black">of</span><br />
17+
&nbsp;<span class="logo-black">Web</span><br />
18+
&nbsp;<span class="logo-black">Components</span><br />
19+
&lt;/<span class="logo-blue">100-days</span>&gt;<br />
20+
</div>
21+
</div>
22+
</main>
23+
24+
<style>
25+
@font-face {
26+
font-family: "SFMonoBold";
27+
src: url("/assets/SFMono-Bold.woff2") format("woff2");
28+
font-weight: bold;
29+
}
30+
31+
body {
32+
margin: 0;
33+
overflow: hidden;
34+
display: flex;
35+
user-select: none;
36+
-webkit-user-select: none;
37+
justify-content: center;
38+
align-items: center;
39+
width: 100vw;
40+
height: 100vh;
41+
background-color: #000;
42+
}
43+
44+
main {
45+
width: 100vw;
46+
height: 100vh;
47+
display: flex;
48+
flex-direction: column;
49+
align-items: center;
50+
justify-content: center;
51+
}
52+
53+
.text {
54+
position: relative;
55+
cursor: pointer;
56+
width: 340px;
57+
height: 100px;
58+
display: flex;
59+
}
60+
61+
.text::before {
62+
content: "";
63+
position: fixed;
64+
pointer-events: none;
65+
top: 0;
66+
left: 0;
67+
width: 100vw;
68+
height: 100vh;
69+
opacity: 0;
70+
background-color: #fff;
71+
transition: opacity 0.5s ease-in-out;
72+
}
73+
74+
.text:hover::before {
75+
opacity: 1;
76+
transition: opacity 0.5s 0.5s ease-in-out;
77+
}
78+
79+
.square,
80+
.circle {
81+
position: absolute;
82+
width: 100px;
83+
height: 100px;
84+
background-color: #fff;
85+
}
86+
87+
.square {
88+
top: 0;
89+
left: 0;
90+
width: 50px;
91+
margin-left: 50px;
92+
transform-origin: bottom right;
93+
transition: all 0.5s 0.5s ease-in-out;
94+
}
95+
96+
.circle {
97+
top: 0;
98+
left: 120px;
99+
border-radius: 50px;
100+
101+
transition: all 0.5s 0.5s ease-in-out;
102+
}
103+
104+
.circle-2 {
105+
top: 0;
106+
left: 240px;
107+
background-color: transparent;
108+
outline: 25px solid #4683ff;
109+
outline-offset: -25px;
110+
111+
transition: left 0.5s 0.5s ease-in-out, scale 0.5s ease-in-out;
112+
}
113+
114+
.text:hover .square {
115+
left: 20px;
116+
rotate: 90deg;
117+
opacity: 0;
118+
transition: all 0.5s ease-in-out;
119+
}
120+
121+
.text:hover .circle-1 {
122+
opacity: 0;
123+
transition: all 0.5s ease-in-out;
124+
}
125+
126+
.text:hover .circle-2 {
127+
left: 120px;
128+
scale: 0;
129+
transition: left 0.5s ease-in-out, scale 0.5s 0.5s ease-in-out;
130+
}
131+
132+
.logo {
133+
position: fixed;
134+
top: 50%;
135+
left: 50%;
136+
translate: -50% -50%;
137+
width: fit-content;
138+
font-family: "SFMonoBold", sans-serif;
139+
line-height: normal;
140+
font-weight: bold;
141+
font-size: min(6.8vw, 30px);
142+
text-align: left;
143+
color: rgba(200, 200, 200, 1);
144+
transform-origin: center center;
145+
146+
scale: 0;
147+
transition: scale 0.5s ease-in-out;
148+
}
149+
150+
.logo-blue {
151+
color: rgba(70, 131, 255, 1);
152+
}
153+
154+
.logo-black {
155+
color: rgba(0, 0, 0, 1);
156+
}
157+
158+
.text:hover .logo {
159+
scale: 1;
160+
transition: scale 0.5s 0.5s ease-in-out;
161+
}
162+
</style>
163+
</body>
164+
</html>

0 commit comments

Comments
 (0)