-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcauses.html
238 lines (238 loc) · 7.82 KB
/
causes.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trending Causes</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Roboto', sans-serif;
margin: 0;
padding: 0;
background-color: #f9f9f9;
color: #333;
}
.container {
width: 90%;
max-width: 1200px;
margin: 40px auto;
text-align: center;
}
.container h1 {
font-size: 36px;
color: #333;
margin-bottom: 10px;
}
.container p {
font-size: 18px;
color: #777;
margin-bottom: 30px;
}
.card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.card {
background: #fff;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.card-content {
padding: 20px;
}
.card-content .category {
display: inline-block;
padding: 5px 10px;
background: #e63946;
color: #fff;
border-radius: 4px;
font-size: 12px;
margin-bottom: 10px;
}
.card-content .category.education {
background: #f77f00;
}
.card-content .category.shelter {
background: #e63946;
}
.card-content h3 {
font-size: 20px;
color: #333;
margin: 10px 0;
}
.card-content p {
font-size: 14px;
color: #777;
margin-bottom: 10px;
}
.progress-bar {
position: relative;
height: 10px;
background: #ddd;
border-radius: 5px;
margin: 10px 0;
overflow: hidden;
}
.progress-bar span {
display: block;
height: 100%;
background: #e63946;
}
.progress-bar span.education {
background: #f77f00;
}
.progress-bar span.shelter {
background: #e63946;
}
.load-more {
margin: 30px auto;
text-align: center;
}
.load-more button {
padding: 10px 20px;
background: #e63946;
color: #fff;
border: none;
border-radius: 5px;
font-size: 16px;
font-weight: bold;
cursor: pointer;
transition: background 0.3s ease;
}
.load-more button:hover {
background: #c02634;
}
.newsletter {
background: #fff;
padding: 20px;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-align: center;
margin-top: 40px;
}
.newsletter p {
font-size: 16px;
margin-bottom: 15px;
color: #555;
}
.newsletter input {
padding: 10px;
width: 70%;
border: 1px solid #ddd;
border-radius: 5px;
margin-right: 10px;
font-size: 14px;
}
.newsletter button {
padding: 10px 20px;
background: #e63946;
color: #fff;
border: none;
border-radius: 5px;
font-weight: bold;
cursor: pointer;
font-size: 14px;
}
.newsletter button:hover {
background: #e63946;
}
</style>
</head>
<body>
<div class="container">
<p class="subheading" style="font-size: 1.8rem; margin-bottom: 1px;">Trending causes</p>
<h1 style="margin-bottom: 70px; font-size: 2.6rem; margin-top: 15px;">We are always where other people need help</h1>
<div class="card-grid">
<!-- Card 1 -->
<div class="card">
<img src="card1.png" alt="Cause Image">
<div class="card-content">
<span class="category">Food & Water</span>
<h3>Collect fund for drinking water & healthy food</h3>
<p>65 days remaining</p>
<div class="progress-bar"><span style="width: 85%;"></span></div>
<p>Goal: $10,000</p>
</div>
</div>
<!-- Card 2 -->
<div class="card">
<img src="card2.png" alt="Cause Image">
<div class="card-content">
<span class="category education">Education</span>
<h3>Give children a good education & better life</h3>
<p>52 days remaining</p>
<div class="progress-bar"><span class="education" style="width: 45%;"></span></div>
<p>Goal: $7,000</p>
</div>
</div>
<!-- Card 3 -->
<div class="card">
<img src="card3.png" alt="Cause Image">
<div class="card-content">
<span class="category shelter">Home & Shelter</span>
<h3>Collect fund for drinking water & healthy food</h3>
<p>147 days remaining</p>
<div class="progress-bar"><span class="shelter" style="width: 55%;"></span></div>
<p>Goal: $25,000</p>
</div>
</div>
<!-- Card 4 -->
<div class="card">
<img src="card4.png" alt="Cause Image">
<div class="card-content">
<span class="category">Food & Water</span>
<h3>Help provide clean water for communities</h3>
<p>30 days remaining</p>
<div class="progress-bar"><span style="width: 70%;"></span></div>
<p>Goal: $8,000</p>
</div>
</div>
<!-- Card 5 -->
<div class="card">
<img src="card5.png" alt="Cause Image">
<div class="card-content">
<span class="category education">Education</span>
<h3>Support literacy programs for children</h3>
<p>90 days remaining</p>
<div class="progress-bar"><span class="education" style="width: 60%;"></span></div>
<p>Goal: $12,000</p>
</div>
</div>
<!-- Card 6 -->
<div class="card">
<img src="card6.png" alt="Cause Image">
<div class="card-content">
<span class="category shelter">Home & Shelter</span>
<h3>Build safe homes for families</h3>
<p>120 days remaining</p>
<div class="progress-bar"><span class="shelter" style="width: 40%;"></span></div>
<p>Goal: $15,000</p>
</div>
</div>
</div>
<div class="load-more">
<button>Load more...</button>
</div>
</div>
<div class="newsletter">
<p>To get weekly & monthly news, subscribe to our newsletter.</p>
<form>
<input type="email" placeholder="Your email address">
<button type="submit">Subscribe</button>
</form>
</div>
</body>
</html>