Skip to content

Commit 9cbebe8

Browse files
authored
Merge pull request #529 from ember-learn/ecosystem-icons-component
Ecosystem icons component
2 parents a66fbf7 + ff394a0 commit 9cbebe8

File tree

13 files changed

+68
-187
lines changed

13 files changed

+68
-187
lines changed

app/styles/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import "components/brand-logos.css";
2+
@import "components/ecosystem-icons.css";
23
@import "components/faqs.css";
34
@import "components/homepage-image-grid.css";
45
@import "components/release-timeline.css";
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.ecosystem-icons {
2+
display: grid;
3+
grid-template-columns: 1fr 1fr;
4+
grid-gap: 30px;
5+
width: 190px;
6+
margin: auto;
7+
}
8+
9+
@media (max-width: 1007px) {
10+
.ecosystem-icons {
11+
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
12+
width: inherit;
13+
}
14+
15+
.ecosystem-icon {
16+
margin: auto;
17+
}
18+
}
19+
20+
.ecosystem-icon {
21+
position: relative;
22+
width: 130px;
23+
height: 130px;
24+
}
25+
26+
.ecosystem-icon .logo {
27+
bottom: 20px;
28+
right: 10px;
29+
position: absolute;
30+
}
31+
.ecosystem-icon .logo.rotate {
32+
transform: rotate(-9deg);
33+
}
34+
35+
.ecosystem-icon .background {
36+
position: absolute;
37+
left: 0;
38+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<div class="ecosystem-icon">
2+
<svg class="background" xmlns="http://www.w3.org/2000/svg" width="133" height="130"><defs/><path fill={{@bg}} fill-rule="nonzero" d="M.91 27.535l15.047 93.176c.878 5.44 5.993 9.145 11.436 8.283l96.19-15.233c5.45-.863 9.172-5.98 8.314-11.43L117.264 9.301c-.857-5.451-5.969-9.178-11.42-8.326L9.238 16.06a10 10 0 00-8.33 11.475z"/></svg>
3+
<img class="logo {{if @rotate "rotate"}}" src="/images/home/logos/{{@icon}}.svg" alt={{@icon}}>
4+
</div>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<div class="ecosystem-icons">
2+
<EcosystemIcon @icon="babel" @bg="#323330"/>
3+
<EcosystemIcon @icon="js" @bg="#FAE125" @rotate={{true}} />
4+
<EcosystemIcon @icon="prettier" @bg="#FFFFFF" />
5+
<EcosystemIcon @icon="code" @bg="#272827" @rotate={{true}} />
6+
<EcosystemIcon @icon="ts" @bg="#0075C7" @rotate={{true}} />
7+
<EcosystemIcon @icon="npm" @bg="#c12127" @rotate={{true}}/>
8+
</div>

app/templates/index.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<section aria-labelledby="section-ecosystem" class="bg-dark bg-shape-swipe-bottom">
105105
<div class="container layout">
106106
<div class="lg:col-3 lg:start-4 text-center">
107-
<img src="/images/ecosystem.svg" alt="ember ecosystem">
107+
<EcosystemIcons />
108108
</div>
109109

110110
<div class="lg:col-3">

public/images/ecosystem.svg

Lines changed: 0 additions & 186 deletions
This file was deleted.

public/images/home/logos/babel.svg

Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

public/images/home/logos/code.svg

Lines changed: 1 addition & 0 deletions
Loading

public/images/home/logos/js.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)