Skip to content

Commit 806c6de

Browse files
authored
Merge pull request #1107 from NullVoxPopuli/uwu
Add secret uwu/kawaii logo
2 parents 57d8dc4 + 01c248a commit 806c6de

File tree

8 files changed

+48
-0
lines changed

8 files changed

+48
-0
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore-scripts=false

app/components/community-trends.hbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{{! optional content, for meme / participating in the broader JS ecosystem, maintaining relevance }}
2+
{{#if (qp 'uwu')}}
3+
{{!-- lint incorrectly says this is already called out by a screen reader --}}
4+
{{!-- template-lint-disable require-valid-alt-text --}}
5+
<img
6+
class="uwu-logo"
7+
alt="ember uwu / kawaii logo (from internet trend / meme)"
8+
src="/images/ember-uwu-meme.png">
9+
{{/if}}

app/controllers/application.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import headerLinks from 'ember-styleguide/constants/links';
44
import replaceLinks from 'ember-website/utils/replace-links';
55

66
export default class ApplicationController extends Controller {
7+
queryParams = ['uwu'];
78
links = replaceLinks(headerLinks);
89
infoLinks = replaceLinks(infoLinks);
910
}

app/helpers/qp.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Helper from '@ember/component/helper';
2+
import { inject as service } from '@ember/service';
3+
4+
export default class QP extends Helper {
5+
@service router;
6+
7+
compute([qp]) {
8+
return this.router.currentRoute?.queryParams?.[qp];
9+
}
10+
}

app/styles/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
@import "components/addon-tabs.css";
22
@import "components/brand-logos.css";
3+
@import "components/community-trends.css";
34
@import "components/ecosystem-icons.css";
45
@import "components/cta-emberconf.css";
56
@import "components/faqs.css";
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.uwu-logo {
2+
position: fixed;
3+
right: 50%;
4+
transform: translateX(800px);
5+
top: -1rem;
6+
max-width: 600px;
7+
}
8+
9+
@media (max-width: 1500px) {
10+
.uwu-logo {
11+
transform: none;
12+
right: 0;
13+
max-width: 400px;
14+
}
15+
}
16+
17+
@media (max-width: 1000px) {
18+
.uwu-logo {
19+
transform: none;
20+
right: unset;
21+
left: 0;
22+
max-width: 200px;
23+
}
24+
}
25+

app/templates/index.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<a href="https://guides.emberjs.com/release/tutorial/" class="es-button" title="New to building websites, or just want a more in-depth introduction to Ember? The tutorial is for you!">Read the Tutorial</a>
99
</div>
1010
</div>
11+
<CommunityTrends />
1112
</section>
1213

1314
<section aria-labelledby="section-intro" class="bg-light">

public/images/ember-uwu-meme.png

139 KB
Loading

0 commit comments

Comments
 (0)