-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday36.html
More file actions
88 lines (77 loc) · 2.32 KB
/
day36.html
File metadata and controls
88 lines (77 loc) · 2.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DAY 36 | CSS CHALLENGE</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
main {
display: grid;
place-items: center;
min-height: 100vh;
}
.frame {
width: 400px;
height: 400px;
border-radius: 1rem;
box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);
background: #404556;
position: relative;
}
#bulb {
position: absolute;
z-index: 2;
top: 134px;
left: 162px;
fill: #FFF35C;
transition: all 0.5s ease-in-out;
cursor: pointer;
}
#bulb:hover {
fill: #8C8F99;
}
#glow {
position: absolute;
width: 76px;
height: 76px;
background: #FFF35C;
border-radius: 50px;
box-shadow: 0 0 50px 10px #FFF35C;
top: 134px;
left: 162px;
transition: all 0.5s ease-in-out;
}
#bulb:hover~#glow {
opacity: 0;
}
#base {
position: absolute;
top: 233px;
left: 184px;
fill: #E5E5E5;
}
</style>
</head>
<body>
<main>
<div class="frame">
<svg width="76px" height="94px" viewBox="0 0 76 94" id="bulb" onclick="void(0);">
<path
d="M76,37.037 C76,59.939 55.6428571,75.427 55.6428571,93.5 L20.3571429,93.5 C20.3571429,75.427 0,59.9335 0,37.037 C0,13.1505 18.9891429,0 37.9782857,0 C56.9891429,0 76,13.167 76,37.037 L76,37.037 Z">
</path>
</svg>
<div id="glow"></div>
<svg width="32px" height="33px" viewBox="0 0 32 33" id="base">
<path
d="M29.3333333,0 L2.66666667,0 C1.19466667,0 0,1.232 0,2.75 C0,4.268 1.19466667,5.5 2.66666667,5.5 L29.3333333,5.5 C30.8053333,5.5 32,4.268 32,2.75 C32,1.232 30.8053333,0 29.3333333,0 L29.3333333,0 Z M29.3333333,11 L2.66666667,11 C1.19466667,11 0,12.232 0,13.75 C0,15.268 1.19466667,16.5 2.66666667,16.5 L29.3333333,16.5 C30.8053333,16.5 32,15.268 32,13.75 C32,12.232 30.8053333,11 29.3333333,11 L29.3333333,11 Z M30.6666667,22 L1.33333333,22 L9.072,31.1245 C10.0853333,32.3125 11.552,33 13.088,33 L18.9173333,33 C20.4533333,33 21.9146667,32.3125 22.928,31.1245 L30.6666667,22 L30.6666667,22 Z">
</path>
</svg>
</div>
</main>
</body>
</html>