File tree Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Expand file tree Collapse file tree 3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ export default ({ current }) => {
32
32
>
33
33
< a
34
34
className = {
35
- `${ current === item ? "pink" : "near-white grow hover-pink" } link f7 f5-ns dib ph1 ph2-ns pv4 fw3`
35
+ `${ current === item ? "pink" : "near-white grow hover-pink" } ttc link f7 f5-ns dib ph1 ph2-ns pv4 fw3`
36
36
}
37
37
>
38
- { item . charAt ( 0 ) . toUpperCase ( ) + item . slice ( 1 ) }
38
+ { item }
39
39
</ a >
40
40
</ Link >
41
41
) ;
@@ -126,6 +126,9 @@ export default ({ current }) => {
126
126
opacity: 1.0;
127
127
transform: rotate(3deg) translate(0px, -4px);
128
128
}
129
+ .tc {
130
+ text-align: center;
131
+ }
129
132
`
130
133
}
131
134
</ style >
Original file line number Diff line number Diff line change @@ -7,10 +7,7 @@ export default class Document extends NextDocument {
7
7
< Head >
8
8
< title > Next.js HN PWA</ title >
9
9
< meta charSet = "utf-8" />
10
- < meta
11
- name = "viewport"
12
- content = "width=device-width, initial-scale=1"
13
- />
10
+ < meta name = "viewport" content = "width=device-width, initial-scale=1" />
14
11
< meta
15
12
name = "description"
16
13
content = "A Hacker News Progressive Web App built using Next.js"
Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ export default class extends React.PureComponent {
33
33
< Navigation current = { type } />
34
34
< PageSelector current = { page } type = { type } />
35
35
< section className = "w-100 center mw7 mh4" >
36
- { data . length ? data . map ( ( item , index ) => < ItemMeta key = { item . id } { ...item } /> ) : < div className = "f4 fw3 tc pv5" > No further items.</ div > }
36
+ { data . length
37
+ ? data . map ( ( item , index ) => < ItemMeta key = { item . id } { ...item } /> )
38
+ : < div className = "tc f4 fw3 pv5" > No further items.</ div > }
37
39
</ section >
38
40
</ main >
39
41
) ;
You can’t perform that action at this time.
0 commit comments