-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchangelog.php
More file actions
652 lines (578 loc) · 22.3 KB
/
changelog.php
File metadata and controls
652 lines (578 loc) · 22.3 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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
<?php
session_start();
require_once 'config.php';
error_reporting(E_ALL);
ini_set('display_errors', 1);
// Check if user is logged in as admin
$isAdmin = isset($_SESSION['loggedin']) && $_SESSION['loggedin'] === true;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Code to Adventure Changelog - Latest updates and improvements">
<title>Changelog - Code to Adventure</title>
<!-- Always dark mode -->
<script>
document.documentElement.setAttribute('data-theme', 'dark');
</script>
<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;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<!-- Analytics -->
<script src="https://tinylytics.app/embed/wWu5hJWSQ_r9BAxgohx8.js" defer></script>
<style>
:root {
--primary: #2563eb;
--primary-dark: #1d4ed8;
--secondary: #10b981;
--accent: #f59e0b;
--background: #ffffff;
--surface: #f8fafc;
--surface-hover: #f1f5f9;
--text: #0f172a;
--text-muted: #64748b;
--border: #e2e8f0;
--shadow: rgba(0, 0, 0, 0.1);
--radius: 16px;
--radius-sm: 8px;
}
[data-theme="dark"] {
--primary: #3b82f6;
--primary-dark: #2563eb;
--secondary: #34d399;
--accent: #fbbf24;
--background: #0f172a;
--surface: #1e293b;
--surface-hover: #334155;
--text: #f8fafc;
--text-muted: #94a3b8;
--border: #334155;
--shadow: rgba(0, 0, 0, 0.3);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background: var(--background);
color: var(--text);
line-height: 1.6;
transition: all 0.3s ease;
min-height: 100vh;
}
/* Header */
.header {
background: var(--surface);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 100;
backdrop-filter: blur(10px);
}
.header-content {
max-width: 1200px;
margin: 0 auto;
padding: 1rem 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
}
.logo {
display: flex;
align-items: center;
gap: 0.75rem;
text-decoration: none;
color: var(--text);
}
.logo-icon {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}
.logo-icon img {
width: 100%;
height: 100%;
object-fit: contain;
}
.logo-text {
font-size: 1.25rem;
font-weight: 700;
background: linear-gradient(135deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.nav {
display: flex;
gap: 0.5rem;
align-items: center;
}
.nav-link {
padding: 0.5rem 1rem;
color: var(--text-muted);
text-decoration: none;
border-radius: var(--radius-sm);
transition: all 0.2s ease;
font-weight: 500;
font-size: 0.95rem;
}
.nav-link:hover {
background: var(--surface-hover);
color: var(--primary);
}
.nav-link.active {
background: var(--primary);
color: white;
}
.nav-link.admin-link {
background: var(--accent);
color: var(--background);
font-weight: 600;
}
.nav-link.admin-link:hover {
background: var(--accent);
color: var(--background);
}
.theme-toggle {
background: var(--surface-hover);
border: none;
width: 40px;
height: 40px;
border-radius: var(--radius-sm);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
color: var(--text);
margin-left: 0.5rem;
}
.theme-toggle:hover {
background: var(--border);
}
/* Hero */
.hero {
padding: 3rem 1.5rem;
text-align: center;
background: linear-gradient(135deg, var(--surface), transparent);
}
.hero h1 {
font-size: 2.5rem;
font-weight: 800;
margin-bottom: 1rem;
background: linear-gradient(135deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero p {
font-size: 1.125rem;
color: var(--text-muted);
max-width: 600px;
margin: 0 auto;
}
/* Container */
.container {
max-width: 900px;
margin: 0 auto;
padding: 2rem 1.5rem 4rem;
}
/* Version Card */
.version-card {
background: var(--surface);
border-radius: var(--radius);
padding: 1.75rem;
margin-bottom: 1.5rem;
border: 1px solid var(--border);
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}
.version-card:hover {
transform: translateX(4px);
box-shadow: -4px 0 20px -5px var(--shadow);
}
.version-card.latest {
border-color: var(--primary);
background: linear-gradient(135deg, var(--surface), transparent);
}
.version-card.latest::before {
content: 'LATEST';
position: absolute;
top: 1rem;
right: 1rem;
background: var(--primary);
color: white;
padding: 0.25rem 0.75rem;
border-radius: 100px;
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.05em;
}
.version-header {
display: flex;
align-items: baseline;
gap: 1rem;
margin-bottom: 1rem;
}
.version-number {
font-size: 1.25rem;
font-weight: 700;
color: var(--primary);
font-family: 'JetBrains Mono', monospace;
}
.version-date {
color: var(--text-muted);
font-size: 0.9rem;
}
.version-changes {
list-style: none;
padding: 0;
}
.version-changes li {
position: relative;
padding-left: 1.75rem;
margin-bottom: 0.5rem;
color: var(--text-muted);
}
.version-changes li::before {
content: '→';
position: absolute;
left: 0;
color: var(--secondary);
font-weight: 600;
}
.version-changes code {
background: var(--surface-hover);
padding: 0.125rem 0.375rem;
border-radius: 4px;
font-family: 'JetBrains Mono', monospace;
font-size: 0.875rem;
}
/* Section Divider */
.section-divider {
display: flex;
align-items: center;
margin: 3rem 0 2rem;
color: var(--text-muted);
font-size: 0.875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.1em;
}
.section-divider::before,
.section-divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--border);
}
.section-divider span {
padding: 0 1rem;
}
/* Footer */
.footer {
background: var(--surface);
border-top: 1px solid var(--border);
padding: 2rem 1.5rem;
text-align: center;
margin-top: 4rem;
}
.footer-links {
display: flex;
justify-content: center;
gap: 2rem;
margin-bottom: 1rem;
}
.footer-link {
color: var(--text-muted);
text-decoration: none;
font-size: 0.875rem;
transition: color 0.2s ease;
}
.footer-link:hover {
color: var(--primary);
}
/* Mobile Menu Button - Hidden by default */
.mobile-menu-btn {
display: none;
background: var(--surface-hover);
border: none;
width: 40px;
height: 40px;
border-radius: var(--radius-sm);
cursor: pointer;
align-items: center;
justify-content: center;
color: var(--text);
}
/* Mobile */
@media (max-width: 768px) {
.hero h1 {
font-size: 2rem;
}
.version-header {
flex-direction: column;
gap: 0.25rem;
}
/* Hide desktop nav on mobile */
.nav {
display: none !important;
}
/* Show mobile menu button */
.mobile-menu-btn {
display: flex !important;
}
/* Mobile menu when open */
.nav.mobile-open {
display: flex !important;
position: absolute;
top: 100%;
left: 0;
right: 0;
background: var(--surface);
flex-direction: column;
padding: 1rem;
border-bottom: 1px solid var(--border);
box-shadow: 0 4px 6px -1px var(--shadow);
z-index: 999;
}
.nav.mobile-open .nav-link {
width: 100%;
text-align: left;
padding: 0.75rem 1rem;
}
.nav.mobile-open .theme-toggle {
width: 100%;
justify-content: center;
margin-top: 0.5rem;
}
}
</style>
</head>
<body>
<!-- Header -->
<?php $currentPage = 'changelog'; include 'includes/header.php'; ?>
<!-- Hero -->
<section class="hero">
<h1>Changelog</h1>
<p>Track all updates, improvements, and new features</p>
</section>
<!-- Main Content -->
<main class="container">
<!-- Latest Version -->
<div class="version-card latest">
<div class="version-header">
<span class="version-number">v2026.06</span>
<span class="version-date">February 1, 2026</span>
</div>
<ul class="version-changes">
<li>Created shared header component for consistent navigation across all pages</li>
<li>Switched to permanent dark mode theme for better visual consistency</li>
<li>Removed theme toggle (site is now always in dark mode)</li>
<li>Updated header styling with 40px logo and gradient text</li>
<li>Optimized logo images from 1.4MB to 60KB each (96% file size reduction)</li>
<li>Consolidated CSS into unified external stylesheets with dark mode support</li>
<li>Extracted inline CSS from index.php (712 → 220 lines)</li>
<li>Extracted inline CSS from submit.php (677 → 240 lines)</li>
<li>Created reusable component library (buttons, cards, forms, alerts, navigation)</li>
<li>Updated color palette to modern blue/teal design system</li>
<li>Added accessibility improvements (focus states, skip link styles)</li>
<li>Removed legacy backup files to clean up repository</li>
</ul>
</div>
<!-- Previous Versions -->
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.46.1</span>
<span class="version-date">November 12, 2025</span>
</div>
<ul class="version-changes">
<li>Added display tracking to monitor how many times each code is shown on the homepage</li>
<li>Added "Most Displayed Codes" section to admin dashboard showing display counts and click rates</li>
<li>Updated admin dashboard "All Submissions" table with Displays column</li>
<li>Modernized admin panel design to match main site aesthetics</li>
<li>Added dark/light mode support to admin login and edit pages</li>
<li>Implemented sortable tables with instant client-side sorting for small tables and server-side sorting for All Submissions</li>
<li>Added auto-scroll to All Submissions table after sorting, pagination, or search actions</li>
<li>Improved mobile responsiveness with card-based table layout eliminating horizontal scrolling</li>
<li>Added mobile hamburger menu for better navigation on small screens</li>
<li>Added admin session integration across all public pages with conditional Admin navigation link</li>
</ul>
</div>
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.46</span>
<span class="version-date">November 12, 2025</span>
</div>
<ul class="version-changes">
<li>Updated rewards information to reflect new Rivian referral program structure</li>
</ul>
</div>
<!-- Previous Versions -->
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.35.0</span>
<span class="version-date">August 27, 2025</span>
</div>
<ul class="version-changes">
<li>Complete redesign of the entire site with modern, clean aesthetics</li>
<li>Improved visual hierarchy and card-based layout</li>
<li>Enhanced dark/light mode with smoother transitions</li>
<li>Added custom logo images that adapt to theme (logo.png and logo-dark.png)</li>
<li>Integrated Tinylytics analytics for visitor tracking</li>
<li>Redesigned API documentation with better code examples</li>
<li>Redesigned Submit Code page with AJAX form submission</li>
<li>Added real-time feedback for code submissions without page reload</li>
<li>Updated changelog with improved version display</li>
<li>Fixed mobile navigation menu functionality with improved CSS specificity</li>
<li>Removed external Rivian links from footer for cleaner design</li>
<li>Added gradient accents and modern typography</li>
<li>Improved mobile responsiveness across all pages</li>
<li>Added smooth animations and micro-interactions</li>
<li>Optimized performance and reduced CSS footprint</li>
</ul>
</div>
<!-- Previous Versions -->
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.9.1</span>
<span class="version-date">August 11, 2025</span>
</div>
<ul class="version-changes">
<li>Removed admin notification of successful code submission</li>
<li>Minor fixes and optimizations</li>
</ul>
</div>
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.9</span>
<span class="version-date">March 30, 2025</span>
</div>
<ul class="version-changes">
<li>Fixed issue with duplicate toast notifications appearing during code submission</li>
<li>Improved error handling for the code submission process</li>
<li>Enhanced form validation with better user feedback</li>
<li>Added better debugging capabilities for administrators</li>
</ul>
</div>
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.8</span>
<span class="version-date">March 26, 2025</span>
</div>
<ul class="version-changes">
<li>Due to changes in the Rivian Referral program, sharing of codes is no longer allowed</li>
<li>Updated the site to reflect the changes in the program</li>
</ul>
</div>
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.7.3</span>
<span class="version-date">March 11, 2025</span>
</div>
<ul class="version-changes">
<li>Updated <code>Rewards</code> section to reflect changes to the program</li>
</ul>
</div>
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.7.2</span>
<span class="version-date">February 19, 2025</span>
</div>
<ul class="version-changes">
<li>Introduced the new site logo, and implemented it in the header (both light and dark mode)</li>
</ul>
</div>
<div class="section-divider">
<span>Earlier Versions</span>
</div>
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.7.1</span>
<span class="version-date">February 6, 2025</span>
</div>
<ul class="version-changes">
<li>Fixed modal appearance on API Docs and Changelog pages</li>
<li>Fixed a bug where you were not able to click/tap out of the Submit Code modal</li>
<li>Centered toast notifications for better visibility</li>
</ul>
</div>
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.7</span>
<span class="version-date">February 5, 2025</span>
</div>
<ul class="version-changes">
<li>Updated design language of the entire site to make it look more clean</li>
<li>Added light/dark mode with toggle and auto-detect state</li>
<li>Improved mobile formatting for navigation, header, and footer</li>
<li>Completely overhauled <code>api-docs.php</code> and <code>changelog.php</code> for clarity, styling, and accuracy</li>
<li>Optimized JavaScript and CSS for better load times</li>
</ul>
</div>
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.6</span>
<span class="version-date">February 4, 2025</span>
</div>
<ul class="version-changes">
<li>Updated API to v2 (see API Documentation for more info)</li>
</ul>
</div>
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.5.1</span>
<span class="version-date">February 1, 2025</span>
</div>
<ul class="version-changes">
<li>Fixed code to schedule X posts for every 4 hours to work around X API limits</li>
<li>Added a new favicon to the header</li>
</ul>
</div>
<div class="version-card">
<div class="version-header">
<span class="version-number">v2025.5</span>
<span class="version-date">January 31, 2025</span>
</div>
<ul class="version-changes">
<li>Each newly submitted code is now posted to @CodeToAdventure on X</li>
</ul>
</div>
</main>
<!-- Footer -->
<footer class="footer">
<div class="footer-links">
<a href="index.php" class="footer-link">Home</a>
<a href="api-docs.php" class="footer-link">API Documentation</a>
<a href="https://zak.codetoadventure.com" target="_blank" class="footer-link">Zak's Referral Code</a>
</div>
<div class="footer-copy">
© 2024-2025 Code to Adventure. Not affiliated with Rivian.
</div>
</footer>
<script>
// Mobile Menu Toggle
function toggleMobileMenu() {
document.getElementById('nav').classList.toggle('mobile-open');
}
// Close mobile menu when clicking outside
document.addEventListener('click', function(e) {
var nav = document.getElementById('nav');
var menuBtn = document.querySelector('.mobile-menu-btn');
if (nav.classList.contains('mobile-open') &&
!nav.contains(e.target) &&
!menuBtn.contains(e.target)) {
nav.classList.remove('mobile-open');
}
});
</script>
</body>
</html>