-
Notifications
You must be signed in to change notification settings - Fork 252
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
Add HeroBanner #1125
Add HeroBanner #1125
Conversation
} | ||
|
||
&__content { | ||
margin: auto 0; |
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 you might be able to get rid of this if you are going to make the herobanner take up the entire screen width. And underneath &__content
somewhere after around line 87
you can add the following flex properties:
align-items: center;
justify-contenter: center;
And then doing a few changes around like so:
Here's what I have in my local, after checking out your fork and branch, and testing it out.
sry for the screenshots, but the git GUI that I use doesn't let me copy and paste lol.....
src/client/components/Utils/Affix.js
Outdated
this.baseTopPosition = this.relativeContainer.getBoundingClientRect().top + this.lastScroll; | ||
|
||
if (this.relativeContainer.parentElement) { | ||
this.mo = new MutationObserver(() => { |
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 have never used MutationObserver
before but I trust that this works 🤣
import { getIsAuthenticated, getIsLoaded, getIsBannerClosed } from '../reducers'; | ||
import { closeBanner } from '../app/appActions'; | ||
|
||
export default connect( |
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 really like this idea, having a Container
component that is a wrapper for the main component, and it handles all the state properties 👍
@@ -24,6 +24,7 @@ | |||
float: left; | |||
display: none; | |||
width: @left-width; | |||
min-height: 1px; |
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.
won't need this anymore if banner is full width of the screen
had some small comments, but once @bonustrack approves it, its fine with me |
Can we have bigger buttons? And can we center the content on small screen? |
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.
👍
Fixes #999.
Changes: