Skip to content

Commit e82fa36

Browse files
committed
add(main page): internbox style
1 parent 1f0c408 commit e82fa36

4 files changed

Lines changed: 17 additions & 7 deletions

File tree

src/js/components/common/Navbar.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
position: fixed
3939
top: 0
4040
z-index: 100
41-
box-shadow: 0px 1px 5px #50514F
41+
box-shadow: 0px 1px 10px #aaa
4242
.navbar
4343
a
4444
span

src/js/components/pages/dashboard/Base.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ export default CSSModules(class extends Component {
332332
maxWidth: '1024px'
333333
}}>
334334
<div className="searchBtn"
335-
onClick={this.showSearchModal}>單字搜尋
335+
onClick={this.showSearchModal}>關鍵字搜尋
336336
</div>
337337
<div className="searchBtn"
338338
onClick={this.showCatagoryModal}>類別搜尋

src/js/components/pages/dashboard/InternBox.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default CSSModules(class Inner extends Component {
8686
<Animate enter={{'animation': 'fade', 'duration': 700, 'delay': 0}}
8787
keep={false}
8888
style={{
89-
marginBottom: '40px'
89+
marginBottom: '20px'
9090
}}>
9191
<Link to={`${base}/post/${this.state.id}`}
9292
target="_blank">
@@ -128,6 +128,7 @@ export default CSSModules(class Inner extends Component {
128128
width: '100%'
129129
}}/>
130130
</Tile>
131+
</Link>
131132
<div className='actionButton'>
132133
<FavoriteIcon
133134
onClick={this.toggleFavorite}
@@ -145,7 +146,6 @@ export default CSSModules(class Inner extends Component {
145146
}}/>
146147
<span>{this.state.messageCount}</span>
147148
</div>
148-
</Link>
149149
</Animate>
150150
</div>
151151
</div>

src/js/components/pages/dashboard/InternBox.styl

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
.internBoxWrapper
22
width: 100%
3-
padding: 10px
3+
padding: 20px
44
margin: 5px 0
55
.actionButton
6+
margin-top: 10px
7+
padding: 10px 0 0 0
68
display: flex
7-
margin-left: 10px
9+
margin-left: 25px
810
> *
911
margin: 0 3px
1012
span
@@ -19,12 +21,20 @@
1921
overflow: hidden !important
2022
.innerBoxWrapperContent
2123
width: 100%
24+
height: 100%
2225
padding-bottom: 1px
2326
border-radius: 5px
24-
box-shadow: 0px 1px 7px #50514F
27+
transition: all 0.25s ease
28+
box-shadow: 0px 1px 5px #bbb
29+
&:hover
30+
transition: all 0.25s ease
31+
box-shadow: 0px 1px 10px #999
2532
.internBoxLink
2633
color: #58A0FC !important
2734
text-decoration: none !important
35+
a
36+
> div
37+
width: auto
2838
a
2939
color: #50514F !important
3040
text-decoration: none !important

0 commit comments

Comments
 (0)