Skip to content

grobergm/netflix-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netflix font-end clone

Developed by: Matt Groberg

_This is a front-end clone of netflix, using React. It isnt an exact clone, but I tried to replicate most of the styles and functionality.

Setup

  1. Clone, or Download this repository.
  2. Navigate to the root directory in your terminal.
  3. Install Dependancies: npm i
  4. Start dev Server (It will be running on localhost:3000) : npm start

Features

  1. Uses React Router to Conditionally Render the Login Page, or the Browse Page
  • Click the sign in button at the top to route to the browse page, and the Netflix logo to route back to the Login page.
  1. Uses class components only in the two main parent components (Login and Browse).

  2. State is used on Login to alternate previews when Icons are clicked.

  3. State and methods are used in Browse to:

  • Determine if window is at top, so navbar can change style
  • Keep track of which dropdown to show in the navBar (Currently only Browse is functional).
  • Keep track of titles added to the users list
  • Track which titles are being selected (changing their rendoring)
  • Toggling the Searchbox when hourglass is clicked.
  • Keeping track of text entered into serch box.
  1. A filter method is used to conditionally display Titles in each TitleRow, based on the arguments given to the function as a prop to TitleRow: ( For example:

    Input : filterTitles('genre','Documentary')

    Action: Checks each title object in a hard coded mock data array to see if the key of 'genre' is equal to 'Documentary'.

    Output: [ {name:'Our Planet', genre: 'Documentary'. ...} {name:'Street Food', genre: 'Documentary'. ...} ... ]

)

  1. When text is entered in the search box, renders a SearchResults component, rather than the TitleRows.

  2. Entering text in the search box triggers a method that updates the state of the search text

  3. A different filter function is used to test if each title includes the search text, and this array is passed as a prop to the SearchResults Component

About

A front-end clone of Netflix, using React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published