-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
125 lines (109 loc) · 2.44 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
<!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>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-family: sans-serif;
}
img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
ul {
list-style: none;
}
a {
text-decoration: none;
}
.posts-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
max-width: 1024px;
margin: 5rem auto 3rem;
}
.post-link {
display: block;
height: 100%;
padding: 1rem;
color: currentColor;
transition: .2s;
}
.post-link:hover {
color: darkorange;
box-shadow: 0 0 10px -0.3rem black;
}
.pagination-list {
display: grid;
grid-template-columns: repeat(auto-fit, 50px);
justify-content: center;
gap: 1rem;
max-width: 1024px;
padding: 1rem;
margin: 0 auto;
}
.post-image {
margin-bottom: 1rem;
}
.post-title {
margin-bottom: 1rem;
}
.post-description {
margin-bottom: 1rem;
}
.post-date {
display: block;
margin-bottom: 0.5rem;
}
.pagination-button {
width: 47px;
height: 47px;
padding: 1rem;
border: none;
cursor: pointer;
transition: .1s;
}
.pagination-button:hover,
.pagination-button.active {
color: white;
background-color: darkorange;
}
</style>
</head>
<body>
<ul class="posts-list"></ul>
<ul class="pagination-list"></ul>
<template class="post-template">
<li class="post-item">
<a href="" class="post-link" target="_blank">
<div class="post-image">
<img src="" alt="" />
</div>
<div class="post-infos">
<h2 class="post-title"></h2>
<p class="post-description"></p>
<!-- <time class="post-date" datetime=""></time> -->
<p><small class="post-owner"></small></p>
</div>
</a>
</li>
</template>
<template class="pagination-template">
<li class="pagination-item">
<button class="pagination-button" data-page></button>
</li>
</template>
<script type="module" src="index.js"></script>
</body>
</html>