Skip to content
Snippets Groups Projects
Widgets.js 2.42 KiB
Newer Older
tspuller's avatar
bla
tspuller committed
import React from 'react';
import { Row, Col } from 'antd';
import LayoutWrapper from '@imd/components/utility/layoutWrapper';
import basicStyle from '@imd/assets/styles/constants';
tspuller's avatar
tspuller committed
import IsoWidgetsWrapper from '@imd/containers/Widgets/WidgetsWrapper';
import CardWidget from '@imd/containers/Widgets/Card/CardWidget';
tspuller's avatar
bla
tspuller committed

const styles = {
  wisgetPageStyle: {
    display: 'flex',
    flexFlow: 'row wrap',
    alignItems: 'flex-start',
    overflow: 'hidden',
  },
};

export default function() {
  const { rowStyle, colStyle } = basicStyle;
tspuller's avatar
tspuller committed
  
tspuller's avatar
bla
tspuller committed
  return (
tspuller's avatar
tspuller committed
    <LayoutWrapper style={{height: "100%"}}>
tspuller's avatar
bla
tspuller committed
      <div style={styles.wisgetPageStyle}>
tspuller's avatar
tspuller committed
        <h1>Welcome to Interpret My Data</h1><br></br>
        Which data would you like to have interpreted?
tspuller's avatar
tspuller committed
        <Row style={rowStyle} gutter={0} justify="start">
          <Col span={6} style={colStyle}>
tspuller's avatar
tspuller committed
              <IsoWidgetsWrapper>
                {/* Card Widget */}
                <a href='/dashboard/facebook'>
tspuller's avatar
tspuller committed
                <CardWidget
                  icon="ion-social-facebook"
                  iconcolor="#3b5998"
                  text="Facebook"
tspuller's avatar
tspuller committed
                />
tspuller's avatar
tspuller committed
              </IsoWidgetsWrapper>
          </Col>
          <Col span={6} style={colStyle}>
              <IsoWidgetsWrapper>
                {/* Card Widget */}
                <a href='/dashboard/instagram'>
tspuller's avatar
tspuller committed
                <CardWidget
                  icon="ion-social-instagram"
                  iconcolor="#833ab4"
                  text="Instagram"
tspuller's avatar
tspuller committed
                />
tspuller's avatar
tspuller committed
              </IsoWidgetsWrapper>
          </Col>
          <Col span={6} style={colStyle}>
              <IsoWidgetsWrapper>
                {/* Card Widget */}
                <a href='/dashboard/spotify'>
tspuller's avatar
tspuller committed
                <CardWidget
                  icon="ion-music-note"
                  iconcolor="#1db954"
                  text="Spotify"
tspuller's avatar
tspuller committed
                />
tspuller's avatar
tspuller committed
              </IsoWidgetsWrapper>
          </Col>
          <Col span={6} style={colStyle}>
              <IsoWidgetsWrapper>
                {/* Card Widget */}
                <a href='/dashboard/linkedin'>
tspuller's avatar
tspuller committed
                <CardWidget
                  icon="ion-social-linkedin"
                  iconcolor="#0e76a8"
                  text="LinkedIn"
tspuller's avatar
tspuller committed
                />
tspuller's avatar
tspuller committed
              </IsoWidgetsWrapper>
          </Col>
        </Row>
tspuller's avatar
bla
tspuller committed
      </div>
    </LayoutWrapper>
  );
}