import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import clsx from 'clsx'; import Breadcrumbs from '../Breadcrumbs'; import gallery from './gallery.json'; // import tutorials from '../../data/tutorials.json'; import { Link } from 'react-router-dom'; import { fade } from '@material-ui/core/styles/colorManipulator'; import { withStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Paper from '@material-ui/core/Paper'; import BlocklyWindow from '../Blockly/BlocklyWindow'; import Divider from '@material-ui/core/Divider'; const styles = (theme) => ({ outerDiv: { position: 'absolute', right: '-30px', bottom: '-30px', width: '160px', height: '160px', color: fade(theme.palette.secondary.main, 0.6) }, outerDivError: { stroke: fade(theme.palette.error.dark, 0.6), color: fade(theme.palette.error.dark, 0.6) }, outerDivSuccess: { stroke: fade(theme.palette.primary.main, 0.6), color: fade(theme.palette.primary.main, 0.6) }, outerDivOther: { stroke: fade(theme.palette.secondary.main, 0.6) }, innerDiv: { width: 'inherit', height: 'inherit', display: 'table-cell', verticalAlign: 'middle', textAlign: 'center' } }); class GalleryHome extends Component { render() { return (

Gallery

{gallery.map((gallery, i) => { return (

{gallery.title}

{gallery.text}

{gallery.name}

) })}
); }; } GalleryHome.propTypes = { status: PropTypes.array.isRequired, change: PropTypes.number.isRequired, }; const mapStateToProps = state => ({ change: state.tutorial.change, status: state.tutorial.status }); export default connect(mapStateToProps, null)(withStyles(styles, { withTheme: true })(GalleryHome));