-
Notifications
You must be signed in to change notification settings - Fork 0
/
cord.html
92 lines (76 loc) · 2.1 KB
/
cord.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" />
<style>
* {
box-sizing: border-box;
}
body {
height: 100vh;
padding: 0;
margin: 0;
background: linear-gradient(240deg, rgba(150, 50, 50, 0.3), rgba(0, 0, 200, 0));
display: flex;
justify-content: center;
align-items: center;
}
.cards {
width: 500px;
height: 600px;
background: #eee;
}
.header {
width: 100%;
height: 200px;
display: grid;
grid-template-columns: 1fr 1fr;
}
.left {
display: flex;
justify-content: center;
align-items: center;
font-size: 60px;
}
.MonDay {
line-height: 100px;
text-align: center;
}
.snow {
line-height: 100px;
text-align: center;
}
.card-body {
width: 100;
height: calc(100% - 200px);
display: flex;
justify-content: center;
align-items: center;
}
</style>
</head>
<body>
<div class="cards">
<div class="header">
<div class="left">20c</div>
<div class="data">
<div class="MonDay">Monday 22 August</div>
<div class="snow">Snow</div>
</div>
</div>
<div class="card-body">
<svg width="300px" height="300px">
<circle cx="100" cy="100" r="60" fill="yellow" stroke="yellow" stroke-width="80px"
stroke-dasharray="8px" />
</svg>
</div>
</div>
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<script>
</script>
</body>
</html>