File tree Expand file tree Collapse file tree 19 files changed +208
-133
lines changed Expand file tree Collapse file tree 19 files changed +208
-133
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/es-contributions' ;
3
- import { contributorLinks } from '../../constants/es-footer' ;
1
+ import Component from 'sparkles-component' ;
4
2
5
- export default Component . extend ( {
6
- classNames : [ 'footer-contributions' ] ,
7
- layout,
8
- contributorLinks
9
- } ) ;
3
+ export default class EsContributions extends Component {
4
+
5
+ }
Original file line number Diff line number Diff line change 1
- import Component from '@ember/component' ;
2
- import layout from '../../templates/components/es-footer/es-info' ;
3
- import { computed } from '@ember/object' ;
4
- import { infoLinks } from '../../constants/es-footer' ;
1
+ import Component from 'sparkles-component' ;
5
2
3
+ export default class EsContributions extends Component {
6
4
7
- export default Component . extend ( {
8
- classNames : [ 'footer-info' ] ,
9
- layout,
10
- infoLinks,
11
- infoLinksLastIndex : computed ( 'infoLinks.length' , function ( ) {
12
- return this . infoLinks . length - 1 ;
13
- } ) ,
14
-
15
- init ( ) {
16
- this . _super ( ...arguments ) ;
17
- this . currentYear = new Date ( ) . getUTCFullYear ( ) ;
18
- } ,
19
- } ) ;
5
+ }
Original file line number Diff line number Diff line change 1
- import Component from '@ember/component' ;
2
- import layout from '../../templates/components/es-footer/es-statement' ;
3
- import { tagline , socialLinks } from '../../constants/es-footer' ;
1
+ import Component from 'sparkles-component' ;
4
2
5
- export default Component . extend ( {
6
- classNames : [ 'footer-statement' ] ,
7
- layout,
8
- tagline,
9
- socialLinks
10
- } ) ;
3
+ export default class EsStatement extends Component {
4
+ constructor ( ) {
5
+ super ( ...arguments )
6
+
7
+ this . currentYear = new Date ( ) . getUTCFullYear ( ) ;
8
+ }
9
+ }
Original file line number Diff line number Diff line change @@ -40,10 +40,6 @@ const contributorLinks = [{
40
40
} ] ;
41
41
42
42
const infoLinks = [ {
43
- name : 'Tilde Inc.' ,
44
- href : 'http://tilde.io' ,
45
- lineBreak : true
46
- } , {
47
43
name : 'Team' ,
48
44
href : 'https://emberjs.com/team'
49
45
} , {
@@ -57,7 +53,7 @@ const infoLinks = [{
57
53
name : 'Legal' ,
58
54
href : 'https://emberjs.com/legal'
59
55
} , {
60
- name : 'Brand ' ,
56
+ name : 'Branding ' ,
61
57
href : 'https://emberjs.com/brand' ,
62
58
lineBreak : true
63
59
} , {
Original file line number Diff line number Diff line change 13
13
@import "components/es-button.css" ;
14
14
@import "components/es-tabs.css" ;
15
15
@import "components/es-card.css" ;
16
+ @import "components/es-footer.css" ;
Original file line number Diff line number Diff line change
1
+ /* .es-footer.container {
2
+ padding: 0;
3
+ } */
4
+
5
+ .es-footer {
6
+ & a {
7
+ text-decoration : none;
8
+ color : var (--color-dark );
9
+ }
10
+
11
+ & .footer-info {
12
+ display : flex;
13
+ padding : var (--spacing-2 ) 0 ;
14
+
15
+ & .footer-logo {
16
+ height : 5rem ;
17
+ }
18
+ }
19
+
20
+ & .footer-info-links {
21
+ display : grid;
22
+ grid-template-columns : repeat (2 , 1fr );
23
+ grid-gap : 0.5rem ;
24
+ }
25
+
26
+ & .footer-hr {
27
+ border : 0 ;
28
+ border-bottom : 2px solid var (--color-muted );
29
+ margin : 0 ;
30
+ }
31
+
32
+ & .footer-statement {
33
+ padding : var (--spacing-2 ) 0 ;
34
+ display : flex;
35
+ justify-content : space-between;
36
+ }
37
+
38
+ & .footer-copyright {
39
+ color : var (--color-gray );
40
+ }
41
+
42
+ & .footer-social {
43
+ display : flex;
44
+ align-items : center;
45
+
46
+ & svg {
47
+ fill : var (--color-gray );
48
+ }
49
+ }
50
+
51
+ & .footer-contributions-wrapper {
52
+ background-color : var (--color-muted );
53
+ }
54
+
55
+ & .footer-contributions {
56
+ color : var (--color-gray );
57
+ padding : 0 ;
58
+ display : flex;
59
+ justify-content : space-between;
60
+ align-items : center;
61
+ }
62
+ }
Original file line number Diff line number Diff line change 1
1
<footer class =" es-footer" ...attributes>
2
- <div class =" container" >
2
+ {{!--
3
+ Pass footer properties to support
4
+ {{es-footer tagline="My custom tagline" contributorLinks=myLinks}}
5
+ --}}
6
+ {{ es-footer/es-info infoLinks =infoLinks }}
3
7
4
- {{ yield
5
- (hash
6
- info = (component " es-footer/es-info" )
7
- statement = (component " es-footer/es-statement" )
8
- contributions = (component " es-footer/es-contributions" )
9
- )
10
- }}
8
+ <hr class =" footer-hr" >
11
9
12
- {{ #unless hasBlock }}
10
+ {{ es-footer/es-statement tagline = tagline socialLinks = socialLinks }}
13
11
14
- {{!--
15
- Pass footer properties to support
16
- {{es-footer tagline="My custom tagline" contributorLinks=myLinks}}
17
- --}}
18
- {{ es-footer/es-info infoLinks =infoLinks }}
19
- {{ es-footer/es-statement tagline =tagline socialLinks =socialLinks }}
20
- {{ es-footer/es-contributions contributorLinks =contributorLinks }}
12
+ <hr class =" footer-hr" >
21
13
22
- {{ /unless }}
23
-
24
- </div >
14
+ {{ es-footer/es-contributions contributorLinks =contributorLinks }}
25
15
</footer >
Original file line number Diff line number Diff line change 1
-
2
- {{ #if hasBlock }}
3
- {{ yield }}
4
- {{ else }}
5
- {{ #each contributorLinks as |link |}}
6
- <div class =" contributor" >
7
- <p >{{ link.name }} </p >
8
- <a href ={{ link.href }} title ={{ link.title }} aria-label ={{ link.title }} >
9
- {{ svg-jar link.class class =" contributor-logo" }}
10
- </a >
1
+ <div class =" footer-contributions-wrapper" >
2
+ <div class =" footer-contributions container" >
3
+ <span >Ember is generously supported by</span >
4
+ <div >
5
+ {{ #each args.contributorLinks as |link |}}
6
+ <a href ={{ link.href }} title ={{ link.title }} aria-label ={{ link.title }} class =" icon-wrapper large margin-left-xsmall" >
7
+ {{ svg-jar link.class class =" icon" }}
8
+ </a >
9
+ {{ /each }}
11
10
</div >
12
- {{ /each }}
13
- {{ /if }}
11
+ </ div >
12
+ </ div >
Original file line number Diff line number Diff line change
1
+ <div class =" footer-info container" >
2
+ <img src =" /images/ember-logo.svg" alt =" Ember Logo" class =" footer-logo margin-right-medium" >
1
3
2
- Copyright {{ currentYear }}
3
- {{ #if hasBlock }}
4
- {{ yield }}
5
- {{ else }}
6
- {{ #each infoLinks as |link index |}}
7
- <a href ={{ link.href }} >{{ link.name }} </a >
8
- {{ #if link.lineBreak }}
9
- <br >
10
- {{ else if (not-eq index infoLinksLastIndex)}}
11
- |
12
- {{ /if }}
13
- {{ /each }}
14
- {{ /if }}
4
+ <div class =" footer-info-links" >
5
+ {{ #each args.infoLinks as |link |}}
6
+ <a href ={{ link.href }} class =" small margin-bottom-xsmall margin-left-xsmall" >{{ link.name }} </a >
7
+ {{ /each }}
8
+ </div >
9
+ </div >
Original file line number Diff line number Diff line change 1
-
2
- {{ #if hasBlock }}
3
- {{ yield }}
4
- {{ else }}
5
- <p class =" footer-tagline" >{{ tagline }} </p >
1
+ <div class =" footer-statement container" >
2
+ <div >
3
+ <p class =" footer-copyright" >
4
+ © Copyright {{ currentYear }} - <a href =" https://www.tilde.io/" class =" footer-copyright" >Tilde Inc.</a >
5
+ </p >
6
+ <p class =" footer-tagline" >{{ args.tagline }} </p >
7
+ </div >
6
8
<div class =" footer-social" >
7
- {{ #each socialLinks as |link |}}
8
- <a href ={{ link.href }} title ={{ link.title }} aria-label ={{ link.label }} >
9
- {{ svg-jar link.class }}
9
+ {{ #each args. socialLinks as |link |}}
10
+ <a href ={{ link.href }} title ={{ link.title }} aria-label ={{ link.label }} class = " icon-wrapper margin-xsmall small " >
11
+ {{ svg-jar link.class class = " icon " }}
10
12
</a >
11
13
{{ /each }}
12
14
</div >
13
- {{ /if }}
15
+ </ div >
Original file line number Diff line number Diff line change
1
+ export { default } from 'ember-styleguide/templates/components/es-footer/es-contributions' ;
Original file line number Diff line number Diff line change
1
+ export { default } from 'ember-styleguide/templates/components/es-footer/es-info' ;
Original file line number Diff line number Diff line change
1
+ export { default } from 'ember-styleguide/templates/components/es-footer/es-statement' ;
Original file line number Diff line number Diff line change 3
3
``` handlebars
4
4
{{es-footer}}
5
5
```
6
-
7
- ``` handlebars
8
- {{es-footer tagline="A framework for ambitious web developers"}}
9
- ```
10
-
11
- ``` handlebars
12
- {{!-- Check out the component blocks and their respective
13
- configuration --}}
14
- {{#es-footer as |f|}}
15
- {{f.info infoLinks=infoLinks}}
16
- {{f.statement socialLinks=socialLinks}}
17
- {{f.contributions contributorLinks=contributorLinks}}
18
- {{/es-footer}}
19
- ```
20
-
21
- ``` handlebars
22
- {{!-- You can also add your own content on each component block --}}
23
- {{#es-footer as |f|}}
24
- {{#f.info}}
25
- <br/>
26
- <a>Team</a>
27
- <br/>
28
- <a>Contact</a>
29
- {{/f.info}}
30
- {{#f.statement}}
31
- Highly Productive Out of the Box
32
- {{/f.statement}}
33
- {{#f.contributions}}
34
- <div class="contributor">
35
- <p>Hosted by:</p>
36
- <a href="https://www.heroku.com/emberjs">
37
- {{svg-jar "heroku-logo" class="contributor-logo"}}
38
- </a>
39
- </div>
40
- {{/f.contributions}}
41
- {{/es-footer}}
42
- ```
You can’t perform that action at this time.
0 commit comments