Skip to content

Commit

Permalink
feat(ui): update oss login page (#17291)
Browse files Browse the repository at this point in the history
* feat(ui): update design of oss login page

* chore(ui): remove splash page components

* chore(ui): update changelog

* chore(ui): sort css attributes alphabetically
  • Loading branch information
alexpaxton authored Mar 16, 2020
1 parent 386098d commit eda7e05
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 161 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

1. [17240](https://github.com/influxdata/influxdb/pull/17240): NodeJS logo displays properly in Firefox

### UI Improvements

1. [17291](https://github.com/influxdata/influxdb/pull/17291): Redesign OSS Login page

## v2.0.0-beta.6 [2020-03-12]

### Features
Expand Down
34 changes: 32 additions & 2 deletions ui/src/onboarding/components/SigninForm.scss
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;
height: 100%;
justify-content: center;
}

.cf-dapper-scrollbars--content {
align-items: center;
display: flex !important;
}
}

.cf-panel.signin-page--panel {
width: 300px;

.cf-panel--body {
padding: $ix-marg-d;
text-align: center;
}
}
}

.signin-page--logo {
height: auto;
margin-bottom: 3em;
margin-top: 1em;
width: 70%;
}

.signin-page--cubo {
background-image: url('../../assets/images/auth-logo.svg');
background-position: center center;
background-repeat: no-repeat;
background-size: 100% 100%;
display: inline-block;
height: 100px;
width: 100px;
}
13 changes: 7 additions & 6 deletions ui/src/onboarding/containers/SigninPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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" />
<SigninForm />
</Panel.Body>
<Panel.Footer>
<VersionInfo />
</Panel.Footer>
</Panel>
</SplashPage>
</FunnelPage>
</SpinnerContainer>
)
}
Expand Down
11 changes: 0 additions & 11 deletions ui/src/shared/components/splash_page/SplashHeader.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions ui/src/shared/components/splash_page/SplashLogo.tsx

This file was deleted.

91 changes: 0 additions & 91 deletions ui/src/shared/components/splash_page/SplashPage.scss

This file was deleted.

34 changes: 0 additions & 34 deletions ui/src/shared/components/splash_page/SplashPage.tsx

This file was deleted.

11 changes: 0 additions & 11 deletions ui/src/shared/components/splash_page/SplashPanel.tsx

This file was deleted.

1 change: 0 additions & 1 deletion ui/src/style/chronograf.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
@import 'src/shared/components/threesizer/Threesizer.scss';
@import 'src/shared/components/graph_tips/GraphTips.scss';
@import 'src/shared/components/cells/Dashboards.scss';
@import 'src/shared/components/splash_page/SplashPage.scss';
@import 'src/shared/components/code_mirror/CodeMirror.scss';
@import 'src/shared/components/code_mirror/CodeMirrorTheme.scss';
@import 'src/dashboards/components/dashboard_empty/DashboardEmpty.scss';
Expand Down

0 comments on commit eda7e05

Please sign in to comment.