Created
December 26, 2021 07:55
-
-
Save codewithbernard/ceb88a002861ddeff8cbd5fd54ac0a0f 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
import styles from "./Picture.module.css"; | |
import background from "../../assets/img/background.png"; | |
const Picture = () => { | |
return ( | |
<article className={styles.article}> | |
<picture className={styles.picture}> | |
<source media="(min-width: 0px)" srcSet={background} /> | |
<img src={background} alt="background" /> | |
</picture> | |
<h1 className={styles.header}>React Is Awesome</h1> | |
</article> | |
); | |
}; | |
export default Picture; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment