iot-webpage

git clone git://archive.git.mtrnord.blog/Nordgedanken/iot-webpage.git
Log | Files | Refs | README | LICENSE

Home.js (1026B)


      1 import React from 'react';
      2 import { Card, CardMedia, CardTitle, CardText, CardActions } from 'react-toolbox/lib/card';
      3 import {Button} from 'react-toolbox/lib/button';
      4 
      5 class Home extends React.Component {
      6     render() {
      7         return (
      8             <Card style={{width: '350px'}}>
      9                 <CardTitle
     10                     avatar="https://placeimg.com/80/80/animals"
     11                     title="Avatar style title"
     12                     subtitle="Subtitle here"
     13                 />
     14                 <CardMedia
     15                     aspectRatio="wide"
     16                     image="https://placeimg.com/800/450/nature"
     17                 />
     18                 <CardTitle
     19                     title="Title goes here"
     20                     subtitle="Subtitle here"
     21                 />
     22                 <CardText>test</CardText>
     23                 <CardActions>
     24                     <Button label="Action 1" />
     25                     <Button label="Action 2" />
     26                 </CardActions>
     27             </Card>
     28         );
     29     }
     30 }
     31 export default Home;