Skip to content

marapredescu1/react-intro-2021

 
 

Repository files navigation

Adding new packages to the repo


// For dependencies
$ yarn add <package-name>
$ npm install --save <package-name>

// For devDependencies
$ yarn add -D <package-name>
$ npm install --save-dev <package-name>

Adding new component

npx generate-react-cli component BackButton2

Sample Data

Taken from: https://gist.githubusercontent.com/sabinmarcu/f2e2a68ff36528965792e019ad9fd20b/raw/88f6726920ee13ea59121aabb45e6bba2d55a63e/data.json

Libs used

Useful libs

Homework

App / Navigation bar on the top of the page to contain:

  • left side
    • link towards home (with react router)
    • optional link that takes you back one link if not on the homepage
  • right side
    • theme button

Bonus points

Style nav/app bar depending on scroll position:

  • top of the page (scrolled all the way up)
    • background to match page background
  • page is scrolled (visually pleasing, tolerance to be decided) - background to shift - add box shadow Bar should be fixed to top

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.8%
  • CSS 18.7%
  • SCSS 8.2%
  • HTML 6.3%