forked from mozilla/testpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
componentize layout
- Loading branch information
Showing
55 changed files
with
698 additions
and
850 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
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,22 @@ | ||
import React, { PropTypes } from 'react'; | ||
import classnames from 'classnames'; | ||
|
||
const Banner = ({ children, condensed = false, background = false }) => { | ||
return ( | ||
<div className={classnames('banner', { | ||
'banner--condensed': condensed, | ||
'banner--expanded': !condensed, | ||
'banner--background': background | ||
})}> | ||
{ children } | ||
</div> | ||
); | ||
}; | ||
|
||
export default Banner; | ||
|
||
Banner.propTypes = { | ||
background: PropTypes.bool, | ||
condensed: PropTypes.bool, | ||
dataL10nId: PropTypes.string | ||
}; |
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,19 @@ | ||
import React, { PropTypes } from 'react'; | ||
import classnames from 'classnames'; | ||
|
||
|
||
const Copter = ({ small = false, animation = null }) => { | ||
return ( | ||
<div className={classnames('copter', { 'copter--small': small })}> | ||
<div className={classnames('copter__inner', animation)} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Copter; | ||
|
||
Copter.PropTypes = { | ||
small: PropTypes.boolean, | ||
animation: PropTypes.string | ||
}; | ||
|
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
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,19 @@ | ||
import React, { PropTypes } from 'react'; | ||
import classnames from 'classnames'; | ||
|
||
const LayoutWrapper = ({ children, flexModifier, helperClass = null }) => { | ||
if (flexModifier) flexModifier = `layout-wrapper--${flexModifier}`; | ||
|
||
return ( | ||
<div className={classnames('layout-wrapper', flexModifier, helperClass)} > | ||
{ children } | ||
</div> | ||
); | ||
}; | ||
|
||
export default LayoutWrapper; | ||
|
||
LayoutWrapper.PropTypes = { | ||
flexModifier: PropTypes.string, | ||
helperClass: PropTypes.string | ||
}; |
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import React from 'react'; | ||
|
||
export default function Loading() { | ||
const Loading = () => { | ||
return ( | ||
<div className="loader"> | ||
<div className="loader-bar"></div> | ||
<div className="loader-bar"></div> | ||
<div className="loader-bar"></div> | ||
<div className="loader-bar"></div> | ||
<div className="loading"> | ||
<div className="loading-bar"></div> | ||
<div className="loading-bar"></div> | ||
<div className="loading-bar"></div> | ||
<div className="loading-bar"></div> | ||
</div> | ||
); | ||
} | ||
}; | ||
|
||
export default Loading; |
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
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
Oops, something went wrong.