Skip to content

zotya/react-intro-2021

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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>

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

Usage with docker

start the node environment inside a container:

docker-compose up -d

get into the container:

docker-compose exec training bash

inside the container the app is located in the training folder

cd training
yarn install
yarn server
yarn start

Libs for hw:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.0%
  • CSS 25.2%
  • HTML 6.8%