Skip to content

Instantly share code, notes, and snippets.

@JohnRandom
Last active June 28, 2017 08:14
Show Gist options
  • Save JohnRandom/3222188e42db14c76c0e02bc9fa1566b to your computer and use it in GitHub Desktop.
Save JohnRandom/3222188e42db14c76c0e02bc9fa1566b to your computer and use it in GitHub Desktop.
.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;
}
<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>
class HeaderLayout extends React.Component {
render() {
return (
<div className={styles.HeaderLayout}>
{ this.props.children }
</div>
);
}
}
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