Last active
November 4, 2022 02:35
-
-
Save loriculberson/96d2c32f28c369ad2bb43b4c90676aaf to your computer and use it in GitHub Desktop.
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
nav a { | |
padding-right: 8px; | |
text-decoration: none; | |
} | |
li { | |
margin: 8px; | |
} |
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
export default function News(){ | |
return <h1>News</h1> | |
} |
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
const wikiCommons = 'https://upload.wikimedia.org/wikipedia/commons/' | |
const footballSrc = wikiCommons + '1/1b/American_football_icon_simple.svg' | |
const basketballSrc = wikiCommons + '7/7a/Basketball.png' | |
const baseballSrc = wikiCommons + '9/92/Baseball.svg' | |
const soccerSrc = wikiCommons + '6/6e/Football_%28soccer_ball%29.svg' | |
const sportsData = [ | |
{ id: 1, title: 'Football', imageSrc: footballSrc }, | |
{ id: 2, title: 'Basketball', imageSrc: basketballSrc }, | |
{ id: 3, title: 'Baseball', imageSrc: baseballSrc }, | |
{ id: 4, title: 'Soccer', imageSrc: soccerSrc } | |
] | |
export default sportsData; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment