@@ -4,7 +4,7 @@ import { Jumbotron } from 'boot-cell/source/Content/Jumbotron';
44import { Button } from 'boot-cell/source/Form/Button' ;
55import { Image } from 'boot-cell/source/Media/Image' ;
66import { SpinnerBox } from 'boot-cell/source/Prompt/Spinner' ;
7- import { Card } from 'boot-cell/source/Content/Card' ;
7+ import { Card , CardHeader } from 'boot-cell/source/Content/Card' ;
88import { Badge } from 'boot-cell/source/Reminder/Badge' ;
99
1010import companies from '../data/members-china.json' ;
@@ -15,7 +15,7 @@ const thisYear = new Date().getFullYear();
1515@observer
1616@component ( {
1717 tagName : 'main-page' ,
18- renderTarget : 'children'
18+ renderTarget : 'children' ,
1919} )
2020export class MainPage extends mixin ( ) {
2121 connectedCallback ( ) {
@@ -32,7 +32,7 @@ export class MainPage extends mixin() {
3232 name,
3333 company,
3434 location,
35- bio
35+ bio,
3636 } : Member ) => {
3737 return (
3838 < div className = "col-12 col-sm-6 col-md-3 my-3" >
@@ -68,7 +68,7 @@ export class MainPage extends mixin() {
6868 tags,
6969 edition,
7070 authors,
71- champions
71+ champions,
7272 } : Proposal ) => {
7373 const standard = tags [ 0 ] . split ( '-' ) [ 1 ] ;
7474
@@ -85,29 +85,27 @@ export class MainPage extends mixin() {
8585 name
8686 )
8787 }
88- header = {
89- < div className = "d-flex justify-content-around" >
88+ >
89+ < CardHeader className = "d-flex justify-content-around" >
90+ < Badge
91+ color = "primary"
92+ target = "_blank"
93+ href = { `https://tc39.es/ecma${ standard } /` }
94+ >
95+ ECMA-{ standard }
96+ </ Badge >
97+ { standard === '262' && edition <= thisYear ? (
9098 < Badge
91- color = "primary "
99+ color = "success "
92100 target = "_blank"
93- href = { `https://tc39.es/ecma${ standard } /` }
101+ href = { `https://www.ecma-international.org/ecma-262/${
102+ edition - 2009
103+ } .0/`}
94104 >
95- ECMA- { standard }
105+ ES { edition }
96106 </ Badge >
97- { standard === '262' && edition <= thisYear ? (
98- < Badge
99- color = "success"
100- target = "_blank"
101- href = { `https://www.ecma-international.org/ecma-262/${
102- edition - 2009
103- } .0/`}
104- >
105- ES { edition }
106- </ Badge >
107- ) : null }
108- </ div >
109- }
110- >
107+ ) : null }
108+ </ CardHeader >
111109 { ( authors || champions ) && (
112110 < dl >
113111 { authors && (
0 commit comments