forked from ansible/awx
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from ansible/nav
wip - one way of approaching nav
- Loading branch information
Showing
32 changed files
with
4,290 additions
and
2,339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
.pf-l-page__header { | ||
--pf-l-page__header--MinHeight: 0px; | ||
display: flex; | ||
align-items: center; | ||
height: 60px; | ||
background-color: #030303; | ||
|
||
} | ||
|
||
.pf-l-page__header-brand { | ||
--pf-l-page__header-brand--PaddingBottom: 0px; | ||
} | ||
|
||
.pf-l-page__main-section { | ||
--pf-l-page__main-section--PaddingTop: 11px; | ||
--pf-l-page__main-section--PaddingLeft: 11px; | ||
} | ||
|
||
.pf-c-nav__section + .pf-c-nav__section { | ||
--pf-c-nav__section--MarginTop: 16px; | ||
} | ||
|
||
.pf-l-page__header-brand-toggle { | ||
padding-bottom: 4px; | ||
padding-right: 0px; | ||
} | ||
|
||
.pf-l-page__header-brand-link { | ||
transform: scale(0.75, 0.75); | ||
} | ||
|
||
.pf-l-page__sidebar{ | ||
--pf-l-page__sidebar--Width--lg: 200px; | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React, { Component } from 'react'; | ||
import { | ||
Card, | ||
CardHeader, | ||
CardBody, | ||
} from '@patternfly/react-core'; | ||
|
||
class OrganizationCard extends Component { | ||
static title = 'Organization Card'; | ||
|
||
constructor (props) { | ||
super(props); | ||
|
||
const { name } = props.organization; | ||
|
||
this.state = { name }; | ||
} | ||
|
||
render () { | ||
const { name } = this.state; | ||
|
||
return ( | ||
<Card> | ||
<CardHeader>{name}</CardHeader> | ||
<CardBody>Card Body</CardBody> | ||
</Card> | ||
); | ||
} | ||
} | ||
|
||
export default OrganizationCard; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import React, { Component } from 'react'; | ||
import { withRouter } from 'react-router-dom'; | ||
import { Brand } from '@patternfly/react-core'; | ||
|
||
import TowerLogoHeader from './tower-logo-header.svg'; | ||
import TowerLogoHeaderHover from './tower-logo-header-hover.svg'; | ||
|
||
class TowerLogo extends Component { | ||
constructor (props) { | ||
super(props); | ||
|
||
this.state = { hover: false }; | ||
} | ||
|
||
onClick = () => { | ||
const { history } = this.props; | ||
|
||
history.push('/'); | ||
}; | ||
|
||
onHover = () => { | ||
const { hover } = this.state; | ||
|
||
this.setState({ hover: !hover }); | ||
}; | ||
|
||
render () { | ||
const { hover } = this.state; | ||
|
||
let src = TowerLogoHeader; | ||
|
||
if (hover) { | ||
src = TowerLogoHeaderHover; | ||
} | ||
|
||
return ( | ||
<Brand | ||
src={src} | ||
alt="Tower Brand Image" | ||
onMouseOut={this.onHover} | ||
onMouseOver={this.onHover} | ||
onBlur={this.onHover} | ||
onFocus={this.onHover} | ||
onClick={this.onClick} | ||
/> | ||
); | ||
} | ||
} | ||
|
||
export default withRouter(TowerLogo); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.