-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
142 lines (127 loc) · 3.11 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!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>Grid Layout</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400&display=swap');
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: #333;
color: #fff;
font-family: 'Roboto', sans-serif;
}
h2 {
font-size: 45px;
font-weight: 300;
margin: 10px;
}
h2 span {
font-size: 30px;
}
p {
font-size: 20px;
}
.container {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
}
.container > div {
cursor: pointer;
height: 210px;
background-position: center;
background-size: cover;
background-attachment: fixed;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
transition: all 0.5s ease-in;
}
.container > div:hover {
color: orange;
opacity: 0.7;
transform: scale(0.98);
}
.container > div:nth-of-type(1) {
grid-column: 1 / 3;
}
.container > div:nth-of-type(6) {
grid-column: 3 / 5;
}
.container > div:nth-of-type(9) {
grid-column: 3 / 5;
}
.container > div:nth-of-type(10) {
grid-column: 1 / 3;
}
.bg1 {
background: url('./pexels-mads-thomsen-2739013.jpg');
}
.bg2 {
background: url('./pexels-pixabay-33545.jpg');
color: #333;
}
</style>
</head>
<body>
<div class="container">
<div class="bg1">
<h2>16 <span>| 24</span></h2>
<p>Goals Completed</p>
</div>
<div class="bg1">
<h2><i class="fas fa-battery-three-quarters"></i></h2>
<p>Respiration</p>
</div>
<div class="bg2">
<h2><i class="fas fa-running"></i></h2>
<p>Miles</p>
</div>
<div class="bg1">
<h2>36 °</h2>
<p>Temperature</p>
</div>
<div class="bg1">
<h2><i class="fas fa-bed"></i></h2>
<p>Sleep Keep</p>
</div>
<div class="bg2">
<h2>98 <span>bpm</span></h2>
<p>Heart Rate</p>
</div>
<div class="bg1">
<h2>170 <span>lbs</span></h2>
<p>Weight</p>
</div>
<div class="bg1">
<h2>28 <span>%</span></h2>
<p>Fat Percentage</p>
</div>
<div class="bg2">
<h2>118 <span>mgdl</span></h2>
<p>Blood Glucose</p>
</div>
<div class="bg2">
<h2>680 <span>kcal</span></h2>
<p>AVG Consumption</p>
</div>
<div class="bg2">
<h2><i class="fas fa-dumbbell"></i></h2>
<p>Workouts</p>
</div>
<div class="bg2">
<h2>85 <span>%</span></h2>
<p>Body Hydration</p>
</div>
</div>
</body>
</html>