Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_API_KEY = 64c88f7eb8d56a8d5f3b67328f56a36e
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?

.env
127 changes: 122 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,125 @@
# React + Vite
## Unit Assignment: Flixster

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Submitted by: JOSEPH AKINTUNDE

Currently, two official plugins are available:
Estimated time spent: 20 HOURS

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
Deployed Application (**required**): [Flixster Deployed Site](https://flixster-starter-w6kv.onrender.com)

### Application Features

#### REQUIRED FEATURES

- [X] **Display Movies**
- [X] Users can view a list of current movies from The Movie Database API in a grid view.
- [X] Movie tiles should be reasonably sized (at least 6 playlists on your laptop when full screen; large enough that the playlist components detailed in the next feature are legible).
- [X] For each movie displayed, users can see the movie's:
- [X] Title
- [X] Poster image
- [X] Vote average
- [X] Users can load more current movies by clicking a button which adds more movies to the grid without reloading the entire page.
- [X] **Search Functionality**
- [X] Users can use a search bar to search for movies by title.
- [X] The search bar should include:
- [X] Text input field
- [X] Submit/Search button
- [X] Clear button
- [X] Movies with a title containing the search query in the text input field are displayed in a grid view when the user either:
- [X] Presses the Enter key
- [X] Clicks the Submit/Search button
- [X] Users can click the Clear button. When clicked:
- [X] Most recent search results are cleared from the text input field and the grid view and all current movies are displayed in a grid view
- [X] **Design Features**
- [X] Website implements all of the following accessibility features:
- [X] Semantic HTML
- [X] [Color contrast](https://webaim.org/resources/contrastchecker/)
- [X] Alt text for images
- [X] Website implements responsive web design.
- [X] Uses CSS Flexbox or CSS Grid
- [X] Movie tiles and images shrink/grow in response to window size
- [X] Users can click on a movie tile to view more details about a movie in a pop-up modal.
- [X] The pop-up window is centered in the screen and does not occupy the entire screen.
- [X] The pop-up window has a shadow to show that it is a pop-up and appears floating on the screen.
- [X] The backdrop of the pop-up appears darker or in a different shade than before. including:
- [X] The pop-up displays additional details about the moving including:
- [X] Runtime in minutes
- [X] Backdrop poster
- [X] Release date
- [X] Genres
- [X] An overview
- [X] Users can use a drop-down menu to sort movies.
- [X] Drop-down allows movies to be sorted by:
- [X] Title (alphabetic, A-Z)
- [X] Release date (chronologically, most recent to oldest)
- [X] Vote average (descending, highest to lowest)
- [X] When a sort option is clicked, movies display in a grid according to selected criterion.
- [X] Website displays:
- [X] Header section
- [X] Banner section
- [X] Search bar
- [X] Movie grid
- [X] Footer section
- [X] **VIDEO WALKTHROUGH SPECIAL INSTRUCTIONS**: To ease the grading process, please use the [color contrast checker](https://webaim.org/resources/contrastchecker/) to demonstrate to the grading team that text and background colors on your website have appropriate contrast. The Contrast Ratio should be above 4.5:1 and should have a green box surrounding it.
- [X] **Deployment**
- [X] Website is deployed via Render.
- [X] **VIDEO WALKTHROUGH SPECIAL INSTRUCTIONS**: For ease of grading, please use the deployed version of your website when creating your walkthrough.

#### STRETCH FEATURES


- [X] **Embedded Movie Trailers**
- [X] Within the pop-up modal displaying a movie's details, the movie trailer is viewable.
- [X] When the trailer is clicked, users can play the movie trailer.
- [X] **Favorite Button**
- [X] For each movie displayed, users can favorite the movie.
- [X] There should be visual element (such as a heart icon) on each movie's tile to show whether or not the movie has been favorited.
- [X] If the movie is not favorited:
- [X] Clicking on the visual element should mark the movie as favorited
- [X] There should be visual feedback (such as the heart turning a different color) to show that the movie has been favorited by the user.
- [X] If the movie is already favorited:
- [X] Clicking on the visual element should mark the movie as *not* favorited.
- [X] There should be visual feedback (such as the heart turning a different color) to show that the movie has been unfavorited.
- [X] **Watched Checkbox**
- [X] For each movie displayed, users can mark the movie as watched.
- [X] There should be visual element (such as an eye icon) on each movie's tile to show whether or not the movie has been watched.
- [X] If the movie has not been watched:
- [X] Clicking on the visual element should mark the movie as watched
- [X] There should be visual feedback (such as the eye turning a different color) to show that the movie has been watched by the user.
- [X] If the movie is already watched:
- [X] Clicking on the visual element should mark the movie as *not* watched.
- [X] There should be visual feedback (such as the eye turning a different color) to show that the movie has not been watched.
- [ ] **Sidebar**
- [ ] The website includes a side navigation bar.
- [ ] The sidebar has three pages:
- [ ] Home
- [ ] Favorites
- [ ] Watched
- [ ] The Home page displays all current movies in a grid view, the search bar, and the sort movies drop-down.
- [ ] The Favorites page displays all favorited movies in a grid view.
- [ ] The Watched page displays all watched movies in a grid view.

### Walkthrough Video

<div style="position: relative; padding-bottom: 64.55089820359281%; height: 0;"><iframe src="https://www.loom.com/embed/fd6e8297339c439a9c45bc5d2f23744c?sid=816a65ce-a9d7-4c91-8321-b6e43c242328" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe></div>

### Reflection

* Did the topics discussed in your labs prepare you to complete the assignment? Be specific, which features in your weekly assignment did you feel unprepared to complete?

Abssolutely! I applied a lot of things i learned last week to this project. An example woud be the liked and watched feature

* If you had more time, what would you have done differently? Would you have added additional features? Changed the way your project responded to a particular event, etc.

Completed the Sidebar stretch feature.

* Reflect on your project demo, what went well? Were there things that maybe didn't go as planned? Did you notice something that your peer did that you would like to try next time?

Surprisingly, the sort was kind of complicated. I changed my code three times to get it to work

### Open-source libraries used

- Add any links to open-source libraries used in your project.

### Shout out

Shoutout to the always helpful, super nice instructors namely Virsaviya, Ebony, Tom, Matthew, Paulo, and Erika. Also to my buddies Noble Matthew, Braden Jones, Caleb Calderon, Charles McClasky, Chioma Ibe, and Yaw Boateng. Also, Joie Whitmon, Kayleen Ramirez, and Kingston Davies.
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<link rel="icon" type="image/png" href="/movie.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Flixster</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap" rel="stylesheet">

</head>
<body>
<div id="root"></div>
Expand Down
Loading