Last active
June 28, 2017 08:14
-
-
Save JohnRandom/3222188e42db14c76c0e02bc9fa1566b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
.HeaderLayout { //Only defines dimensions and positions (structure) | |
width: 100vw; | |
height: 250px; | |
position: ...; | |
} | |
.EspacenetHeader { //Only defines color/gradients (texture) | |
background-color: grey; | |
gradient: ...; | |
:hover { | |
transition: ...; | |
} | |
} | |
.ScrollingResizeLayout-header { //Only defines behaviour (structure) | |
... | |
} | |
.ScrollingResizeLayout-content { //Only defines behaviour (structure) | |
... | |
} | |
.SideBarLayout-left { //Only defines behaviour (structure) | |
float: left; | |
} | |
.SidebarLayout-right { //Only defines behaviour (structure) | |
float: right; | |
} |
This file contains hidden or 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
<ApplicationView> | |
<HeaderLayout> | |
<ScrollingResizeLayout role="header"> | |
<EspacenetHeader /> | |
</ScrollingResizeLayout> | |
</HeaderLayout> | |
<PageContentLayout> | |
<ScrollingResizeLayout role="content"> | |
<SideBarLayout orientation="right"> | |
<SideBarContent /> | |
</SideBarLayout> | |
<SearchView /> // <--- "/" <EditorialView /> | "/help" = <HelpView /> | |
<ScrollingResizeLayout /> | |
</PageContentLayout> | |
<FooterLayout> | |
<ScrollingResizeLayout role="footer"> | |
<EspacenetFooter /> | |
</ScrollingResizeLayout> | |
</FooterLayout> | |
<ErrorsList /> | |
</ApplicationView> |
This file contains hidden or 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
class HeaderLayout extends React.Component { | |
render() { | |
return ( | |
<div className={styles.HeaderLayout}> | |
{ this.props.children } | |
</div> | |
); | |
} | |
} |
This file contains hidden or 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
class ScrollingResizeComponent extends React.Component { | |
render() { | |
return ( | |
<div className={styles[`ScrollingResizeComponent-${this.props.role}`]}> | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment