File tree Expand file tree Collapse file tree 7 files changed +25
-30
lines changed Expand file tree Collapse file tree 7 files changed +25
-30
lines changed Original file line number Diff line number Diff line change 1
- import Component from '@ember/ component' ;
2
- import layout from '../templates/components/es-footer' ;
1
+ import Component from 'sparkles- component' ;
2
+
3
3
import {
4
4
socialLinks ,
5
5
infoLinks ,
6
6
contributorLinks ,
7
7
tagline
8
8
} from '../constants/es-footer' ;
9
9
10
+ export default class EsPageHeader extends Component {
11
+ currentYear = null
10
12
11
- export default Component . extend ( {
12
- layout,
13
- attributeBindings : [ 'ariaLabel:aria-label' ] ,
14
- classNames : [ 'es-footer' ] ,
15
- tagName : 'footer' ,
16
- currentYear : null ,
17
- init ( ) {
18
- this . _super ( ...arguments ) ;
13
+ constructor ( ) {
14
+ super ( ) ;
19
15
this . currentYear = new Date ( ) . getUTCFullYear ( ) ;
20
- } ,
16
+ }
21
17
22
- socialLinks,
23
- tagline,
24
- contributorLinks,
25
- infoLinks,
18
+ socialLinks = socialLinks
26
19
27
- //accessibility support
28
- ariaDescribedby : null ,
29
- ariaLabel : null ,
30
- ariaRole : 'contentinfo' ,
31
- title : null
32
- } ) ;
20
+ tagline = tagline
21
+ contributorLinks = contributorLinks
22
+ infoLinks = infoLinks
23
+ }
Original file line number Diff line number Diff line change 2
2
const socialLinks = [ {
3
3
title : 'Twitter' ,
4
4
href : 'http://twitter.com/emberjs' ,
5
- class : 'twitter-logo'
5
+ class : 'twitter-logo' ,
6
+ label : 'Official Ember Twitter Account'
6
7
} , {
7
8
title : 'GitHub' ,
8
9
href : 'https://github.com/emberjs/ember.js' ,
9
- class : 'github-logo'
10
+ class : 'github-logo' ,
11
+ label : 'Ember.js github repository'
10
12
} , {
11
13
title : 'Discord' ,
12
14
href : 'https://discordapp.com/invite/zT3asNS' ,
13
- class : 'discord-logo'
15
+ class : 'discord-logo' ,
16
+ label : 'Join the Ember Community Discord'
14
17
} ] ;
15
18
16
19
17
20
const contributorLinks = [ {
18
21
name : 'Hosted by:' ,
19
22
title : "Heroku" ,
20
23
href : 'https://www.heroku.com/emberjs' ,
21
- class : 'heroku-logo'
24
+ class : 'heroku-logo' ,
22
25
} , {
23
26
name : 'CDN provided by:' ,
24
27
title : "Fastly" ,
Original file line number Diff line number Diff line change 1
- <div class =" footer responsive " >
1
+ <footer class =" es- footer" ...attributes >
2
2
<div class =" container" >
3
3
4
4
{{ yield
22
22
{{ /unless }}
23
23
24
24
</div >
25
- </div >
25
+ </footer >
Original file line number Diff line number Diff line change 5
5
{{ #each contributorLinks as |link |}}
6
6
<div class =" contributor" >
7
7
<p >{{ link.name }} </p >
8
- <a href ={{ link.href }} title ={{ link.title }} >
8
+ <a href ={{ link.href }} title ={{ link.title }} aria-label = {{ link.title }} >
9
9
{{ svg-jar link.class class =" contributor-logo" }}
10
10
</a >
11
11
</div >
Original file line number Diff line number Diff line change 5
5
<p class =" footer-tagline" >{{ tagline }} </p >
6
6
<div class =" footer-social" >
7
7
{{ #each socialLinks as |link |}}
8
- <a href ={{ link.href }} title ={{ link.title }} >
8
+ <a href ={{ link.href }} title ={{ link.title }} aria-label = {{ link.label }} >
9
9
{{ svg-jar link.class }}
10
10
</a >
11
11
{{ /each }}
Original file line number Diff line number Diff line change 1
- export { default } from 'ember-styleguide/components/es-footer' ;
1
+ export { default } from 'ember-styleguide/components/es-footer' ;
Original file line number Diff line number Diff line change
1
+ export { default } from 'ember-styleguide/templates/components/es-footer' ;
You can’t perform that action at this time.
0 commit comments