diff --git a/src/App.js b/src/App.js index b668e85..4a08043 100644 --- a/src/App.js +++ b/src/App.js @@ -1,58 +1,11 @@ import React, { Component } from "react"; import { css } from "emotion"; -import mq from "./util/mq"; import Header from "./components/Header"; import Main from "./components/Main"; import LeftSidebar from "./components/LeftSidebar"; import RightSidebar from "./components/RightSidebar"; -const appStyles = css({ - minHeight: "100vh", - display: "grid", - gridTemplateColumns: "100%", - gridTemplateRows: "auto 1fr", - gridTemplateAreas: ` - "header" - "main" - "sidebarLeft" - "sidebarRight" - `, - ...mq.medium({ - gridTemplateColumns: "200px 1fr 200px", - gridTemplateRows: "auto 1fr", - gridTemplateAreas: ` - "header header header" - "sidebarLeft main sidebarRight" - `, - }), - "& > header": { - gridArea: "header", - position: "sticky", - width: "100%", - top: 0, - }, - "& > aside:first-of-type": { - gridArea: "sidebarLeft", - }, - "& > main": { - gridArea: "main", - }, - "& > aside:last-of-type": { - gridArea: "sidebarRight", - }, - "& > *": { - border: "1px solid gray", - }, - "& > aside": { - overflow: "auto", - ...mq.medium({ - overflow: "visible", - "&:before": { - display: "none", - }, - }), - }, -}); +const appStyles = css({}); class App extends Component { render() { diff --git a/src/components/Header/index.js b/src/components/Header/index.js index 1e3dc1f..89b7421 100644 --- a/src/components/Header/index.js +++ b/src/components/Header/index.js @@ -1,68 +1,5 @@ import React from "react"; -import { css } from "emotion"; -import classnames from "classnames"; -import Icon from "@material-ui/core/Icon"; -import TextField from "@material-ui/core/TextField"; -import Avatar from "../avatar"; -import Switch from "@material-ui/core/Switch"; -import Box from "../Box"; -import mq from "../../util/mq"; -const headerStyles = css({ - display: "flex", - alignItems: "center", - flexWrap: "wrap", - gridArea: "header", - zIndex: 100, - backgroundColor: "#4285f4", - padding: "0 16px 0 8px", - color: "white", -}); - -const searchContainerStyles = css({ - flex: "1", - display: "flex", - alignItems: "center", - justifyContent: "center", - minWidth: "100%", - order: 100, - ...mq.medium({ - minWidth: "auto", - order: 0, - }), -}); - -const searchStyles = css({ - display: "flex", - alignItems: "center", - background: "rgba(255,255,255,.25)", - color: "white !important", - maxWidth: 800, -}); - -const Header = () => ( -
- menu - Inbox - - - search - - - - - chat - grid_on - notifications - -
-); +const Header = () =>
Header
; export default Header; diff --git a/src/components/LeftSidebar/index.js b/src/components/LeftSidebar/index.js index c0fc8a2..4c94f59 100644 --- a/src/components/LeftSidebar/index.js +++ b/src/components/LeftSidebar/index.js @@ -1,51 +1,5 @@ import React from "react"; -import { css } from "emotion"; -import Icon from "@material-ui/core/Icon"; -import Box from "../Box"; -const leftStyles = css({ - "& > *": { - display: "flex", - alignItems: "center", - }, -}); - -const blue = css({ color: "#29B6F6" }); -const orange = css({ color: "#FFB74D" }); -const green = css({ color: "#4CAF50" }); - -const LeftSidebar = () => ( - -); +const LeftSidebar = () => ; export default LeftSidebar; diff --git a/src/components/Main/index.js b/src/components/Main/index.js index 6d272ac..31c7d90 100644 --- a/src/components/Main/index.js +++ b/src/components/Main/index.js @@ -1,27 +1,5 @@ -import React, { Fragment } from "react"; -import { css } from "emotion"; -import DayHeader from "./day-header"; -import Email from "../Email"; +import React from "react"; -const SECTIONS = 3; -const EMAILS = 10; -const dates = ["Today", "Yesterday", "Last Week"]; - -const mainStyles = css({ - padding: 30, - // https://css-tricks.com/flexbox-truncated-text/ - minWidth: 0, -}); - -const Main = () => ( -
- {new Array(SECTIONS).fill(0).map((e, i) => ( - - - {new Array(EMAILS).fill(0).map((e, ii) => )} - - ))} -
-); +const Main = () =>
Main
; export default Main; diff --git a/src/components/RightSidebar/index.js b/src/components/RightSidebar/index.js index 2722056..f142cb3 100644 --- a/src/components/RightSidebar/index.js +++ b/src/components/RightSidebar/index.js @@ -1,10 +1,5 @@ import React from "react"; -import Tile from "./tile"; -const TILES = 30; - -const RightSidebar = () => ( - -); +const RightSidebar = () => ; export default RightSidebar; diff --git a/src/components/RightSidebar/tile.js b/src/components/RightSidebar/tile.js deleted file mode 100644 index 61e67c1..0000000 --- a/src/components/RightSidebar/tile.js +++ /dev/null @@ -1,30 +0,0 @@ -import React from "react"; -import { css } from "emotion"; -import faker from "faker"; -import Avatar from "../avatar"; -import { getLorem } from "../../util/common"; - -const tileStyles = css({ - display: "flex", - alignItems: "center", - margin: 4, - "& > *": { - margin: 4, - }, -}); - -const small = css({ - fontSize: 10, -}); - -const Tile = () => ( -
- -
-
{faker.name.firstName()}
-
{getLorem(2, 3)}
-
-
-); - -export default Tile;