forked from Rohit-554/FirstLeaf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
195 lines (186 loc) · 6.7 KB
/
index.html
File metadata and controls
195 lines (186 loc) · 6.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>FirstLeaf — First Pull Request Playground</title>
<meta
name="description"
content="A friendly repo for your first pull request. Add your name and GitHub link and see it live on the page!"
/>
<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@400;600;800&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="./assets/styles.css" />
<link
rel="icon"
href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='0.9em' font-size='90'>🩵</text></svg>"
/>
</head>
<body>
<div id="scrollProgress"></div>
<header class="site-header">
<div class="container header-wrapper">
<div class="branding">
<h1 class="logo">FirstLeaf</h1>
<p class="tagline">
Make your first pull request — add your name, get featured here.
</p>
</div>
<nav class="actions">
<a class="btn" id="repoLink" target="_blank" rel="noopener"
>View Repo</a
>
<a class="btn" href="stats.html">📊 Stats</a>
<a class="btn primary" id="howToContribute" href="#contribute"
>How to contribute</a
>
<div class="theme-selector-wrapper">
<label for="colorThemeSelect" class="sr-only"
>Select Color Theme</label
>
<select
id="colorThemeSelect"
class="btn theme-select"
aria-label="Select color theme"
>
<option value="dark">🌙 Dark</option>
<option value="light">☀️ Light</option>
<option value="ocean">🌊 Ocean Blue</option>
<option value="forest">🌲 Forest Green</option>
<option value="sunset">🌅 Sunset Orange</option>
<option value="galaxy">🌌 Purple Galaxy</option>
</select>
</div>
<button
id="themeToggle"
class="btn theme-toggle"
aria-label="Toggle theme"
style="display: none"
>
<span id="themeIcon">☀️</span>
</button>
</nav>
</div>
</header>
<main class="container">
<section
aria-labelledby="contributors-title"
class="contributors-section"
>
<div class="section-header">
<div class="title-group">
<h2 id="contributors-title">Contributors</h2>
<span
id="count"
class="count"
aria-live="polite"
aria-atomic="true"
></span>
</div>
<div class="controls-group">
<div class="search-container">
<input
type="text"
id="searchInput"
placeholder="Search contributors..."
aria-label="Search contributors"
/>
</div>
<div class="sort-container">
<label for="sortSelect">Sort by:</label>
<select id="sortSelect" aria-label="Sort contributors">
<option value="newest">Newest First</option>
<option value="oldest">Oldest First</option>
<option value="name-asc">Name (A-Z)</option>
<option value="name-desc">Name (Z-A)</option>
</select>
</div>
</div>
<div class="badge-filters-container">
<div class="filter-group">
<label>Filter by badge:</label>
<div class="badge-filters" id="badgeFilters">
<button class="badge-filter active" data-badge="all">
All
</button>
<button class="badge-filter" data-badge="first">
🥇 First
</button>
<button class="badge-filter" data-badge="core">
⭐ Core Team
</button>
<button class="badge-filter" data-badge="top">
🏆 Top Contributor
</button>
<button class="badge-filter" data-badge="helper">
🤝 Helper
</button>
<button class="badge-filter" data-badge="early">
🌱 Early Adopter
</button>
<button class="badge-filter" data-badge="milestone">
🎯 Milestone
</button>
</div>
</div>
<div class="filter-count" id="filterCount"></div>
</div>
</div>
<section id="spotlight-section">
<div id="spotlight" class="spotlight-card"></div>
</section>
<div id="contributors" class="cards" role="list"></div>
<div id="loading" class="loading">Loading contributors…</div>
<div id="error" class="error" hidden>
Could not load contributors. Please refresh and try again.
</div>
</section>
<section aria-labelledby="contribute" class="howto" id="contribute">
<div class="howto-header">
<h2 id="contribute">How to Contribute</h2>
<p class="subtitle">Follow these simple steps to get featured!</p>
</div>
<ol class="howto-list">
<li>Fork the repository to your own GitHub account.</li>
<li>Create a new branch (e.g., <code>add/your-name</code>).</li>
<li>
Edit <code>data/contributors.ndjson</code> and add a new line.
</li>
<li>Commit your change and open a Pull Request.</li>
<li>Once merged, your profile will appear here automatically.</li>
</ol>
<p class="howto-note">Full instructions are available in the README.</p>
</section>
</main>
<footer class="site-footer">
<div class="container">
<p>Built with 💙 for first‑time contributors by Jadu</p>
</div>
</footer>
<script src="./assets/app.js" type="module"></script>
<button
id="scrollToTop"
class="scroll-to-top"
aria-label="Scroll to top"
title="Back to top"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="18 15 12 9 6 15"></polyline>
</svg>
</button>
</body>
</html>