Skip to content

Landing page improvements and general fixes #526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from

Conversation

mansona
Copy link
Member

@mansona mansona commented Jan 17, 2020

The commits on this one are pretty atomic so you can see exactly what is done there 👍

This is the last PR to make the website pretty much feature complete 🎉 😱 The remainder of the items in https://github.com/orgs/ember-learn/projects/16 are either performance related (and could possibly happen after launch) or are waiting for content of some kind

Fixes #459
Fixes #520
Fixes #368

I've also updated the styleguide so it fixes a bunch of SVG issues

Fixes ember-learn/ember-styleguide#266
Fixes ember-learn/ember-styleguide#268

@mansona mansona requested a review from a team January 17, 2020 17:10
@mansona mansona force-pushed the landing-page-improvements branch from 702093e to 1657049 Compare January 17, 2020 17:17
@ember-learn ember-learn deleted a comment from github-actions bot Jan 17, 2020
@josemarluedke
Copy link
Contributor

josemarluedke commented Jan 17, 2020

Looking good. I just saw these two issues in mobile:

Screen Shot 2020-01-17 at 10 01 19 AM

Hover state on the tabs should also make it more visible that it's clickable.

@mansona
Copy link
Member Author

mansona commented Jan 17, 2020

@josemarluedke thanks a million for checking this out! I'll get that fix in right away 🎉

@mansona mansona force-pushed the landing-page-improvements branch from bc59a96 to 652da3d Compare January 17, 2020 23:28
@github-actions
Copy link

Files that got Bigger 🚨:

File raw gzip
ember-website.js +11 kB +2.1 kB
ember-website.css +143 B +60 B
vendor.css +135 B +18 B

Files that got Smaller 🎉:

File raw gzip
vendor.js -29.6 kB -3.07 kB

Files that stayed the same size 🤷‍:

File raw gzip
ember-website-fastboot.js 0 B 0 B

@ember-learn ember-learn deleted a comment from github-actions bot Jan 17, 2020
@ember-learn ember-learn deleted a comment from github-actions bot Jan 17, 2020
@mansona
Copy link
Member Author

mansona commented Jan 17, 2020

@josemarluedke those are fixed now 👍 thanks again for noticing them!

class="addon-tabs--tab {{if (eq this.currentTab 2) "active-tab"}}"
onclick={{action (mut this.currentTab) 2}}
>
Percy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should not include percy because it requires payment. There is another open source addon that does visual regression testing if you want to find and use that.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They do have a quite generous free plan, though: https://percy.io/pricing . Up to 10 team members and 5000 snapshots/month.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I avoided making any decision on this point because actually it's covered by #521

I'm splitting this into it's own PR so we can decide if that PR will be blocked until #521 is finished and the content included in the same PR, or if it can be a follow-on PR 👍

@@ -0,0 +1,4 @@
<div class="ecosystem-icon">
<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>
<img class="logo {{if @rotate "rotate"}}" src="/images/home/logos/{{@icon}}.svg" alt="">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the SVG doing in this case?

the image needs valid alt text. Please turn on ember-template-lint if it is not already turned on- code shouldn't be making it this far with these type of basic errors.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the SVG is the background, it's an inline SVG so that we can pass the background fill colour in via the {{@bg}} attribute

There is an alt="" attribute so that's why it's not causing an error with the template lint. I thought that this is what you're supposed to do when something is presentational 😞I'm sorry for the mistake, I'll try to do better in future. I have made the alt be the same as the icon now.

Also I've made the changes over in this other PR because I'm splitting this one: #529

<a href="https://blog.emberjs.com/2019/12/20/octane-is-here.html">Read the announcement</a>
</h3>
</EsCard>
<EsCard card-link>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the "card-link" part mean?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is documented in https://deploy-preview-145--ember-styleguide.netlify.com/components/card/ and is a way to enable the "stretch link" functionality described in https://inclusive-components.design/cards/

Copy link
Member

@MelSumner MelSumner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is too big. It might be better to break it up into smaller parts, especially considering that there are some code groups that are incorrect/incomplete.

Thank you for working on this! 👍

@mansona
Copy link
Member Author

mansona commented Jan 19, 2020

I'm sorry for the overly large PR 😞I got a bit excited because this was the "last PR" that made the site feature complete for launch. I'm sorry for wasting your time with this one and I'll try to do better in future 👍

The PR has been split up into: #529 #530 #532 #531 #533

@mansona mansona closed this Jan 19, 2020
@ijlee2 ijlee2 deleted the landing-page-improvements branch October 16, 2020 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants