-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
feat(ui): update oss login page #17291
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,38 @@ | ||
.cf-panel.signin-panel { | ||
.signin-page { | ||
.cf-funnel-page--content { | ||
display: flex; | ||
justify-content: center; | ||
height: 100%; | ||
} | ||
|
||
.cf-dapper-scrollbars--content { | ||
display: flex !important; | ||
align-items: center; | ||
} | ||
} | ||
|
||
.cf-panel.signin-page--panel { | ||
width: 300px; | ||
|
||
.cf-panel--body { | ||
padding: $ix-marg-d; | ||
text-align: center; | ||
} | ||
} | ||
} | ||
|
||
.signin-page--logo { | ||
width: 70%; | ||
height: auto; | ||
margin-top: 1em; | ||
margin-bottom: 3em; | ||
} | ||
|
||
.signin-page--cubo { | ||
background-image: url('../../assets/images/auth-logo.svg'); | ||
background-size: 100% 100%; | ||
background-position: center center; | ||
background-repeat: no-repeat; | ||
width: 100px; | ||
height: 100px; | ||
display: inline-block; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ninor nit: wanna alphabetize these selectors? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can do that, though makes me think we could benefit from more thorough CSS formatting. I think prettier supports that? Maybe a nice little tooling improvement There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @alexpaxton deffo. I usually just say "alphabetize absent any other organizing scheme. would be rad to have one in place" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,14 @@ import {dismissAllNotifications} from 'src/shared/actions/notifications' | |
|
||
// Components | ||
import {ErrorHandling} from 'src/shared/decorators/errors' | ||
import SplashPage from 'src/shared/components/splash_page/SplashPage' | ||
import SigninForm from 'src/onboarding/components/SigninForm' | ||
import { | ||
SpinnerContainer, | ||
TechnoSpinner, | ||
Panel, | ||
AlignItems, | ||
FunnelPage, | ||
InfluxDBCloudLogo, | ||
} from '@influxdata/clockface' | ||
import {RemoteDataState} from 'src/types' | ||
import VersionInfo from 'src/shared/components/VersionInfo' | ||
|
@@ -67,18 +68,18 @@ class SigninPage extends PureComponent<Props, State> { | |
loading={this.state.status} | ||
spinnerComponent={<TechnoSpinner />} | ||
> | ||
<SplashPage> | ||
<Panel className="signin-panel"> | ||
<FunnelPage className="signin-page"> | ||
<Panel className="signin-page--panel"> | ||
<Panel.Body alignItems={AlignItems.Center}> | ||
<SplashPage.Logo /> | ||
<SplashPage.Header title="InfluxData" /> | ||
<div className="signin-page--cubo" /> | ||
<InfluxDBCloudLogo cloud={false} className="signin-page--logo" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. that prop controls whether the word "Cloud" renders in the image. https://influxdata.github.io/clockface/?path=/story/graphics-brand-logos--influxdb-cloud In this instance I left it |
||
<SigninForm /> | ||
</Panel.Body> | ||
<Panel.Footer> | ||
<VersionInfo /> | ||
</Panel.Footer> | ||
</Panel> | ||
</SplashPage> | ||
</FunnelPage> | ||
</SpinnerContainer> | ||
) | ||
} | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
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.
is this
!important
necessary?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.
Unfortunately yes, in clockface there's an
!important
present to override styles from a library, so the madness trickles down