Skip to content

ReactMaker/react_challenge_sticky_nav

Repository files navigation

react_challenge_sticky_nav

捲動畫面到特定位置後,將選單使用CSS固定在上方

Imgur

特色

需求配置

  • node ^4.5.0
  • npm ^3.0.0

開始

先確定好安裝了 node 4.5 以上的版本,接著就可以輸入以下指令

$ git clone https://github.com/ReactMaker/react_challenge_sticky_nav
$ cd react_challenge_sticky_nav
$ npm install                   # Install project dependencies
$ npm start                     # Compile and launch

如果一切成功,就會看到以下畫面,並且瀏覽器會打開的範例頁面

Imgur

開發當中最常用到的是 npm start 指令,我們還有一些其他的指令要介紹給你知道

npm run <script> 說明
start 啟動網站在 8000 port
dist 編譯整個網站成品到 dist 資料夾下
lint 檢查所有的 js 檔案有沒有符合 coding style
lint:fix 檢查所有的 js 檔案有沒有符合 coding style ,如果是一些簡單的錯誤就會嘗試修復

About

捲動畫面到特定位置後,將選單使用CSS固定在上方

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published