-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
261 lines (236 loc) · 15.6 KB
/
index.html
File metadata and controls
261 lines (236 loc) · 15.6 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dev Case Studies -- Evidence-Based Development Research Library</title>
<script>
(function() {
var KEY = 'imx_theme';
var saved = null;
try { saved = localStorage.getItem(KEY); } catch (e) {}
function resolve(pref) {
if (pref === 'light' || pref === 'dark') return pref;
return (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) ? 'dark' : 'light';
}
document.documentElement.setAttribute('data-theme', resolve(saved));
})();
</script>
<meta name="description" content="200 cited development case studies from 117 countries. Searchable evidence on financial inclusion, health, education, governance, and more.">
<meta name="keywords" content="development case studies, international development, poverty reduction, evidence-based policy, global south, development economics">
<meta property="og:type" content="website">
<meta property="og:title" content="Dev Case Studies">
<meta property="og:description" content="200 cited development case studies from 117 countries. Evidence-based research library.">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Dev Case Studies">
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232d5f8a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/><path d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/></svg>" type="image/svg+xml">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600&family=Inter:wght@400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css">
</head>
<body class="index-page">
<a href="#main-content" class="skip-link">Skip to main content</a>
<!-- Header — compact on index -->
<header class="site-header" role="banner">
<div class="container-full">
<a href="./index.html" class="site-logo">
<span class="site-logo-icon" aria-hidden="true"><span class="si"><svg viewBox="0 0 24 24"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/></svg></span></span>
<span>Dev Case Studies</span>
</a>
<div class="header-center">
<div class="header-stats">
<span class="header-stat"><strong>200</strong> studies</span>
<span class="header-stat-sep"></span>
<span class="header-stat"><strong>117</strong> countries</span>
<span class="header-stat-sep"></span>
<span class="header-stat"><strong>10</strong> topics</span>
</div>
</div>
<nav class="site-nav" aria-label="Main navigation">
<button id="mobile-filter-toggle" class="mobile-filter-btn" aria-label="Toggle filters">
<span class="si"><svg viewBox="0 0 24 24"><line x1="4" y1="6" x2="20" y2="6"/><line x1="8" y1="12" x2="20" y2="12"/><line x1="12" y1="18" x2="20" y2="18"/></svg></span>
Filters
</button>
<div class="theme-selector" role="group" aria-label="Theme selection">
<button class="theme-btn" data-theme="system" title="System theme" aria-label="Use system theme">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
</button>
<button class="theme-btn" data-theme="light" title="Light theme" aria-label="Use light theme">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"/><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></svg>
</button>
<button class="theme-btn" data-theme="dark" title="Dark theme" aria-label="Use dark theme">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>
</button>
</div>
</nav>
</div>
</header>
<!-- Main layout: sidebar + content -->
<div class="index-layout">
<!-- Left Sidebar: filters -->
<aside class="filter-sidebar" id="filter-sidebar" role="search" aria-label="Filter case studies">
<!-- Search -->
<div class="sidebar-search">
<div class="search-bar">
<span class="search-icon" aria-hidden="true"><span class="si"><svg viewBox="0 0 24 24"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg></span></span>
<label for="search-input" class="sr-only">Search case studies</label>
<input type="search" id="search-input" placeholder="Search titles, countries, keywords..." autocomplete="off" spellcheck="false">
<button id="search-clear" class="search-clear" aria-label="Clear search"><span class="si"><svg viewBox="0 0 24 24"><line x1="18" y1="6" x2="6" y2="18"/><line x1="6" y1="6" x2="18" y2="18"/></svg></span></button>
<span id="search-kbd" class="search-kbd" aria-hidden="true">/</span>
</div>
</div>
<!-- Research question search -->
<div class="sidebar-search" style="margin-top:-4px">
<div class="search-bar search-bar-rq">
<span class="search-icon" aria-hidden="true"><span class="si"><svg viewBox="0 0 24 24"><path d="M9 18h6"/><path d="M10 22h4"/><path d="M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z"/></svg></span></span>
<label for="rq-input" class="sr-only">Search by research question</label>
<input type="search" id="rq-input" placeholder="Ask a research question..." autocomplete="off" spellcheck="false">
</div>
<div class="rq-hint" id="rq-hint"></div>
</div>
<!-- Active filters bar -->
<div id="active-filters" class="active-filters" aria-live="polite"></div>
<!-- Topic Filter -->
<div class="filter-panel">
<button class="filter-panel-toggle" aria-expanded="true" data-target="fp-topics">
<span class="si"><svg viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="16" y1="13" x2="8" y2="13"/><line x1="16" y1="17" x2="8" y2="17"/></svg></span>
Topic
<span class="filter-count" id="topic-count"></span>
<span class="toggle-chevron"><span class="si"><svg viewBox="0 0 24 24"><polyline points="18 15 12 9 6 15"/></svg></span></span>
</button>
<div class="filter-panel-body" id="fp-topics">
<div class="chip-group" id="topic-chips" role="group" aria-label="Filter by topic"></div>
</div>
</div>
<!-- Region Filter -->
<div class="filter-panel">
<button class="filter-panel-toggle" aria-expanded="true" data-target="fp-regions">
<span class="si"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg></span>
Region
<span class="filter-count" id="region-count"></span>
<span class="toggle-chevron"><span class="si"><svg viewBox="0 0 24 24"><polyline points="18 15 12 9 6 15"/></svg></span></span>
</button>
<div class="filter-panel-body" id="fp-regions">
<div class="chip-group" id="region-chips" role="group" aria-label="Filter by region"></div>
</div>
</div>
<!-- Decade Filter -->
<div class="filter-panel">
<button class="filter-panel-toggle" aria-expanded="true" data-target="fp-decades">
<span class="si"><svg viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg></span>
Decade
<span class="filter-count" id="decade-count"></span>
<span class="toggle-chevron"><span class="si"><svg viewBox="0 0 24 24"><polyline points="18 15 12 9 6 15"/></svg></span></span>
</button>
<div class="filter-panel-body" id="fp-decades">
<div class="chip-group" id="decade-chips" role="group" aria-label="Filter by decade"></div>
</div>
</div>
<!-- Sort -->
<div class="filter-panel">
<div class="filter-panel-toggle filter-panel-static">
<span class="si"><svg viewBox="0 0 24 24"><line x1="12" y1="20" x2="12" y2="10"/><line x1="18" y1="20" x2="18" y2="4"/><line x1="6" y1="20" x2="6" y2="16"/></svg></span>
Sort
</div>
<div class="filter-panel-body open">
<select id="sort-select" class="sort-select">
<option value="default">Default order</option>
<option value="title-az">Title A to Z</option>
<option value="title-za">Title Z to A</option>
<option value="year-new">Newest first</option>
<option value="year-old">Oldest first</option>
<option value="country-az">Country A to Z</option>
</select>
</div>
</div>
<!-- Sidebar footer -->
<div class="sidebar-footer">
<p>Every case study cited, every lesson grounded in evidence.</p>
</div>
</aside>
<!-- Main content area -->
<main id="main-content" class="index-main">
<!-- Welcome / About banner -->
<div class="welcome-banner" id="welcome-banner">
<button class="welcome-close" id="welcome-close" aria-label="Dismiss welcome message">×</button>
<h2 class="welcome-title">Evidence-Based Development Research Library</h2>
<p class="welcome-desc">A curated collection of <strong>200 case studies</strong> from <strong>117 countries</strong> spanning 10 development topics — from financial inclusion and health to governance and climate. Every study is grounded in real interventions with cited evidence.</p>
<div class="welcome-features">
<div class="welcome-feature">
<strong>Search & Filter</strong>
<span>Use the sidebar to filter by topic, region, or decade. Search by title, country, or keyword — or ask a research question.</span>
</div>
<div class="welcome-feature">
<strong>Explore Studies</strong>
<span>Click any card to read the full case study with evidence findings, key outcomes, citations, and Cornell-style study notes.</span>
</div>
<div class="welcome-feature">
<strong>Built for Learning</strong>
<span>Designed for students, researchers, and practitioners of international development who need cited evidence and real-world lessons.</span>
</div>
</div>
</div>
<div class="results-bar">
<p id="results-count" class="results-count" aria-live="polite">Loading case studies...</p>
<div class="view-controls">
<button class="view-btn active" id="view-grid" aria-label="Grid view" title="Grid view">
<span class="si"><svg viewBox="0 0 24 24"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/></svg></span>
</button>
<button class="view-btn" id="view-list" aria-label="List view" title="List view">
<span class="si"><svg viewBox="0 0 24 24"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg></span>
</button>
</div>
</div>
<div id="card-grid" class="card-grid" role="list">
<div class="skeleton-card" aria-hidden="true"><div class="skeleton-line short"></div><div class="skeleton-line title"></div><div class="skeleton-line medium"></div><div class="skeleton-line long"></div><div class="skeleton-line long"></div><div class="skeleton-line short"></div></div>
<div class="skeleton-card" aria-hidden="true"><div class="skeleton-line short"></div><div class="skeleton-line title"></div><div class="skeleton-line medium"></div><div class="skeleton-line long"></div><div class="skeleton-line long"></div><div class="skeleton-line short"></div></div>
<div class="skeleton-card" aria-hidden="true"><div class="skeleton-line short"></div><div class="skeleton-line title"></div><div class="skeleton-line medium"></div><div class="skeleton-line long"></div><div class="skeleton-line long"></div><div class="skeleton-line short"></div></div>
</div>
</main>
</div>
<footer class="site-footer" role="contentinfo">
<div class="container">
<p><strong>Built for learning.</strong> Every case study grounded in real interventions with cited evidence. An educational resource for students, researchers, and practitioners of international development.</p>
</div>
</footer>
<button id="scroll-top" class="scroll-top" aria-label="Scroll to top" title="Scroll to top"><span class="si"><svg viewBox="0 0 24 24"><polyline points="18 15 12 9 6 15"/></svg></span></button>
<div id="toast" class="toast" aria-live="polite"></div>
<script>window.onerror=function(m,s,l,c,e){var g=document.getElementById('card-grid');if(g)g.innerHTML='<div style="padding:2rem;color:#c00"><h3>JS Error</h3><p>'+m+'</p><p>'+s+':'+l+'</p></div>';};window.onunhandledrejection=function(e){var g=document.getElementById('card-grid');if(g)g.innerHTML='<div style="padding:2rem;color:#c00"><h3>Promise Error</h3><p>'+String(e.reason)+'</p></div>';};</script>
<script src="./js/app.js"></script>
<script>
(function() {
var KEY = 'imx_theme';
var html = document.documentElement;
function getSaved() { try { return localStorage.getItem(KEY); } catch (e) { return null; } }
function resolve(pref) {
if (pref === 'light' || pref === 'dark') return pref;
return (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) ? 'dark' : 'light';
}
function apply(pref) {
html.setAttribute('data-theme', resolve(pref));
var active = pref || 'system';
document.querySelectorAll('.theme-btn').forEach(function(btn) {
btn.classList.toggle('active', btn.getAttribute('data-theme') === active);
});
}
function setTheme(pref) {
try {
if (pref === 'system' || !pref) localStorage.removeItem(KEY);
else localStorage.setItem(KEY, pref);
} catch (e) {}
apply(pref);
}
apply(getSaved());
document.querySelectorAll('.theme-btn').forEach(function(btn) {
btn.addEventListener('click', function() { setTheme(btn.getAttribute('data-theme')); });
});
if (window.matchMedia) {
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function() {
if (!getSaved()) apply(null);
});
}
})();
</script>
</body>
</html>