Skip to content

Commit a8aef26

Browse files
Merge pull request #61 from code4policy/viz_on_0116v2
Add index
2 parents df44f16 + e84ca4d commit a8aef26

1 file changed

Lines changed: 11 additions & 24 deletions

File tree

index.html

Lines changed: 11 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737

3838
<nav class="nav">
3939
<button class="nav__link" data-route="learn" aria-current="page">Home</button>
40-
<button class="nav__link" data-route="concept">What is Zero‑Sum Thinking?</button>
41-
<button class="nav__link" data-route="research">The Research</button>
42-
<button class="nav__link" data-route="data">Explore the Data, Visualize</button>
43-
<button class="nav__link" data-route="test">Take the Test</button>
44-
<button class="nav__link" data-route="methods">Methods & Transparency</button>
45-
<button class="nav__link" data-route="ethics">Ethics, Privacy & Disclaimer</button>
40+
<button class="nav__link" data-route="concept">Concept</button>
41+
<button class="nav__link" data-route="research">Research</button>
42+
<button class="nav__link" data-route="data">Visualize</button>
43+
<button class="nav__link" data-route="test">Test</button>
44+
<button class="nav__link" data-route="methods">Methods</button>
45+
<button class="nav__link" data-route="ethics">Ethics</button>
4646
<button class="nav__link" data-route="about">About</button>
4747
</nav>
4848

@@ -157,27 +157,14 @@
157157
</p>
158158
</div>
159159
</div>
160-
161-
<!-- Quick Navigation Buttons -->
162-
<div style="display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center;">
163-
<button onclick="setRoute('test')" style="padding: 14px 28px; background: linear-gradient(135deg, #a51c30 0%, #8b1626 100%); color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(165, 28, 48, 0.4); transition: all 0.3s ease;" onmouseover="this.style.transform='translateY(-2px)'; this.style.boxShadow='0 6px 20px rgba(165, 28, 48, 0.5)';" onmouseout="this.style.transform='translateY(0)'; this.style.boxShadow='0 4px 12px rgba(165, 28, 48, 0.4)';">
164-
Take the Test
165-
</button>
166-
<button onclick="setRoute('visualization')" style="padding: 14px 28px; background: rgba(255, 255, 255, 0.15); color: white; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; backdrop-filter: blur(10px); transition: all 0.3s ease;" onmouseover="this.style.background='rgba(255, 255, 255, 0.25)'; this.style.borderColor='rgba(255, 255, 255, 0.5)';" onmouseout="this.style.background='rgba(255, 255, 255, 0.15)'; this.style.borderColor='rgba(255, 255, 255, 0.3)';">
167-
Explore Data
168-
</button>
169-
<button onclick="setRoute('explore')" style="padding: 14px 28px; background: rgba(255, 255, 255, 0.15); color: white; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; backdrop-filter: blur(10px); transition: all 0.3s ease;" onmouseover="this.style.background='rgba(255, 255, 255, 0.25)'; this.style.borderColor='rgba(255, 255, 255, 0.5)';" onmouseout="this.style.background='rgba(255, 255, 255, 0.15)'; this.style.borderColor='rgba(255, 255, 255, 0.3)';">
170-
Learn More
171-
</button>
172-
</div>
173160
</div>
174161
</div>
175162

176163
<!-- Divider -->
177-
<div style="max-width: 1200px; margin: 48px auto; height: 1px; background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);"></div>
164+
<div style="max-width: 1200px; margin: 20px auto; height: 1px; background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);"></div>
178165

179166
<!-- Main Content -->
180-
<div class="container main" style="padding-top: 40px;">
167+
<div class="container main" style="padding-top: 16px;">
181168
<h2 style="margin-top: 0; margin-bottom: 16px; font-size: 20px; color: var(--text);">How to Use This Platform</h2>
182169

183170
<div class="card" style="
@@ -199,9 +186,9 @@ <h2 style="margin-top: 20px; margin-bottom: 12px; color: var(--text); font-size:
199186
</p>
200187
<ul class="list">
201188
<li><strong><span style="cursor: pointer; color: #007bff; text-decoration: underline;" onclick="setRoute('learn')">Home:</span></strong> Understand the core concepts and how zero-sum thinking is measured.</li>
202-
<li><strong><span style="cursor: pointer; color: #007bff; text-decoration: underline;" onclick="setRoute('explore')">Learn:</span></strong> Play an interactive mini-game and watch animated explanations to build intuition.</li>
189+
<li><strong><span style="cursor: pointer; color: #007bff; text-decoration: underline;" onclick="setRoute('concept')">Learn:</span></strong> Play an interactive mini-game and watch animated explanations to build intuition.</li>
203190
<li><strong><span style="cursor: pointer; color: #007bff; text-decoration: underline;" onclick="setRoute('test')">Test:</span></strong> Answer questions about your own beliefs and see how you compare to the benchmark.</li>
204-
<li><strong><span style="cursor: pointer; color: #007bff; text-decoration: underline;" onclick="setRoute('visualization')">Visualization:</span></strong> Explore demographic patterns, policy correlations, and geographic distributions.</li>
191+
<li><strong><span style="cursor: pointer; color: #007bff; text-decoration: underline;" onclick="setRoute('data')">Visualization:</span></strong> Explore demographic patterns, policy correlations, and geographic distributions.</li>
205192
</ul>
206193
</div>
207194

@@ -334,7 +321,7 @@ <h1 id="explore-title">Explore: Interactive Demonstrations</h1>
334321
<div style="flex: 0 0 auto; color: #d1d5db; font-size: 24px; margin: 0 8px;"></div>
335322

336323
<!-- Step 4: Visualize -->
337-
<div style="display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 140px; cursor: pointer; opacity: 0.7; transition: opacity 0.3s;" onmouseover="this.style.opacity='1'" onmouseout="this.style.opacity='0.7';" onclick="setRoute('visualization')">
324+
<div style="display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 140px; cursor: pointer; opacity: 0.7; transition: opacity 0.3s;" onmouseover="this.style.opacity='1'" onmouseout="this.style.opacity='0.7';" onclick="setRoute('data')">
338325
<div style="width: 48px; height: 48px; background: #f3f4f6; border: 2px solid #d1d5db; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #6b7280; font-weight: 600; font-size: 18px;">
339326
4
340327
</div>

0 commit comments

Comments
 (0)