File tree 3 files changed +17
-14
lines changed
3 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 1
1
import Card from "../Card" ;
2
2
interface IProps {
3
- link : {
4
- text : string ;
5
- href : string ;
6
- } ;
7
- content ?: string ;
8
- title ?: string ;
9
- style ?: React . CSSProperties ;
3
+ cardLine : {
4
+ link : {
5
+ text : string ;
6
+ href : string ;
7
+ } ;
8
+ content ?: string ;
9
+ title ?: string ;
10
+ style ?: React . CSSProperties ;
11
+ } [ ] ;
12
+ itemWidth ?: number ;
10
13
}
11
- export default function CardLine ( { cardLine } : { cardLine : IProps [ ] } ) {
14
+ export default function CardLine ( { cardLine, itemWidth } : IProps ) {
12
15
return cardLine . map ( ( card , i ) => {
13
- return < Card key = { i } { ...card } > </ Card > ;
16
+ return < Card key = { i } { ...card } style = { { width : itemWidth } } > </ Card > ;
14
17
} ) ;
15
18
}
Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ export default function MainContent({
45
45
marginBottom : 32 ,
46
46
} }
47
47
>
48
- < CardLine cardLine = { DATA_101 . cardLine1 } />
48
+ < CardLine cardLine = { DATA_101 . cardLine1 } itemWidth = { 221 } />
49
49
</ div >
50
50
51
51
< div className = { styles . cardLine } >
52
- < CardLine cardLine = { DATA_101 . cardLine2 } />
52
+ < CardLine cardLine = { DATA_101 . cardLine2 } itemWidth = { 305.33 } />
53
53
</ div >
54
54
55
55
{ /* 102 before */ }
@@ -72,7 +72,7 @@ export default function MainContent({
72
72
</ div >
73
73
< div className = "sub-text" > { DATA_103 . subText } </ div >
74
74
< div className = { styles . cardLine } style = { { marginTop : 32 } } >
75
- < CardLine cardLine = { DATA_103 . cardLine } />
75
+ < CardLine cardLine = { DATA_103 . cardLine } itemWidth = { 474 } />
76
76
</ div >
77
77
78
78
{ /* 104 before */ }
@@ -84,7 +84,7 @@ export default function MainContent({
84
84
{ DATA_104 . title }
85
85
</ div >
86
86
< div className = { styles . cardLine } >
87
- < CardLine cardLine = { DATA_104 . cardLine } />
87
+ < CardLine cardLine = { DATA_104 . cardLine } itemWidth = { 474 } />
88
88
</ div >
89
89
90
90
{ /* Get the Source */ }
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ function getDefaultPath(): Path[] {
25
25
} ;
26
26
} ) ;
27
27
for ( let i = 0 ; i < path . length - 1 ; i ++ ) {
28
- path [ i ] . href = `/${ path [ i ] . name } ` ;
28
+ path [ i ] . href = `/${ path [ i ] . name . toLocaleLowerCase ( ) } ` ;
29
29
}
30
30
return path ;
31
31
}
You can’t perform that action at this time.
0 commit comments