Skip to content

Commit

Permalink
step1: add css grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Clint Goodman committed May 30, 2018
1 parent 155f995 commit 9498699
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,24 @@ import Main from "./components/Main";
import LeftSidebar from "./components/LeftSidebar";
import RightSidebar from "./components/RightSidebar";

const appStyles = css({});
const appStyles = css({
display: "grid",
gridTemplateColumns: "200px 1fr 200px",
gridTemplateRows: "auto 1fr",
gridTemplateAreas: `
"header header header"
"sidebarLeft main sidebarRight"
`,
minHeight: "100vh",
"& > header": {
gridArea: "header",
position: "sticky",
top: 0,
},
"& > *": {
border: "1px solid gray",
},
});

class App extends Component {
render() {
Expand Down

0 comments on commit 9498699

Please sign in to comment.