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
body { | |
margin: 0; | |
padding: 0; | |
font-family: sans-serif; | |
} | |
.app { | |
display: flex; | |
flex-direction: row; | |
box-sizing: border-box; |
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
import React, {Component} from 'react' | |
import {Button, Elevation} from 'rmwc' | |
class FeedItem extends Component { | |
state = {height: 4} | |
render() { | |
return ( | |
<Elevation | |
z={this.state.height} |
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
import React, {Component} from 'react' | |
import {Button, Elevation} from 'rmwc' | |
import Helmet from 'react-helmet' | |
class FeedItem extends Component { | |
state = {height: 4} | |
click = () => { this.props.theme( this.props.primary, this.props.secondary ) } | |
render() { |
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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import registerServiceWorker from './registerServiceWorker'; | |
import WebFont from 'webfontloader' | |
WebFont.load({ | |
google: { | |
families: ['Roboto:300,500,700'] |
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
import React, {Component} from 'react' | |
import Drawer from 'material-ui/Drawer'; | |
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List'; | |
import Divider from 'material-ui/Divider'; | |
import InboxIcon from 'material-ui-icons/Inbox'; | |
class MyDrawer extends Component { | |
render() { | |
return ( | |
<Drawer |
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
import React, {Component} from 'react'; | |
import Button from 'material-ui/Button'; | |
import TextField from 'material-ui/TextField'; | |
import Dialog, { | |
DialogActions, | |
DialogContent, | |
DialogContentText, | |
DialogTitle, | |
withMobileDialog | |
} from 'material-ui/Dialog'; |
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
import React, {Component} from 'react' | |
import { withStyles } from 'material-ui/styles' | |
import Paper from 'material-ui/Paper' | |
import Button from 'material-ui/Button' | |
const styles = theme => ({ | |
feed: { | |
width: '100%', | |
display: 'flex', | |
flexDirection: 'column', |
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
import React, { Component } from 'react'; | |
import { withStyles } from 'material-ui/styles'; | |
import Drawer from './drawer' | |
import Navbar from './navbar' | |
import Login from './login' | |
import Feed from './feed_basic' | |
const drawerWidth = 216; | |
const styles = theme => ({ |
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
import React, { Component } from 'react'; | |
import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles'; | |
import { withStyles } from 'material-ui/styles'; | |
import Drawer from './drawer' | |
import Navbar from './navbar' | |
import Login from './login' | |
import Feed from './feed_basic' | |
import purple from 'material-ui/colors/purple'; | |
import green from 'material-ui/colors/green'; |