基于react開發(fā)的新聞網(wǎng)站
Github:https://github.com/pengxiaohua/news-responsive-by-react
簡書:http://www.reibang.com/p/55ff49482059
截圖
使用Webpack 2 與React Router 4 升級項目,搭建一個同時適配PC與移動端新聞平臺,先來2張圖看看效果:
demo1.jpg
demo2.jpg
UI上引用了Ant Design 樣式框架酿雪,個人覺得相對優(yōu)雅簡潔。在沒有UI美工的前提下剩愧,是最好的選擇了。
注冊.png
登錄.png
首頁.png
詳情.png
評論.png
簡介
這是一個用React寫的一個同時適配PC與移動端新聞平臺
使用了React 15.3.2版本刮刑。遵循ES6語法
主要實現(xiàn)了新聞的PC端和移動端自適應展示魁袜,注冊,登錄炮沐,查看新聞詳情争群,評論新聞,收藏新聞等功能
所有的JS代碼都在src目錄下
安裝
1大年、Clone the repo
$ git clone https://github.com/pengxiaohua/news-responsive-by-react.git
$ cd news-responsive-by-react
2换薄、Install dependencies
$ npm install 或者 cnpm install 或者 yarn install
3、Run
$ npm run dev
在瀏覽器輸入 localhost:8080
最后
想down下代碼在本地試試的童鞋翔试,可以進我的github下載轻要,別忘了star喲。