@@ -7,7 +7,7 @@ import { SpinnerBox } from 'boot-cell/source/Prompt/Spinner';
77import { Card , CardHeader } from 'boot-cell/source/Content/Card' ;
88import { Badge } from 'boot-cell/source/Reminder/Badge' ;
99
10- import companies from '../data/members-china.json' ;
10+ import organizations from '../data/members-china.json' ;
1111import { member , proposal , Member , Proposal } from '../model' ;
1212
1313const thisYear = new Date ( ) . getFullYear ( ) ;
@@ -25,15 +25,15 @@ export class MainPage extends mixin() {
2525 super . connectedCallback ( ) ;
2626 }
2727
28- renderMember = ( {
28+ renderMember ( {
2929 avatar_url,
3030 username,
3131 url,
3232 name,
3333 company,
3434 location,
3535 bio,
36- } : Member ) => {
36+ } : Member ) {
3737 return (
3838 < div className = "col-12 col-sm-6 col-md-3 my-3" >
3939 < Card
@@ -60,7 +60,7 @@ export class MainPage extends mixin() {
6060 </ Card >
6161 </ div >
6262 ) ;
63- } ;
63+ }
6464
6565 renderProposal = ( {
6666 link,
@@ -131,7 +131,7 @@ export class MainPage extends mixin() {
131131 return (
132132 < >
133133 < Jumbotron
134- className = "mt-4 text-center"
134+ className = "my-5 text-center"
135135 title = {
136136 < span className = "text-nowrap" >
137137 JavaScript
@@ -162,27 +162,32 @@ export class MainPage extends mixin() {
162162 </ Button >
163163 </ Jumbotron >
164164
165- < h2 className = "mt-4 text-center" > TC39 中国会员</ h2 >
165+ < h2 className = "my-5 text-center" > TC39 中国会员</ h2 >
166166
167167 < section className = "row" >
168- { companies . map ( ( { link, logo, name } ) => (
168+ { organizations . map ( ( { link, logo, name } ) => (
169169 < a
170- className = "d-flex col-12 col-sm-4 col-md-3 my-3 justify-content-center align-items-center"
170+ className = "d-flex col-12 col-sm-4 col-md-3 my-3 flex-column justify-content-between align-items-center text-decoration-none "
171171 target = "_blank"
172172 href = { link }
173173 >
174174 < Image fluid title = { name } src = { logo } />
175175 </ a >
176176 ) ) }
177+ < footer className = "col-12 text-center" >
178+ < Button size = "sm" outline color = "primary" href = "members" >
179+ 查看详情
180+ </ Button >
181+ </ footer >
177182 </ section >
178183
179- < h2 className = "mt-4 text-center" > JSCIG 成员</ h2 >
184+ < h2 className = "my-5 text-center" > JSCIG 成员</ h2 >
180185
181186 < SpinnerBox className = "row" cover = { member . loading } >
182187 { member . list . map ( this . renderMember ) }
183188 </ SpinnerBox >
184189
185- < h2 className = "mt-4 text-center" > TC39 既成提案</ h2 >
190+ < h2 className = "my-5 text-center" > TC39 既成提案</ h2 >
186191
187192 < SpinnerBox className = "row" cover = { proposal . loading } >
188193 { proposal . finishedList . map ( this . renderProposal ) }
0 commit comments