-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (51 loc) · 1.31 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap" rel="stylesheet">
<title>Infinity Scroll</title>
<style>
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
font-size: 16px;
line-height: calc(16px * 1.2);
padding: 24px;
}
.header {
font-size: 31.25px;
text-align: center;
}
.image-container {
margin: 10px 30%;
transform: translateY(20px);
}
.image-container img {
width: 100%;
margin-top: 5px
}
@media screen and (max-width: 767px) {
.image-container {
margin: 0;
width: 100%;
}
.image-container img:first-child {
margin-bottom: 10px;
}
}
</style>
</head>
<body>
<div class="header">
<p> Infinity scroll </p>
</div>
<div class="image-container">
</div>
<script type='module' src='script.js'></script>
</body>
</html>