Build and deploy and greeting card maker
From image:
Designer/Color Palettes
Take a look at the demo pages for how-to's, ideas, inspiration. Feel free to copy, but use as you build. Do not copy and change values!
Build your page in the following files:
File | Purpose |
---|---|
index.html |
Main page with html and semantic elements |
global.css |
css for your page |
app.js |
JavaScript to dynamically change presentation |
As you are working and complete small steps, stop and make a commit using the build-in VSCode sidebar tool:
- "Stage" the files you want to commit
- Enter a commit message and hit
CMD + ENTER
orCTRL + ENTER
(mac or windows)
To "push" to GitHub, either hit "Sync" after committing, or hit the recycle wheel button in the lower left corner.
Your job is to create a greeting card build. You should have:
- At least one input
- At least one select
- Set a theme using a class
- Update an image, either using a theme or an
<img>
tag
Remember to work in small chunks!
One approach to break down the problem:
Make one example of your greeting card. This will help you to figure out what the needed elements and styling are.
- Choose one aspect of your greeting card
- Create a form control for setting that aspect
- Make sure both the source form control and the target elements have ids
- In
app.js
, get each element by id - Add the right event listener for that type of form control
- Inside the event listener, write the code to copy the value from the source form control to the target element
Look at the demo for how to download the greeting card as an image:
- Add the
<script>
tag for domtoimage - Add a click event listener to the export button
- Look at the code in the demo project, but pass in the element that has your greeting card.