-
Notifications
You must be signed in to change notification settings - Fork 137
/
index.html
281 lines (248 loc) · 7.71 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HacktoberWall</title>
<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;500;700&family=Playfair+Display:wght@700&display=swap" rel="stylesheet">
<style>
:root {
--bg-primary: #F5F5F5;
--bg-secondary: #FFFFFF;
--text-primary: #333333;
--text-secondary: #666666;
--accent-color: #6C63FF;
--accent-hover: #4E48D8;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Inter', sans-serif;
background-color: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
font-size: 16px;
}
.container {
max-width: 1200px;
margin: auto;
padding: 0 30px;
}
header {
background-color: var(--bg-secondary);
padding: 20px 0;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 100;
transition: background-color 0.3s, box-shadow 0.3s;
}
header.scrolled {
background-color: rgba(255, 255, 255, 0.95);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-family: 'Playfair Display', serif;
font-size: 2.4rem;
font-weight: 700;
color: var(--accent-color);
text-decoration: none;
text-transform: uppercase;
letter-spacing: 2px;
}
.nav-links {
list-style: none;
display: flex;
gap: 30px;
}
.nav-links a {
color: var(--text-secondary);
font-weight: 500;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 1px;
transition: color 0.3s;
}
.nav-links a:hover {
color: var(--accent-color);
}
.main-content {
padding-top: 120px;
}
.section {
padding: 100px 0;
}
.section h2 {
font-size: 2.6rem;
font-weight: 700;
margin-bottom: 30px;
color: var(--text-primary);
font-family: 'Playfair Display', serif;
letter-spacing: 1px;
}
.section p {
font-size: 1.1rem;
color: var(--text-secondary);
margin-bottom: 20px;
}
.directory {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 40px;
}
.year-card {
background-color: var(--bg-secondary);
padding: 40px;
border-radius: 12px;
text-align: center;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
transition: transform 0.3s, box-shadow 0.4s;
}
.year-card:hover {
transform: translateY(-10px);
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.year-card a {
font-size: 2rem;
color: var(--accent-color);
font-weight: 700;
text-decoration: none;
text-transform: uppercase;
}
.coming-soon {
color: var(--text-secondary);
font-weight: 500;
font-size: 1.1rem;
text-transform: uppercase;
}
footer {
background-color: var(--bg-secondary);
padding: 20px 0;
text-align: center;
color: var(--text-secondary);
font-size: 1rem;
border-top: 1px solid #eee;
}
.contact-email {
color: var(--accent-color);
font-weight: 500;
text-decoration: none;
transition: color 0.3s;
}
.contact-email:hover {
color: var(--accent-hover);
}
</style>
</head>
<body>
<header id="header">
<div class="container">
<div class="header-content">
<a href="#" class="logo">HacktoberWall</a>
<ul class="nav-links">
<li><a href="#about">About</a></li>
<li><a href="#features">Features</a></li>
<li><a href="#contribute">Contribute</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div>
</div>
</header>
<div class="main-content">
<!-- About Section -->
<section class="section" id="about">
<div class="container">
<h2>About HacktoberWall</h2>
<p>HacktoberWall is a simple yet engaging web app designed to celebrate Hacktoberfest! It allows participants to contribute their names to a virtual mural by editing a JSON file, making it easy for everyone to join in and showcase their participation.</p>
</div>
</section>
<!-- Features Section -->
<section class="section" id="features">
<div class="container">
<h2>Features</h2>
<p><strong>Dynamic Mural:</strong> View all contributors on a visually appealing grid-style wall.</p>
<p><strong>Easy Contribution:</strong> Simply edit the contributors.json file to add your name.</p>
<p><strong>Responsive Design:</strong> Optimized for various screen sizes.</p>
<p><strong>Interactive Hover Effects:</strong> Each participant card scales slightly on hover.</p>
</div>
</section>
<!-- Contribute Section -->
<section class="section" id="contribute">
<div class="container">
<h2>How to Contribute</h2>
<p>We would love for you to join us! Follow these steps to contribute:</p>
<ol>
<li><strong>Fork the Repository:</strong> Make a copy of the repository in your GitHub account.</li>
<li><strong>Create a Branch:</strong> Set up a new branch for your contribution.</li>
<li><strong>Make Changes:</strong> Modify the code as needed or add your name to the contributors.json file.</li>
<li><strong>Minify Files:</strong> Minify your CSS and JS files before submitting.</li>
<li><strong>Commit Changes:</strong> Use descriptive commit messages following Conventional Commits standards.</li>
<li><strong>Submit a Pull Request:</strong> Describe your changes and submit your PR.</li>
</ol>
</div>
</section>
<!-- Directory Section with Year Cards -->
<section class="section" id="directory-section">
<div class="container">
<h2>Hacktoberfest Contributions by Year</h2>
<div class="directory" id="directory">
<!-- JavaScript will populate this area with year cards -->
</div>
</div>
</section>
<!-- Contact Section -->
<section class="section" id="contact">
<div class="container">
<h2>Contact Us</h2>
<p>If you have questions or would like to contribute, please reach out:</p>
<a href="mailto:[email protected]" class="contact-email">[email protected]</a>
</div>
</section>
</div>
<footer>
<div class="container">
© 2024 HacktoberWall. All rights reserved.
</div>
</footer>
<script>
// Data for Directory Section
const years = [
{ year: 2024, url: "2024/src/index.html" },
{ year: 2025, url: null }
];
// Populate Directory
const directory = document.getElementById("directory");
years.forEach(item => {
const card = document.createElement("div");
card.classList.add("year-card");
if (item.url) {
card.innerHTML = `<a href="${item.url}">${item.year}</a>`;
} else {
card.innerHTML = `<p class="coming-soon">${item.year} - Coming Soon</p>`;
}
directory.appendChild(card);
});
// Sticky Header on Scroll
const header = document.getElementById("header");
window.addEventListener("scroll", () => {
if (window.scrollY > 50) {
header.classList.add("scrolled");
} else {
header.classList.remove("scrolled");
}
});
</script>
</body>
</html>