-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
247 lines (235 loc) · 13.7 KB
/
index.html
File metadata and controls
247 lines (235 loc) · 13.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Development Discourses | ImpactMojo</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="A curated open-access library of 500+ research papers, books, and grey literature on development, social impact, and public policy for South Asia.">
<link rel="stylesheet" href="css/style.css">
<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=Inter:wght@300;400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,600;0,700;1,400&display=swap" rel="stylesheet">
</head>
<body>
<header class="site-header">
<div class="container">
<div class="header-content">
<div class="brand">
<a href="https://www.impactmojo.in" class="brand-link" target="_blank" rel="noopener">
<span class="brand-icon">◇</span>
<span class="brand-text">ImpactMojo</span>
</a>
<span class="brand-separator">/</span>
<h1 class="site-title">Development Discourses</h1>
</div>
<p class="site-tagline">A curated open-access library for development practitioners in South Asia</p>
</div>
<nav class="header-nav">
<a href="#about" class="nav-link">About</a>
<a href="https://www.impactmojo.in" class="nav-link" target="_blank" rel="noopener">ImpactMojo ↗</a>
<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>
<!-- Stats Bar -->
<section class="stats-bar">
<div class="container">
<div class="stats-grid">
<div class="stat">
<span class="stat-number" id="totalCount">0</span>
<span class="stat-label">Resources</span>
</div>
<div class="stat">
<span class="stat-number" id="paperCount">0</span>
<span class="stat-label">Papers</span>
</div>
<div class="stat">
<span class="stat-number" id="bookCount">0</span>
<span class="stat-label">Books</span>
</div>
<div class="stat">
<span class="stat-number" id="greyCount">0</span>
<span class="stat-label">Grey Literature</span>
</div>
<div class="stat">
<span class="stat-number" id="topicCount">0</span>
<span class="stat-label">Topics</span>
</div>
</div>
</div>
</section>
<!-- Search & Filters -->
<section class="search-section">
<div class="container">
<div class="search-box">
<svg class="search-icon" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.35-4.35"></path>
</svg>
<input type="text" id="searchInput" placeholder="Search by title, author, keyword..." autocomplete="off">
<button id="clearSearch" class="clear-btn" title="Clear search">×</button>
</div>
<div class="filter-bar">
<div class="filter-group">
<label class="filter-label">Topic</label>
<div class="filter-pills" id="topicFilters">
<button class="pill active" data-filter="all">All Topics</button>
</div>
</div>
<div class="filter-row">
<div class="filter-group">
<label class="filter-label">Type</label>
<div class="filter-pills" id="typeFilters">
<button class="pill active" data-filter="all">All</button>
<button class="pill" data-filter="paper">Papers</button>
<button class="pill" data-filter="book">Books</button>
<button class="pill" data-filter="grey_literature">Grey Literature</button>
</div>
</div>
<div class="filter-group">
<label class="filter-label">Sort</label>
<select id="sortSelect" class="sort-select">
<option value="title">Title (A-Z)</option>
<option value="title-desc">Title (Z-A)</option>
<option value="year-desc">Year (Newest)</option>
<option value="year-asc">Year (Oldest)</option>
<option value="author">Author (A-Z)</option>
</select>
</div>
</div>
</div>
</div>
</section>
<!-- Results -->
<section class="results-section">
<div class="container">
<div class="results-header">
<p class="results-count" id="resultsCount">Loading resources...</p>
<div class="view-toggle">
<button class="view-btn active" data-view="list" title="List view">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<line x1="3" y1="6" x2="21" y2="6"></line>
<line x1="3" y1="12" x2="21" y2="12"></line>
<line x1="3" y1="18" x2="21" y2="18"></line>
</svg>
</button>
<button class="view-btn" data-view="grid" title="Grid view">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<rect x="3" y="3" width="7" height="7"></rect>
<rect x="14" y="3" width="7" height="7"></rect>
<rect x="3" y="14" width="7" height="7"></rect>
<rect x="14" y="14" width="7" height="7"></rect>
</svg>
</button>
</div>
</div>
<div class="resources-list" id="resourcesList">
<!-- Resources rendered by JS -->
</div>
<div class="load-more-container" id="loadMoreContainer" style="display:none;">
<button class="load-more-btn" id="loadMoreBtn">Load More</button>
</div>
<div class="no-results" id="noResults" style="display:none;">
<svg width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5">
<circle cx="11" cy="11" r="8"></circle>
<path d="m21 21-4.35-4.35"></path>
<line x1="8" y1="11" x2="14" y2="11"></line>
</svg>
<p>No resources match your search.</p>
<button class="reset-btn" id="resetFilters">Reset all filters</button>
</div>
</div>
</section>
<!-- About Section -->
<section class="about-section" id="about">
<div class="container">
<h2>About Development Discourses</h2>
<div class="about-content">
<p><strong>Development Discourses</strong> is a curated open-access library by <a href="https://www.impactmojo.in" target="_blank" rel="noopener">ImpactMojo</a> — a platform for free development economics and policy education in South Asia.</p>
<p>This collection brings together research papers, books, and grey literature across the themes that matter to development practitioners: from monitoring & evaluation to climate resilience, from gender justice to public health, from data governance to livelihoods.</p>
<p>We prioritize <strong>open-access</strong> resources — free to read, cite, and share. Each resource is tagged with its access status: <em>Open Access</em>, <em>Free to Read</em>, or <em>Check Access</em>. We believe knowledge should not sit behind paywalls, especially knowledge about building a more equitable world.</p>
<div class="about-topics">
<h3>Topics Covered</h3>
<div class="topic-tags" id="aboutTopics">
<!-- Rendered by JS -->
</div>
</div>
<div class="about-contribute">
<h3>Suggest a Resource</h3>
<p>Know an open-access paper, book, or report that belongs here? <a href="https://github.com/Varnasr/development-discourses/issues/new" target="_blank" rel="noopener">Open an issue on GitHub</a> or reach out through <a href="https://www.impactmojo.in" target="_blank" rel="noopener">ImpactMojo</a>.</p>
</div>
</div>
</div>
</section>
</main>
<footer class="site-footer">
<div class="container">
<div class="footer-content">
<p>© 2026 <a href="https://www.impactmojo.in" target="_blank" rel="noopener">ImpactMojo</a>. Development Discourses is open-source.</p>
<div class="footer-links">
<a href="https://github.com/Varnasr/development-discourses" target="_blank" rel="noopener">GitHub</a>
<a href="https://www.impactmojo.in" target="_blank" rel="noopener">ImpactMojo</a>
</div>
</div>
</div>
</footer>
<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>