Skip to content

implementing basic background shapes #204

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

Merged
merged 1 commit into from
Sep 3, 2019

Conversation

mansona
Copy link
Member

@mansona mansona commented Aug 19, 2019

This is a first pass on the generic background shapes for the new redesign, I was inspired to work on it this evening but I would much prefer that it was reviewed by @ghislaineguerin and/or @pichfl before we merge it.

I will add a screenshot in a bit but you can see the docs page that I added to the field-guide

@MelSumner
Copy link
Member

I believe we would want to save this particular decoration for the home page (which is okay to do).

@MelSumner
Copy link
Member

@mansona please refer to the background shape work I already shipped, I would want us to make sure we are being consistent with ourselves.

@mansona
Copy link
Member Author

mansona commented Aug 20, 2019

@MelSumner where is the work "already shipped"? Is it in the Navbar PR?

@mansona mansona force-pushed the background-shapes branch from fce8ec0 to ea304fa Compare August 20, 2019 14:25
@mansona
Copy link
Member Author

mansona commented Aug 20, 2019

Also if anyone is interested in seeing what this actually looks like on the landing page you can check out https://deploy-preview-387--ember-website.netlify.com

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.

Thanks for working on this- the background parallelograms in the header hero look cool!

We can use CSS for the diagonal backgrounds, which would be ideal. 👍

background-size: contain;
}

.swipe-bottom {
Copy link
Member

Choose a reason for hiding this comment

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

We can use css instead of using an .svg-

  • use a linear-gradient for the background-image
  • set the transform skew
  • set the transform origin

Copy link
Contributor

Choose a reason for hiding this comment

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

The thing with CSS gradients is the missing anti-alias for sharp edges, I'm not sure if I would go that direction, especially when the svgs in question can be further compressed.

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 didn't know about that @pichfl, you learn something new every day! I was thinking about it a little bit and it makes sense (I think) to use the same technology for all background shapes especially if there are limitations to doing it in CSS 🤔

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="178px" height="125px" viewBox="0 0 178 125" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
Copy link
Member

Choose a reason for hiding this comment

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

I think it would be okay to add role="presentation" to mark this as decorative.

Copy link
Contributor

Choose a reason for hiding this comment

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

@MelSumner this is not required as the svgs are used as CSS backgrounds anyway.

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 was going to ask about this too, is this needed at all since they are in the background?

Copy link
Contributor

@pichfl pichfl left a comment

Choose a reason for hiding this comment

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

All svg images need to be compressed. The output from Sketch is way too verbose for images that are pure decoration. I do recommend svgo over other tools, even if it might be a little aggressive, it should provide good results.

background-size: contain;
}

.swipe-bottom {
Copy link
Contributor

Choose a reason for hiding this comment

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

The thing with CSS gradients is the missing anti-alias for sharp edges, I'm not sure if I would go that direction, especially when the svgs in question can be further compressed.

@mansona mansona force-pushed the background-shapes branch 4 times, most recently from d2ad96b to bd584d9 Compare August 21, 2019 20:05
@mansona mansona force-pushed the background-shapes branch from bd584d9 to b92b9b2 Compare August 21, 2019 20:46
@mansona mansona requested a review from MelSumner August 21, 2019 20:47
@mansona
Copy link
Member Author

mansona commented Aug 21, 2019

I think I have covered all of your feedback @MelSumner and @pichfl 🤔

Let me know if there is anything else before we can get this merged 👍

@MelSumner MelSumner merged commit 22169d3 into website-redesign-rfc Sep 3, 2019
@delete-merged-branch delete-merged-branch bot deleted the background-shapes branch September 3, 2019 15:13
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