diff --git a/docs/finding-a-mentor/mentor-list.mdx b/docs/finding-a-mentor/mentor-list.mdx index 47d9c7a7..d11f1975 100644 --- a/docs/finding-a-mentor/mentor-list.mdx +++ b/docs/finding-a-mentor/mentor-list.mdx @@ -2,7 +2,7 @@ description: A list of willing mentors. id: mentor-list sidebar_position: 2 -title: Mentor List +title: Mentor List ---
diff --git a/src/components/MentorList/index.jsx b/src/components/MentorList/index.jsx index 637ab752..ada6e07c 100644 --- a/src/components/MentorList/index.jsx +++ b/src/components/MentorList/index.jsx @@ -1,15 +1,17 @@ import React from 'react'; -import mentorsData from '@site/src/data/mentors.json'; // Fixed path for JSON data -import styles from "./styles.module.css"; // Fixed path for CSS file +import mentorsData from '@site/src/data/mentors.json'; +import styles from "./styles.module.css"; + +const MentorCard = ({ mentor, isDarkMode }) => { + const cardStyle = isDarkMode ? styles.darkMode : styles.lightMode; -const MentorCard = ({ mentor }) => { return ( -📍 {mentor.location}
💼 {mentor.expertise.join(', ')}
{/* Join the array of expertise into a string */} +💼 {mentor.expertise.join(', ')}
🕒 {mentor.availability}
💬 {mentor.contact}
{mentor.bio}
@@ -19,13 +21,16 @@ const MentorCard = ({ mentor }) => { }; const MentorList = () => { + // Assuming you have a way to determine the current theme mode (dark/light) + const isDarkMode = true; // You need to replace this with your actual logic to determine the theme mode + return (