diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000..b58b603
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,5 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/gdg-website.iml b/.idea/gdg-website.iml
new file mode 100644
index 0000000..24643cc
--- /dev/null
+++ b/.idea/gdg-website.iml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..30927ef
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..35eb1dd
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/app/(pages)/careers/page.jsx b/src/app/(pages)/careers/page.jsx
index 1ae98c5..d7baa79 100644
--- a/src/app/(pages)/careers/page.jsx
+++ b/src/app/(pages)/careers/page.jsx
@@ -174,3 +174,61 @@ const CareerPage = () => {
};
export default CareerPage;
+
+
+import React, { useEffect, useState } from 'react';
+
+const Spotlight = () => {
+ const [spotlightJobs, setSpotlightJobs] = useState([]);
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState(null);
+
+ useEffect(() => {
+ const fetchJobs = async () => {
+ try {
+ const response = await fetch('/api/jobs');
+ if (!response.ok) throw new Error('Network response was not ok');
+ const data = await response.json();
+ setSpotlightJobs(data);
+ } catch (error) {
+ setError(error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ fetchJobs();
+ }, []);
+
+ if (loading) return
Loading...
;
+ if (error) return Error loading jobs: {error.message}
;
+
+ return (
+
+
Spotlight
+
+ {spotlightJobs.map((job, index) => (
+
+
+
+
{job.title}
+
{job.description}
+ {job.location && (
+
+ laptop_mac
+ {job.location}
+
+ )}
+ {job.office && (
+
+ location_on
+ {job.office}
+
+ )}
+
+
+ ))}
+
+
+ );
+};