-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday95.html
More file actions
90 lines (80 loc) · 2.57 KB
/
day95.html
File metadata and controls
90 lines (80 loc) · 2.57 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
89
90
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DAY 95 | CSS CHALLENGE</title>
<style>
*,
*::after,
*::before {
padding: 0;
margin: 0;
box-sizing: border-box;
}
main {
display: grid;
place-items: center;
min-height: 100vh;
background: #FF9E9D;
}
.badge {
width: 275px;
aspect-ratio: 1.59;
margin: 80px 0;
background:
linear-gradient(90deg, #0000 33%, #fff9, #0000 67%) var(--_p, 100%)/300% no-repeat,
repeating-linear-gradient(135deg, #547980 0 10px, #594F4F 0 20px) 0% 101%/100% 10% no-repeat,
repeating-linear-gradient(#000 0 1px, #0000 0 5px) 93% 50%/10% 50% no-repeat,
repeating-linear-gradient(#000 0 1px, #0000 0 8px) 93% 50%/10% 50% no-repeat,
repeating-linear-gradient(#000 0 1px, #0000 0 10px) 93% 50%/10% 50% no-repeat,
repeating-linear-gradient(#000 0 1px, #0000 0 15px) 93% 50%/10% 50% no-repeat,
repeating-linear-gradient(#000 0 2px, #0000 0 18px) 93% 50%/10% 50% no-repeat,
radial-gradient(50% 100% at bottom, #adadad 98%, #0000) 13% 71.5%/25% 20% no-repeat,
radial-gradient(50% 50%, #adadad 98%, #0000) 17% 40%/15% 27% no-repeat,
linear-gradient(#d8d8d8 0 0) 10% 50%/30% 55% no-repeat,
radial-gradient(28.28px at 50% calc(100% - 40.00px), #D5DED9 98%, #0000 102%) calc(50% - 40px) 0/80px 40px repeat-x,
radial-gradient(28.28px at 50% calc(100% + 20.00px), #0000 98%, #D5DED9 102%) 50% -20px/80px 40px repeat-x,
#f2f2f2;
border-radius: 10px;
font-family: sans-serif;
white-space: pre;
padding: 45px 0 0 107px;
box-sizing: border-box;
font-size: 12px;
line-height: 1.4;
box-shadow: 7px 2px 10px #0004;
transform: perspective(500px) rotateY(-12deg);
transition: .4s;
cursor: pointer;
position: relative;
}
.badge:hover {
box-shadow: -7px 2px 10px #0004;
transform: perspective(500px) rotateY(12deg);
--_p: 0%;
}
.badge:first-line {
font-size: 22px;
font-weight: 900;
}
.badge::before {
content: "Danbo \A Front-End \A \A Exp: unlimited";
}
.badge::after {
content: "03989-5647-58025";
font-size: 9px;
position: absolute;
bottom: 50%;
left: calc(100% - 2px);
transform-origin: bottom;
transform: translateX(-50%) rotate(-90deg);
}
</style>
</head>
<body>
<main>
<div class="badge"></div>
</main>
</body>
</html>