Skip to content

Commit 4686f79

Browse files
Merge pull request #39 from OpenRockets/copilot/update-open-rockets-website
Fix website issues: logo visibility, magazine link, typography, and JS bugs
2 parents 9160c43 + bbee951 commit 4686f79

4 files changed

Lines changed: 25 additions & 14 deletions

File tree

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ <h4 style="margin-top: 1.5rem; margin-bottom: 0.5rem;">What You'll Find:</h4>
113113
</ul>
114114

115115
<div style="margin-top: 1.5rem;">
116-
<a href="https://openrocketsmag.com" target="_blank" class="btn-professional">Visit Magazine</a>
116+
<a href="https://mag.openrockets.com" target="_blank" class="btn-professional">Visit Magazine</a>
117117
</div>
118118
</div>
119119
</div>
@@ -235,7 +235,7 @@ <h4>Community</h4>
235235
<ul>
236236
<li><a href="https://github.com/OpenRockets">GitHub</a></li>
237237
<li><a href="https://bit.ly/openrockets-discord">Discord</a></li>
238-
<li><a href="https://openrocketsmag.com">Magazine</a></li>
238+
<li><a href="https://mag.openrockets.com">Magazine</a></li>
239239
<li><a href="join.html">Join Us</a></li>
240240
</ul>
241241
</div>

scripts/calendar.js

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,22 @@ document.addEventListener('DOMContentLoaded', function() {
2424
const closeEventModal = document.getElementById('closeEventModal');
2525
const eventForm = document.getElementById('eventForm');
2626

27-
// Sample events data
27+
// Sample events data - using relative dates from the current date
28+
const baseDate = new Date();
29+
const getDateOffset = (daysOffset) => {
30+
const date = new Date(baseDate);
31+
date.setDate(baseDate.getDate() + daysOffset);
32+
return date;
33+
};
34+
2835
const sampleEvents = [
2936
{
3037
id: 1,
3138
title: 'Advanced React Patterns',
3239
type: 'lecture',
3340
instructor: 'Sarah Chen',
3441
time: '10:00 AM - 11:30 AM',
35-
date: new Date(2024, 11, 23),
42+
date: getDateOffset(0),
3643
description: 'Deep dive into advanced React patterns including HOCs, render props, and custom hooks.',
3744
attendees: 45,
3845
maxAttendees: 50,
@@ -44,7 +51,7 @@ document.addEventListener('DOMContentLoaded', function() {
4451
type: 'workshop',
4552
instructor: 'Mike Johnson',
4653
time: '2:00 PM - 4:00 PM',
47-
date: new Date(2024, 11, 23),
54+
date: getDateOffset(0),
4855
description: 'Hands-on workshop covering lists, dictionaries, sets, and tuples in Python.',
4956
attendees: 32,
5057
maxAttendees: 40,
@@ -56,7 +63,7 @@ document.addEventListener('DOMContentLoaded', function() {
5663
type: 'lecture',
5764
instructor: 'Alex Rodriguez',
5865
time: '11:00 AM - 12:30 PM',
59-
date: new Date(2024, 11, 24),
66+
date: getDateOffset(1),
6067
description: 'Optimization techniques for Node.js applications including clustering and caching.',
6168
attendees: 28,
6269
maxAttendees: 35,
@@ -68,7 +75,7 @@ document.addEventListener('DOMContentLoaded', function() {
6875
type: 'workshop',
6976
instructor: 'Emma Davis',
7077
time: '1:00 PM - 3:30 PM',
71-
date: new Date(2024, 11, 25),
78+
date: getDateOffset(2),
7279
description: 'Complete guide to CSS Grid layout with practical examples and exercises.',
7380
attendees: 38,
7481
maxAttendees: 45,
@@ -80,7 +87,7 @@ document.addEventListener('DOMContentLoaded', function() {
8087
type: 'lecture',
8188
instructor: 'Dr. James Wilson',
8289
time: '9:00 AM - 10:30 AM',
83-
date: new Date(2024, 11, 26),
90+
date: getDateOffset(3),
8491
description: 'Fundamental principles of database design, normalization, and optimization.',
8592
attendees: 52,
8693
maxAttendees: 60,

scripts/community.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ class CommunityManager {
7474
this.socket.on('stop-typing', (data) => {
7575
this.hideTypingIndicator(data);
7676
});
77-
}
78-
}
7977

8078
// Real-time message handlers
8179
this.socket.on('new-message', (message) => {

styles/professional.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* OpenRockets - Professional Linux Foundation-Inspired Design */
22
/* Professional, clean, and enterprise-focused design system */
33

4-
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');
4+
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
55

66
:root {
77
/* Professional Color Palette - Inspired by Linux Foundation */
@@ -17,9 +17,10 @@
1717
--text-secondary: #666666;
1818
--border-color: #d0d0d0;
1919

20-
/* Typography - Professional IBM Plex family */
21-
--font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
22-
--font-mono: 'IBM Plex Mono', 'Courier New', monospace;
20+
/* Typography - Modern distinctive fonts */
21+
--font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
22+
--font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
23+
--font-mono: 'JetBrains Mono', 'Courier New', monospace;
2324

2425
/* Spacing - Consistent and professional */
2526
--space-xs: 0.5rem;
@@ -127,6 +128,7 @@ a:hover {
127128
.nav-logo img {
128129
height: 40px;
129130
width: auto;
131+
filter: invert(1) brightness(0.3);
130132
}
131133

132134
.nav-links {
@@ -306,6 +308,10 @@ a:hover {
306308
width: 100%;
307309
border-radius: var(--border-radius);
308310
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
311+
/* Invert white logo to dark for visibility on light background */
312+
filter: invert(1) brightness(0.3);
313+
background: var(--neutral-white);
314+
padding: 1rem;
309315
}
310316

311317
/* Stats Section */

0 commit comments

Comments
 (0)