-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated icons to use react-icons (#7)
* Added Icon component with react-icons * Updated footer to use icon component * Merged Hero changes
- Loading branch information
1 parent
b26674a
commit 12e5a8b
Showing
8 changed files
with
52 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { | ||
FaInstagram, | ||
FaLinkedin, | ||
FaEnvelope, | ||
FaAngleDown, | ||
FaAngleUp, | ||
FaGithub, | ||
} from "react-icons/fa6"; | ||
import { createElement } from "react"; | ||
|
||
const iconMap = { | ||
envelope: FaEnvelope, | ||
instagram: FaInstagram, | ||
linkedin: FaLinkedin, | ||
github: FaGithub, | ||
caret_up: FaAngleUp, | ||
caret_down: FaAngleDown, | ||
}; | ||
|
||
export default function Icon(props) { | ||
if (!(props.name in iconMap)) { | ||
console.error("Could not find name " + props.name); | ||
return null; | ||
} | ||
return createElement(iconMap[props.name], props); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,46 @@ | ||
[ | ||
{ | ||
"id": "students", | ||
"heading": "For Students", | ||
"text": "Have questions about joining MDST? Curious about our projects? Or just want to keep up with our socials? Send us an email, check out our Instagram, and connect with us on LinkedIn!", | ||
"sources": [ | ||
{ | ||
"name": "Email", | ||
"icon_name": ["far", "envelope"], | ||
"icon_name": "envelope", | ||
"link": "mailto:[email protected]" | ||
}, | ||
{ | ||
"name": "Instagram", | ||
"icon_name": ["fab", "instagram"], | ||
"icon_name": "instagram", | ||
"link": "https://www.instagram.com/michigandatascienceteam/" | ||
}, | ||
{ | ||
"name": "LinkedIn", | ||
"icon_name": ["fab", "linkedin"], | ||
"icon_name": "linkedin", | ||
"link": "https://www.linkedin.com/school/michigan-data-science-team/" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "departments", | ||
"heading": "For University of Michigan Departments", | ||
"text": "MDST would be delighted to partner with your department to promote your data science efforts to our students. Please contact us if you are interested in hosting a talk or sponsoring our club.", | ||
"sources": [ | ||
{ | ||
"name": "Email", | ||
"icon_name": ["far", "envelope"], | ||
"icon_name": "envelope", | ||
"link": "mailto:[email protected]" | ||
} | ||
] | ||
}, | ||
{ | ||
"id": "industry", | ||
"heading": "For Industry Partners", | ||
"text": "Partner with MDST to find top data science talent and power your company's mission. We offer engagement and sponsorship opportunities to fit your needs. Please email us at [email protected] to learn more.", | ||
"sources": [ | ||
{ | ||
"name": "Email", | ||
"icon_name": ["far", "envelope"], | ||
"icon_name": "envelope", | ||
"link": "mailto:[email protected]" | ||
} | ||
] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.