Skip to content

Commit

Permalink
add favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
alex3347 committed Jan 8, 2018
1 parent f307b79 commit c79fe91
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 1 deletion.
Binary file added src/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions src/pages/Mine/Mine.scss
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
}
}
.down{
margin-bottom: 96px;
.itemList{
overflow: hidden;
background-color: #fff;
Expand Down
12 changes: 12 additions & 0 deletions src/pages/MineFocus/MineFocus.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ export default class MineFocus extends Component {
</div>
<div className={styles.right}>关注</div>
</div>
<div className={styles.item}>
<div className={styles.left}>
<div className={styles.imgContainer}>
<img src={require('./images/avatar3.png')} alt=""/>
</div>
<div className={styles.contentContainer}>
<div className={styles.name}>拉不拉卡君</div>
<div className={styles.describe}>唯有美食与爱不可辜负</div>
</div>
</div>
<div className={styles.right}>关注</div>
</div>
</div>
</div>
)
Expand Down
Binary file modified src/pages/MineFocus/images/avatar1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/pages/MineFocus/images/avatar2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/pages/MineFocus/images/avatar3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion webpack.common.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ module.exports = {
plugins: [
new HtmlWebpackPlugin({//用于加载增加了hash值的js文件到html
filename: 'index.html',
template: path.join(__dirname, 'src/index.html')
template: path.join(__dirname, 'src/index.html'),
favicon: path.join(__dirname, 'src/favicon.ico')
}),
new webpack.optimize.CommonsChunkPlugin({//用于提取react redux等公共组件
name: 'vendor'
Expand Down

0 comments on commit c79fe91

Please sign in to comment.