Skip to content

Commit 45d56bb

Browse files
authored
Merge pull request #49 from Dan-Ste/feature/footer-icons
Footer icons
2 parents 5fbb369 + 0c90a3f commit 45d56bb

File tree

12 files changed

+382
-78
lines changed

12 files changed

+382
-78
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
npm-debug.log*
1717
yarn-error.log
1818
testem.log
19+
jsconfig.json
1920

2021
# ember-try
2122
.node_modules.ember-try/

addon/styles/_es-footer.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@
122122
flex: 1 0 11em;
123123
}
124124

125-
.footer .footer-contributions .logo-heroku {
125+
.footer .footer-contributions .heroku-logo {
126126
max-height: 35px;
127127
}
128128

129-
.footer .footer-contributions .logo-fastly {
129+
.footer .footer-contributions .fastly-logo {
130130
max-height: 45px;
131131
}
132132

addon/templates/components/es-footer.hbs

Lines changed: 8 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<div class="footer responsive">
22
<div class="container">
3+
34
<div class="footer-info">
45
Copyright {{currentYear}}
56
<a href="http://tilde.io">Tilde Inc.</a>
@@ -19,68 +20,13 @@
1920
<p class="footer-tagline">Ember.js is free, open source and always will be.</p>
2021
<div class="footer-social">
2122
<a href="http://twitter.com/emberjs" title="Twitter">
22-
<svg
23-
xmlns:dc="http://purl.org/dc/elements/1.1/"
24-
xmlns:cc="http://creativecommons.org/ns#"
25-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
26-
xmlns:svg="http://www.w3.org/2000/svg"
27-
xmlns="http://www.w3.org/2000/svg"
28-
version="1.1"
29-
id="svg4169"
30-
viewBox="0 0 1000 1000">
31-
<defs
32-
id="defs4171" />
33-
<metadata
34-
id="metadata4174">
35-
<rdf:RDF>
36-
<cc:Work
37-
rdf:about="">
38-
<dc:format>image/svg+xml</dc:format>
39-
<dc:type
40-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
41-
<dc:title></dc:title>
42-
</cc:Work>
43-
</rdf:RDF>
44-
</metadata>
45-
<g
46-
id="layer1">
47-
<path
48-
id="path4717"
49-
d="m 939.5,227.94118 q -37,54 -90,93 0,8 0,23 0,73 -21,145 -21,72 -64,139 -43,67 -103,117 -60,50 -144,82 -84,32 -181,30 -151,0 -276,-81 19,2 43,2 126,0 224,-77 -59,-1 -105,-36 -46,-35 -64,-89 19,3 34,3 24,0 48,-6 -63,-13 -104,-62 -41,-49 -41,-115 l 0,-2 q 38,21 82,23 -37,-25 -59,-64 -22,-39 -22,-86 0,-49 25,-91 68,83 164,133 96,50 208,55 -5,-21 -5,-41 0,-75 53,-127 53,-52 127,-53 79,0 132,57 61,-12 115,-44 -21,64 -80,100 52,-6 104,-28 z" />
50-
</g>
51-
</svg>
23+
{{svg-jar "twitter-logo"}}
5224
</a>
5325
<a href="https://github.com/emberjs/ember.js" title="GitHub">
54-
<svg
55-
xmlns:dc="http://purl.org/dc/elements/1.1/"
56-
xmlns:cc="http://creativecommons.org/ns#"
57-
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
58-
xmlns:svg="http://www.w3.org/2000/svg"
59-
xmlns="http://www.w3.org/2000/svg"
60-
version="1.1"
61-
id="svg4169"
62-
viewBox="0 0 1000 1000">
63-
<defs
64-
id="defs4171" />
65-
<metadata
66-
id="metadata4174">
67-
<rdf:RDF>
68-
<cc:Work
69-
rdf:about="">
70-
<dc:format>image/svg+xml</dc:format>
71-
<dc:type
72-
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
73-
<dc:title></dc:title>
74-
</cc:Work>
75-
</rdf:RDF>
76-
</metadata>
77-
<g
78-
id="layer1">
79-
<path
80-
id="path4717"
81-
d="m 392,643 q 0,22 -7,45 -7,23 -24,43 -17,20 -40,19 -23,-1 -41,-19 -18,-18 -24,-43 -6,-25 -7,-45 -1,-20 7,-46 8,-26 24,-43 16,-17 41,-19 25,-2 40,19 15,21 24,43 9,22 7,46 z m 357,0 q 0,22 -7,45 -7,23 -24,43 -17,20 -40,19 -23,-1 -41,-19 -18,-18 -24,-43 -6,-25 -7,-45 -1,-20 7,-46 8,-26 24,-43 16,-17 41,-19 25,-2 40,19 15,21 24,43 9,22 7,46 z m 90,0 q 0,-67 -39,-114 -39,-47 -104,-47 -23,0 -109,12 -40,6 -88,6 -48,0 -87,-6 -85,-12 -109,-12 -66,0 -104,47 -38,47 -39,114 0,49 18,85 18,36 45,58 27,22 68,33 41,11 78,17 37,6 83,4 l 94,0 q 46,0 83,-4 37,-4 78,-17 41,-13 69,-33 28,-20 45,-58 17,-38 18,-85 z m 125,-99 q 0,116 -34,185 -22,43 -59,74 -37,31 -79,48 -42,17 -95,27 -53,10 -96,12 -43,2 -93,3 -43,0 -79,-2 -36,-2 -82,-7 -46,-5 -85,-17 Q 223,855 185,838 147,821 118,793 89,765 70,729 35,660 35,544 35,412 111,323 96,278 96,228 q 0,-64 28,-121 61,0 106,22 45,22 106,69 82,-20 172,-20 83,0 157,18 58,-46 104,-67 46,-21 105,-22 29,57 29,121 0,49 -15,94 76,89 76,222 z" />
82-
</g>
83-
</svg>
26+
{{svg-jar "github-logo"}}
27+
</a>
28+
<a href="https://ember-community-slackin.herokuapp.com/" title="Slack">
29+
{{svg-jar "slack-logo"}}
8430
</a>
8531
</div>
8632
</div>
@@ -89,13 +35,13 @@
8935
<div class="contributor">
9036
<p>Hosted by:</p>
9137
<a href="https://www.heroku.com/emberjs">
92-
<svg class="logo-heroku" alt="heroku logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 72.5 80.5"><defs><style>.cls-1{fill:#999;}</style></defs><g id="black"><path class="cls-1" d="M65.05.25H7.45a7.2,7.2,0,0,0-7.2,7.2v65.6a7.2,7.2,0,0,0,7.2,7.2h57.6a7.2,7.2,0,0,0,7.2-7.2V7.45A7.2,7.2,0,0,0,65.05.25Zm-46.8,68v-16l9,8Zm28,0V44.36c0-1.87-.94-4.11-5-4.11-8.13,0-17.26,4.09-17.35,4.13l-5.65,2.56V12.25h8V35a50.63,50.63,0,0,1,15-2.71c4.94,0,7.9,1.94,9.52,3.57a12.48,12.48,0,0,1,3.48,8.43v24Zm2-43h-8a31.1,31.1,0,0,0,6-13h8A23.44,23.44,0,0,1,48.25,25.25Z"/></g></svg>
38+
{{svg-jar "heroku-logo" class="heroku-logo"}}
9339
</a>
9440
</div>
9541
<div class="contributor">
9642
<p>CDN provided by:</p>
9743
<a href="https://www.fastly.com">
98-
<svg class="logo-fastly" alt="fastly logo" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1626 640"><defs><style>.cls-1{fill:#999;}</style></defs><polygon class="cls-1" points="1105.2 71.3 1105.2 492.4 1231.6 492.4 1231.6 428.1 1189.8 428.1 1189.8 7.2 1105.1 7.2 1105.2 71.3"/><path class="cls-1" d="M6.9,428.1h43V224.9H6.9V169l43-7.1V105.3c0-68.5,14.9-98.2,102.3-98.2,18.9,0,41.2,2.8,60.8,6.3L201.4,82.3c-13.3-2.1-19.8-2.5-28.2-2.5-30.8,0-38.6,3.1-38.6,33.1V162h63.9v62.9H134.6V428h42.5v64.3H6.9Z"/><path class="cls-1" d="M1062.1,407.7c-13.2,2.8-24.8,2.5-33.2,2.7-34.8.9-31.8-10.6-31.8-43.5v-142h66.3V162H997V7.2H912.3V384.5c0,74.1,18.3,107.9,98,107.9,18.9,0,44.8-4.9,64.4-9Z"/><path class="cls-1" d="M1588.2,428.4a32,32,0,1,1-32.1,32,31.95,31.95,0,0,1,32.1-32m0,58.9a26.75,26.75,0,1,0,0-53.5,26.75,26.75,0,0,0,0,53.5m5.9-11.2-6.5-9.5h-4.5v9.5h-7.2V444.7H1589c7.8,0,12.6,3.9,12.6,10.9,0,5.1-2.6,8.6-6.6,9.8l7.8,10.8h-8.7Zm-10.9-15.8h5.7c3.3,0,5.5-1.3,5.5-4.7s-2.2-4.6-5.3-4.6h-5.9v9.3Z"/><path class="cls-1" d="M806.6,224.8V213.5c-25.6-4.7-51.1-4.7-64.9-4.7-39.4,0-44.2,20.9-44.2,32.2,0,16,5.5,24.7,48.2,34,62.4,14,125.1,28.6,125.1,106,0,73.4-37.8,111.3-117.3,111.3-53.2,0-104.8-11.4-144.2-21.4V407.7h64.1v11.2c27.6,5.3,56.5,4.8,71.6,4.8,42,0,48.8-22.6,48.8-34.6,0-16.7-12.1-24.7-51.5-32.7-74.2-12.7-133.2-38-133.2-113.5,0-71.4,47.7-99.4,127.3-99.4,53.9,0,94.8,8.4,134.2,18.4v62.8h-64Z"/><path class="cls-1" d="M416.9,280.4l-6.4-6.4-32.7,28.5a15.53,15.53,0,0,0-5.3-.9,16.4,16.4,0,1,0,16,16.4,19.32,19.32,0,0,0-.7-4.9Z"/><path class="cls-1" d="M546.6,407.7l-.1-263.6H461.8v24.7A173.6,173.6,0,0,0,404.2,147h.5V117.8H415V96.3H329.7v21.5H340V147h.6A174.1,174.1,0,1,0,462,467.4l15.3,24.9h89.5V407.6H546.6Zm-169.1-.1v-10H367.4v9.9a89.59,89.59,0,0,1-84.2-84.7h10.1V312.7h-10a89.55,89.55,0,0,1,84.1-84v10h10.1v-10a89.67,89.67,0,0,1,84.4,81.5v2.9H451.7v10.1h10.2V326A89.6,89.6,0,0,1,377.5,407.6Z"/><path class="cls-1" d="M1446,162h174.7v62.9h-41.8L1471.8,488.5c-30.7,74-81.1,143.7-157.9,143.7-18.9,0-44-2.1-61.5-6.3l7.7-76.9a218.08,218.08,0,0,0,33.5,3.5c35.6,0,75.8-22.1,88.4-60.5L1273.4,224.9h-41.8V162h174.8v62.9h-41.7l61.5,151.3h0l61.5-151.3H1446Z"/></svg>
44+
{{svg-jar "fastly-logo" class="fastly-logo"}}
9945
</a>
10046
</div>
10147
</div>

ember-cli-build.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ module.exports = function(defaults) {
99
'importBootstrapFont': false,
1010
'importBootstrapCSS': false
1111
},
12+
svgJar: {
13+
sourceDirs: [
14+
'tests/dummy/public/assets/images/icons'
15+
]
16+
}
1217
});
1318

1419
/*

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"ember-cli-babel": "^6.6.0",
2727
"ember-cli-htmlbars": "^2.0.1",
2828
"ember-cli-sass": "^7.1.4",
29+
"ember-svg-jar": "^1.1.1",
2930
"ember-truth-helpers": "^2.0.0"
3031
},
3132
"devDependencies": {
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 31 additions & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 31 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)