diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..954c809 --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "imob-racing-website" + } +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b917edc --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/node_modules +/.firebase +/.firebaserc +/firebase-debug.log +/firebase-debug.*.log diff --git a/drivers.html b/drivers.html index b9acecf..de8e4b3 100644 --- a/drivers.html +++ b/drivers.html @@ -3,32 +3,15 @@ - - Drivers - iMOB Racing + Drivers - - - - +
+

Meet Our Drivers

+
-
-

Meet the Drivers

+
Anthony Yorba @@ -52,20 +35,5 @@

Daniel Bertholf

- - - - - - diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..93fb369 --- /dev/null +++ b/firebase.json @@ -0,0 +1,16 @@ +{ + "hosting": { + "public": "public", + "ignore": [ + "firebase.json", + "**/.*", + "**/node_modules/**" + ], + "rewrites": [ + { + "source": "**", + "destination": "/index.html" + } + ] + } +} diff --git a/index.html b/index.html index 51a945c..807505c 100644 --- a/index.html +++ b/index.html @@ -20,6 +20,8 @@ +
+
@@ -44,7 +46,7 @@

Welcome to iMOB Racing

-

Social Media & Polls

-
- -
- +

Social Media & Polls

+
+ -
+
+ +
+ +

AI Integration

@@ -150,10 +162,11 @@

AI Integration

-
-

Upcoming Events

-
-
+
+

Media Gallery

@@ -237,23 +252,19 @@

How can I participate in events?

- -
- - - + diff --git a/login.html b/login.html index 4dc534d..d64a56b 100644 --- a/login.html +++ b/login.html @@ -9,56 +9,80 @@

Login

- - - - - +
+ + + + + +
diff --git a/scripts.js b/scripts.js index 09f7ea3..d1496aa 100644 --- a/scripts.js +++ b/scripts.js @@ -56,7 +56,7 @@ document.addEventListener('DOMContentLoaded', () => { // Fetch YouTube videos function fetchYouTubeVideos() { - $.get(`https://www.googleapis.com/youtube/v3/search?key=${API_KEY}&channelId=${CHANNEL_ID}&part=snippet,id&order=date&maxResults=${MAX_RESULTS}`, function(data) { + return $.get(`https://www.googleapis.com/youtube/v3/search?key=${API_KEY}&channelId=${CHANNEL_ID}&part=snippet,id&order=date&maxResults=${MAX_RESULTS}`, function(data) { let videoItems = ''; data.items.forEach(item => { if (item.id.kind === "youtube#video") { @@ -69,6 +69,8 @@ document.addEventListener('DOMContentLoaded', () => { }); $('.media-carousel').html(videoItems); initializeCarousel(); + }).fail(function(error) { + console.error('Error fetching YouTube videos:', error); }); } @@ -141,16 +143,17 @@ document.addEventListener('DOMContentLoaded', () => { (d.head || d.body).appendChild(s); })(); + const GOOGLE_CALENDAR_ID = CONFIG.GOOGLE_CALENDAR_ID; + // Load Google Calendar - const googleCalendarSrc = `https://calendar.google.com/calendar/embed?src=${CONFIG.GOOGLE_CALENDAR_ID}&ctz=America%2FLos_Angeles`; + const googleCalendarSrc = `https://calendar.google.com/calendar/embed?src=${config.GOOGLE_CALENDAR_ID}&ctz=America%2FLos_Angeles`; document.getElementById('google-calendar').src = googleCalendarSrc; // Initialize AOS AOS.init(); // Initialize the media carousel - fetchYouTubeVideos(); - initializeCarousel(); + fetchYouTubeVideos().then(initializeCarousel); // Initialize Spotlight carousel initializeSpotlightCarousel(); diff --git a/styles.css b/styles.css index c8e6ecf..2632848 100644 --- a/styles.css +++ b/styles.css @@ -233,7 +233,7 @@ h1, h2, h3, h4, h5, h6 { .events-container { display: flex; - flex-wrap: nowrap; + flex-wrap: wrap; justify-content: space-between; gap: 2em; }