-
-
Notifications
You must be signed in to change notification settings - Fork 86
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
Conversation
I believe we would want to save this particular decoration for the home page (which is okay to do). |
@mansona please refer to the background shape work I already shipped, I would want us to make sure we are being consistent with ourselves. |
@MelSumner where is the work "already shipped"? Is it in the Navbar PR? |
fce8ec0
to
ea304fa
Compare
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 |
There was a problem hiding this 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. 👍
addon/styles/background-shapes.css
Outdated
background-size: contain; | ||
} | ||
|
||
.swipe-bottom { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this 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.
addon/styles/background-shapes.css
Outdated
background-size: contain; | ||
} | ||
|
||
.swipe-bottom { |
There was a problem hiding this comment.
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.
d2ad96b
to
bd584d9
Compare
bd584d9
to
b92b9b2
Compare
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 👍 |
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