Created
December 26, 2021 07:50
-
-
Save codewithbernard/99a718eca06f6382bddfbdc11b8d135e to your computer and use it in GitHub Desktop.
This file contains hidden or 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 "./Background.module.css"; | |
| import background from "../../assets/img/background.png"; | |
| const Background = () => { | |
| return ( | |
| <article | |
| className={styles.article} | |
| style={{ backgroundImage: `url(${background})` }} | |
| > | |
| <h1 className={styles.header}>React Is Awesome</h1> | |
| </article> | |
| ); | |
| }; | |
| export default Background; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment