generated from dev-protocol/template-repos-static
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
95 lines (84 loc) · 1.47 KB
/
index.html
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
91
92
93
94
95
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chocolate Chip Cookie - CSS Art</title>
<style>
body {
background-color: #f5f5dc;
margin: 0;
padding: 0;
font-family: sans-serif;
}
.cookie {
width: 200px;
height: 200px;
border-radius: 50%;
background-color: #c1755e;
position: relative;
margin: 100px auto;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}
.chocolate-chip {
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #332920;
position: absolute;
}
.chocolate-chip1 {
top: 20%;
left: 20%;
}
.chocolate-chip2 {
top: 60%;
left: 40%;
}
.chocolate-chip3 {
top: 80%;
right: 20%;
}
.chocolate-chip4 {
bottom: 20%;
right: 40%;
}
.crumb {
width: 10px;
height: 5px;
background-color: #f5f5dc;
border-radius: 2px;
position: absolute;
transform: rotate(45deg);
}
.crumb1 {
top: 10%;
left: 30%;
}
.crumb2 {
top: 40%;
left: 50%;
}
.crumb3 {
right: 10%;
top: 30%;
}
.crumb4 {
right: 40%;
bottom: 20%;
}
</style>
</head>
<body>
<div class="cookie">
<div class="chocolate-chip chocolate-chip1"></div>
<div class="chocolate-chip chocolate-chip2"></div>
<div class="chocolate-chip chocolate-chip3"></div>
<div class="chocolate-chip chocolate-chip4"></div>
<div class="crumb crumb1"></div>
<div class="crumb crumb2"></div>
<div class="crumb crumb3"></div>
<div class="crumb crumb4"></div>
</div>
</body>
</html>