-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
358 lines (308 loc) · 10.5 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
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script defer src="/_vercel/insights/script.js"></script>
<title>Kenya Sustainable Community Development Hub</title>
<meta
name="description"
content="High-performance HTML based website template."
/>
</head>
<body>
<h1>Kenya SCD Hub</h1>
<p>Solutions to the Climate Crisis</p>
<style>
@import url("https://fonts.googleapis.com/css2?family=Inter:[email protected]&display=swap");
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", sans-serif;
}
:root {
--light: #ffe6e6;
--dark: #0c0c0c;
}
.container {
--bg-color: radial-gradient(
circle at 50% 0%,
rgba(50, 50, 50, 1) 0%,
rgba(12, 12, 12, 1) 100%
);
overflow: clip;
position: relative;
display: flex;
justify-content: center;
align-items: center;
padding: 2rem 5rem;
width: 100%;
height: 100dvh;
background-image: var(--bg-color);
}
.category_container {
--gap: 0.5rem;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: nowrap;
gap: calc(var(--gap) * 2);
width: 100%;
height: 100%;
}
.content {
--active: 0;
cursor: pointer;
overflow: clip;
position: relative;
z-index: 10;
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 1.5rem;
padding: 2.5rem;
width: calc((100% / 3) - var(--gap));
height: 100%;
border-radius: 1rem;
transition: width 0.5s ease-in-out;
}
.content:hover {
--active: 1;
width: calc(70% - var(--gap));
}
.content::before {
content: "";
position: absolute;
z-index: -10;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: var(--dark);
opacity: 0.6;
}
.content img {
position: absolute;
z-index: -20;
top: 0;
left: 0;
width: 100%;
height: 100%;
-o-object-fit: cover;
object-fit: cover;
-o-object-position: center;
object-position: center;
}
.content .profile_image {
opacity: calc(1 - var(--active));
transition: opacity 0.3s ease-in-out;
}
.profile_detail {
display: flex;
flex-direction: column;
gap: 0.5rem;
width: 12rem;
transition: transform 0.5s cubic-bezier(0.23, 0.93, 0.77, 1) 0.01s;
}
.profile_detail span {
font-size: 1.5rem;
font-weight: 600;
color: var(--light);
text-wrap: nowrap;
}
.profile_detail p {
font-size: 0.75rem;
font-weight: 500;
color: var(--light);
}
.profile_quote {
width: 22rem;
transform: translate(0, calc((1 - var(--active)) * (100% + 2.5rem)));
}
.profile_quote p {
font-size: 1.5rem;
font-weight: 600;
color: var(--light);
transform: translate(0, calc((1 - var(--active)) * (100% + 2.5rem)));
transition: transform 0.5s cubic-bezier(0.23, 0.93, 0.77, 1) 0.1s;
}
.wrapper {
display: grid;
grid-template-rows: 0fr;
overflow: hidden;
transition: grid-template-rows 0.5s cubic-bezier(0.23, 0.93, 0.77, 1) 0.01s;
transition: grid-template-rows 0.5s cubic-bezier(0.23, 0.93, 0.77, 1) 0.01s, -ms-grid-rows 0.5s cubic-bezier(0.23, 0.93, 0.77, 1) 0.01s;
}
.profile_quote {
min-height: 0;
transform: translateY(50%);
opacity: 0;
transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.23, 0.93, 0.77, 1) 0.01s;
}
.content:hover .wrapper {
grid-template-rows: 1fr;
}
.content:hover .profile_quote {
transform: none;
opacity: 1;
}
dialog {
position: absolute;
z-index: 1;
background: none;
color: white;
border: 0;
font-size: 0.8rem;
padding: 0.5em;
}
dialog a {
color: whitesmoke;
}
</style>
<base href="https://rawcdn.githack.com/MuhammadHasann/component-frontend/7e3a0bced6f1b050e8d0b621f2a3a6e7b1cb06d3/section/category%20card-2/" />
<!-- lazy dog credit note -->
<section class="container">
<div class="category_container">
<div class="content">
<img src="https://exotopia.org/kscdhub/birds-4644652_1280.jpg" class="profession_image" alt="Profession" />
<img src="assets/Prince Akashi.jpg" class="profile_image" alt="Profile" />
<div class="profile_detail">
<span>Renewable Energy Transition</span>
<p>Shift towards renewable energy</p>
</div>
<div class="wrapper">
<div class="profile_quote">
<p>Sources such as solar, wind, and geothermal. This reduces reliance on fossil fuels, lowers greenhouse gas emissions, and can be particularly effective in Kenya, which has abundant renewable resources.</p>
</div>
</div>
</div>
<div class="content">
<img src="" class="profession_image" alt="Profession" />
<img src="assets/Rafaella Mendes.jpg" class="profile_image" alt="Profile" />
<div class="profile_detail">
<span>Afforestation and Reforestation</span>
<p>Planting trees and restoring forests</p>
</div>
<div class="wrapper">
<div class="profile_quote">
<p>..can sequester carbon dioxide, enhance biodiversity, and stabilize local climates. Initiatives could include community tree-planting drives and rehabilitation of degraded lands.</p>
</div>
</div>
</div>
</div>
</section>
<section class="container">
<div class="category_container">
<div class="content">
<img src="https://exotopia.org/kscdhub/safari-111698_1280.jpg" class="professio_image" alt="Profession" />
<img src="assets/John Doe.jpg" class="profile_image" alt="Profile" />
<div class="profile_detail">
<span>Sustainable Agriculture</span>
</div>
<div class="wrapper">
<div class="profile_quote">
<p>"Promote agricultural practices that increase productivity while being environmentally friendly. Techniques such as agroforestry, conservation tillage, and organic farming can improve soil health and reduce emissions."</p>
</div>
</div>
</div>
<div class="content">
<img src="assets/Photographer.jpg" class="profession_image" alt="Profession" />
<img src="assets/Prince Akashi.jpg" class="profile_image" alt="Profile" />
<div class="profile_detail">
<span>Water Conservation</span>
<p>Implement water-saving techniques </p>
</div>
<div class="wrapper">
<div class="profile_quote">
<p>"..to ensure efficient use of water resources. Rainwater harvesting, drip irrigation, and wastewater treatment can play a significant role in water management."</p>
</div>
</div>
</div>
<div class="content">
<img src="assets/Fashion Designer.jpg" class="profession_image" alt="Profession" />
<img src="assets/Rafaella Mendes.jpg" class="profile_image" alt="Profile" />
<div class="profile_detail">
<span>Waste Reduction and Recycling</span>
<p>recycling programs, composting, and sustainable packaging</p>
</div>
<div class="wrapper">
<div class="profile_quote">
<p>"Encourage waste reduction through recycling programs, composting, and sustainable packaging. This helps to lower the amount of waste in landfills, which are a significant source of methane emissions."</p>
</div>
</div>
</div>
</div>
</section>
<section class="container">
<div class="category_container">
<div class="content">
<img src="assets/UI UX Designer.jpg" class="professio_image" alt="Profession" />
<img src="assets/John Doe.jpg" class="profile_image" alt="Profile" />
<div class="profile_detail">
<span>Green Infrastructure</span>
</div>
<div class="wrapper">
<div class="profile_quote">
<p>"Develop infrastructure that is energy-efficient and environmentally sustainable. Green buildings, eco-friendly transportation networks, and smart city designs can reduce the carbon footprint of urban areas."</p>
</div>
</div>
</div>
<div class="content">
<img src="assets/Photographer.jpg" class="profession_image" alt="Profession" />
<img src="assets/Prince Akashi.jpg" class="profile_image" alt="Profile" />
<div class="profile_detail">
<span>Climate Education and Awareness</span>
</div>
<div class="wrapper">
<div class="profile_quote">
<p>"..Educate communities about the impacts of climate change and the importance of sustainability. Knowledge empowers individuals to make informed decisions and advocate for policy changes."</p>
</div>
</div>
</div>
<div class="content">
<img src="assets/Fashion Designer.jpg" class="profession_image" alt="Profession" />
<img src="assets/Rafaella Mendes.jpg" class="profile_image" alt="Profile" />
<div class="profile_detail">
<span>Policy Advocacy</span>
</div>
<div class="wrapper">
<div class="profile_quote">
<p>"Work with local and national governments to advocate for policies that support climate action. This includes regulations on emissions, incentives for green technology, and support for climate resilience in vulnerable communities."</p>
</div>
</div>
</div>
</div>
</section>
<section class="container">
<div class="category_container">
<div class="content">
<img src="assets/UI UX Designer.jpg" class="professio_image" alt="Profession" />
<img src="assets/John Doe.jpg" class="profile_image" alt="Profile" />
<div class="profile_detail">
<span>Community Health Initiatives</span>
</div>
<div class="wrapper">
<div class="profile_quote">
<p>"Address the health impacts of climate change by improving access to healthcare, promoting disease prevention, and ensuring communities are prepared for climate-related health challenges.."</p>
</div>
</div>
</div>
<div class="content">
<img src="assets/Photographer.jpg" class="profession_image" alt="Profession" />
<img src="assets/Prince Akashi.jpg" class="profile_image" alt="Profile" />
<div class="profile_detail">
<span>International Collaboration</span>
</div>
<div class="wrapper">
<div class="profile_quote">
<p>"..Partner with global organizations to share knowledge, resources, and best practices. International cooperation can accelerate progress and provide support for climate adaptation and mitigation efforts.."</p>
</div>
</div>
</div>
</div>
</section>
</body>
</html>