Create the ultimate ghibli fan page!
Use XML Http Requests, Keyboard Events, and more to recreate the Pokemon wild!
To complete this project, students should have the following:
- Intermediate understanding of HTML structures (divs, attributes, images...etc.).
- Intermediate understanding of JavaScript and DOM (for loops, variables, event listeners...etc.)
XML | Description |
---|---|
XML | e X tensible M arkup L anguage |
XMLHttpRequest | An object that can be used to request data from a web server. Resource: https://www.w3schools.com/xml/xml_http.asp |
To complete Part I, fulfill the following requirements:
- Set up your project file structure through the command line.
- Create the following:
- HTML file
- CSS file
- JS file
- Link all of your files correctly.
To complete Part II, fulfill the following requirements:
- Create a
div
with anid
of "container".
To complete Part III, fulfill the following requirements:
- Target the
body
element.
- Set its
margin
to 0px.
- Target the
id
of "container".
- Activate flexbox.
- Allow the wrapping of elements using flexbox.
- Create even space around the elements using flexbox.
- Target the
class
of "film".
- Set the
width
to 300px. - Set the
height
to auto. - Activate flexbox.
- Center the items horizontally and vertically using flexbox.
- Set the direction of items to a column using flexbox.
- Add some padding and margins to make the spacing more appealing.
To complete Part III, fulfill the following requirements:
- Create a new
XMLHttpRequest()
and open a GET request to "https://ghibliapi.herokuapp.com/films/". - When the request is successfully processed, create and append elements to showcase the title, producer, rotten tomato score (rt_score), and description of each movie. Set a new class on each element so that it has a class of "film".
- Add background images to the divs for each movie!
Create hover effects, rank the movies by score, and create a section where you write out your own review of the movie.