Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update splashpage #1

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
4,716 changes: 2,358 additions & 2,358 deletions client/package-lock.json

Large diffs are not rendered by default.

Binary file added client/public/breakfast.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/car.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/gear.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion client/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
<link href="https://fonts.googleapis.com/css?family=Lato:300,400,700,900" rel="stylesheet">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
Expand Down
Binary file added client/public/mortgage.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/nut.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/separation.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added client/public/will.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
204 changes: 143 additions & 61 deletions client/src/screens/ContractSelect.js
Original file line number Diff line number Diff line change
@@ -1,84 +1,166 @@

import React, { Component } from 'react';
import '../App.css';
import { Link } from 'react-router-dom';

import { withStyles } from '@material-ui/core/styles';
import ExpansionPanel from '@material-ui/core/ExpansionPanel';
import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary';
import ExpansionPanelDetails from '@material-ui/core/ExpansionPanelDetails';
import Typography from '@material-ui/core/Typography';
import ExpandMoreIcon from '@material-ui/icons/ExpandMore';
import Button from '@material-ui/core/Button';
import PropTypes from 'prop-types';
import ButtonBase from '@material-ui/core/ButtonBase';

import EOSIOClient from '../utils/eosio';

const styles = theme => ({
root: {
display: 'flex',
flexWrap: 'wrap',
minWidth: 300,
width: '100%',
},
heading: {
fontSize: theme.typography.pxToRem(15),
fontWeight: theme.typography.fontWeightRegular,
image: {
position: 'relative',
height: 200,
[theme.breakpoints.down('xs')]: {
width: '100% !important', // Overrides inline-style
height: 100,
},
'&:hover, &$focusVisible': {
zIndex: 1,
'& $imageBackdrop': {
opacity: 0.15,
},
'& $imageMarked': {
opacity: 0,
},
'& $imageTitle': {
border: '4px solid currentColor',
},
},
},
focusVisible: {},
imageButton: {
position: 'absolute',
left: 0,
right: 0,
top: 0,
bottom: 0,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
color: theme.palette.common.white,
},
imageSrc: {
position: 'absolute',
left: 0,
right: 0,
top: 0,
bottom: 0,
backgroundSize: 'cover',
backgroundPosition: 'center 40%',
},
button: {
margin: theme.spacing.unit,
imageBackdrop: {
position: 'absolute',
left: 0,
right: 0,
top: 0,
bottom: 0,
backgroundColor: theme.palette.common.black,
opacity: 0.4,
transition: theme.transitions.create('opacity'),
},
imageTitle: {
position: 'relative',
padding: `${theme.spacing.unit * 2}px ${theme.spacing.unit * 4}px ${theme.spacing.unit + 6}px`,
},
imageMarked: {
height: 3,
width: 18,
backgroundColor: theme.palette.common.white,
position: 'absolute',
bottom: -2,
left: 'calc(50% - 9px)',
transition: theme.transitions.create('opacity'),
},
input: {
display: 'none',
}
});

export default class ContractSelect extends Component {
render() {
return (
<div className="container">
<div className="title">
<div className = "center">
<h1>Contracts</h1>
</div>
</div>
<div className="content">
<h2>Select a contract</h2>

<div className={styles.root}>
<ExpansionPanel>
<ExpansionPanelSummary expandIcon={<ExpandMoreIcon />}>
<Typography className={styles.heading}>Choose a Contract Type</Typography>
</ExpansionPanelSummary>
<ExpansionPanelDetails>
<Typography>
<Link to="/create">
<Button variant="contained" href="#contained-buttons" className={styles.button}>
Marriage
</Button>
</Link><br/><br/>
<Link to="/create">
<Button variant="contained" href="#contained-buttons" className={styles.button}>
Auto Loan
</Button>
</Link><br/><br/>
<Link to="/create">
<Button variant="contained" href="#contained-buttons" className={styles.button}>
Mortgage
</Button>
</Link><br/><br/>
<Link to="/create">
<Button variant="contained" href="#contained-buttons" className={styles.button}>
Separation
</Button>
</Link><br/><br/>
<Link to="/create">
<Button variant="contained" href="#contained-buttons" className={styles.button}>
Last Will
</Button>
</Link>
</Typography>
</ExpansionPanelDetails>
</ExpansionPanel>
</div>
const images = [
{
url: 'breakfast.jpg',
title: <Link to="/Wizard" style={{textDecoration: 'none', color:'white'}}>Marriage </Link>,
width: '33%',
},
{
url: 'nut.jpg',
title: <Link to="/Wizard" style={{textDecoration: 'none', color:'white'}}>Wizard </Link>,
width: '34%',
},
{
url: '/car.jpg',
title: <Link to="/Auto Loan" style={{textDecoration: 'none', color:'white'}}>Auto Loan </Link>,
width: '33%',
},
{
url: '/gear.jpg',
title: <Link to="/Mortgage" style={{textDecoration: 'none', color:'white'}}>Mortgage </Link>,
width: '33%',
},
{
url: '/separation.jpg',
title: <Link to="/lkmn" style={{textDecoration: 'none', color:'white'}}>Separation </Link>,
width: '34%',
},
{
url: '/will.png',
title: <Link to="/Last Will" style={{textDecoration: 'none', color:'white'}}>Last Will </Link>,
width: '33%',
},
];

</div>
</div>
);
}
function ButtonBases(props) {
const { classes } = props;

return (
<div className={classes.root}>
{images.map(image => (
<ButtonBase
focusRipple
key={image.title}
className={classes.image}
focusVisibleClassName={classes.focusVisible}
style={{
width: image.width,
}}
>
<span
className={classes.imageSrc}
style={{
backgroundImage: `url(${image.url})`,
}}
/>
<span className={classes.imageBackdrop} />
<span className={classes.imageButton}>
<Typography
component="span"
variant="subheading"
color="inherit"
className={classes.imageTitle}
>
{image.title}
<span className={classes.imageMarked} />
</Typography>
</span>
</ButtonBase>
))}
</div>
);
}

ButtonBases.propTypes = {
classes: PropTypes.object.isRequired,
};

export default withStyles(styles)(ButtonBases);
1 change: 1 addition & 0 deletions ricardo
Submodule ricardo added at e4d39b