Skip to content

locb65/UI-Patterns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UI-Patterns

This is a project on a UI element called Modals.

The theme for this project was Studio Ghibli Movies.

For this project I chose to do 5 movies:

  1. Spirited Away
  2. Princess Mononoke
  3. My Neighbor Totoro
  4. Howl's Moving Castle
  5. Castle in the Sky

The baisc layout is a simple grid of the 5 covers I decided to use for each movie. Each movie cover is clickable and when click will pull up a modal of the movie image with a synopsis fo the movie. Each Modal has a working x button to close the modal and another function to close the modal by just clicking anywhere on the window.

The steps used to accomplish the task are:
  1. Created the html template.
  2. Format the html template using CSS grid and Flex.
  3. Made the first div for Spirited Away and set up a Modal content in the HTML page
  4. Formated the HTML page using CSS to hide the modal content for Spirited Away.
  5. Created a javascript object for spirited away and made a basic function to open the modal content by adding an event listener to the movie cover on the HTML page.
  6. Adjusted the CSS to make the webpage slightly transparent and dimmed when a modal is open.
  7. I filled in the rest of the modal content for each movie after the basic javascript work for the first movie.
  8. Rewrote the javascript to make a more dynamic code that would target each image and pull up its respective modal content.

This is the overall flow behind the methods used to approach this project. Please let me know your feedback!

Movie Covers were taken from Google Images

Built With:

  1. Html
  2. CSS
  3. Javascript

Thank You!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages