In this project, let's build a Meme Generator by applying the concepts we have learned till now.
Click to view the Design Files
Click to view
- Download dependencies by running
npm install
- Start up the app using
npm start
Functionality to be added
The app must have the following functionalities
- Initially, values in the inputs elements should be empty and the selected value in the select element should be the first item in the given fontSizesOptionsList
- When non-empty values are provided for Image Url, Top Text, Bottom Text, and Font Size and the Generate button is clicked, - The Image URL that has been given in the Image URL input should be applied as a background-image for the generated meme. - The given Top and Bottom text values in the respective input elements should be the top and bottom text for the generated meme. - The selected value in the select element should be the applied font size for both top and bottom text for the generated meme.
Click to view the Implementation Files
Use these files to complete the implementation:
src/App.js
src/components/MemeGenerator/index.js
src/components/MemeGenerator/styledComponents.js
Click to view
- The following HTML attributes are required for the HTML for the tests to pass.
- The generated meme container should have data-testid as "meme".
- In previous CPs you have used testid. From now when the styled Components are used data-testid should be used instead of testid.
Colors
- Open Sans
- All components you implement should go in the
src/components
directory.- Don't change the component folder names as those are the files being imported into the tests.
- Do not remove the pre-filled code
- Want to quickly review some of the concepts you’ve been learning? Take a look at the Cheat Sheets.