-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
203 lines (183 loc) · 4.66 KB
/
test.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CodePen - Responsive Card Grid Layout</title>
<link rel="stylesheet" href="./style.css">
</head>
<style>
/* Font */
@import url('https://fonts.googleapis.com/css?family=Quicksand:400,700');
/* Design */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
background-color: #ecf9ff;
}
body {
color: #272727;
font-family: 'Quicksand', serif;
font-style: normal;
font-weight: 400;
letter-spacing: 0;
padding: 1rem;
}
.main{
max-width: 1200px;
margin: 0 auto;
}
h1 {
font-size: 24px;
font-weight: 400;
text-align: center;
}
img {
height: auto;
max-width: 100%;
vertical-align: middle;
}
.btn {
color: #ffffff;
padding: 0.8rem;
font-size: 14px;
text-transform: uppercase;
border-radius: 4px;
font-weight: 400;
display: block;
width: 100%;
cursor: pointer;
border: 1px solid rgba(255, 255, 255, 0.2);
background: transparent;
}
.btn:hover {
background-color: rgba(255, 255, 255, 0.12);
}
.cards {
display: flex;
flex-wrap: wrap;
list-style: none;
margin: 0;
padding: 0;
}
.cards_item {
display: flex;
padding: 1rem;
}
@media (min-width: 40rem) {
.cards_item {
width: 50%;
}
}
@media (min-width: 56rem) {
.cards_item {
width: 33.3333%;
}
}
.card {
background-color: white;
border-radius: 0.25rem;
box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
display: flex;
flex-direction: column;
overflow: hidden;
}
.card_content {
padding: 1rem;
background: linear-gradient(to bottom left, #EF8D9C 40%, #FFC39E 100%);
}
.card_title {
color: #ffffff;
font-size: 1.1rem;
font-weight: 700;
letter-spacing: 1px;
text-transform: capitalize;
margin: 0px;
}
.card_text {
color: #ffffff;
font-size: 0.875rem;
line-height: 1.5;
margin-bottom: 1.25rem;
font-weight: 400;
}
.made_by{
font-weight: 400;
font-size: 13px;
margin-top: 35px;
text-align: center;
}
</style>
<body>
<!-- partial:index.partial.html -->
<div class="main">
<h1>Responsive Card Grid Layout</h1>
<ul class="cards">
<li class="cards_item">
<div class="card">
<div class="card_image"><img src="https://picsum.photos/500/300/?image=10"></div>
<div class="card_content">
<h2 class="card_title">Card Grid Layout</h2>
<p class="card_text">Demo of pixel perfect pure CSS simple responsive card grid layout</p>
<button class="btn card_btn">Read More</button>
</div>
</div>
</li>
<li class="cards_item">
<div class="card">
<div class="card_image"><img src="https://picsum.photos/500/300/?image=5"></div>
<div class="card_content">
<h2 class="card_title">Card Grid Layout</h2>
<p class="card_text">Demo of pixel perfect pure CSS simple responsive card grid layout</p>
<button class="btn card_btn">Read More</button>
</div>
</div>
</li>
<li class="cards_item">
<div class="card">
<div class="card_image"><img src="https://picsum.photos/500/300/?image=11"></div>
<div class="card_content">
<h2 class="card_title">Card Grid Layout</h2>
<p class="card_text">Demo of pixel perfect pure CSS simple responsive card grid layout</p>
<button class="btn card_btn">Read More</button>
</div>
</div>
</li>
<li class="cards_item">
<div class="card">
<div class="card_image"><img src="https://picsum.photos/500/300/?image=14"></div>
<div class="card_content">
<h2 class="card_title">Card Grid Layout</h2>
<p class="card_text">Demo of pixel perfect pure CSS simple responsive card grid layout</p>
<button class="btn card_btn">Read More</button>
</div>
</div>
</li>
<li class="cards_item">
<div class="card">
<div class="card_image"><img src="https://picsum.photos/500/300/?image=17"></div>
<div class="card_content">
<h2 class="card_title">Card Grid Layout</h2>
<p class="card_text">Demo of pixel perfect pure CSS simple responsive card grid layout</p>
<button class="btn card_btn">Read More</button>
</div>
</div>
</li>
<li class="cards_item">
<div class="card">
<div class="card_image"><img src="https://picsum.photos/500/300/?image=2"></div>
<div class="card_content">
<h2 class="card_title">Card Grid Layout</h2>
<p class="card_text">Demo of pixel perfect pure CSS simple responsive card grid layout</p>
<button class="btn card_btn">Read More</button>
</div>
</div>
</li>
</ul>
</div>
<h3 class="made_by">Made with ♡</h3>
<!-- partial -->
</body>
</html>