Skip to content

Commit 0bcde46

Browse files
author
Pippo Ramos
authored
Merge pull request #32 from visual-heuristics/feat_fetch_problem_file
Feat fetch problem file
2 parents d8f4a7b + 610b39a commit 0bcde46

File tree

13 files changed

+1011
-346
lines changed

13 files changed

+1011
-346
lines changed
99.2 KB
Binary file not shown.
4 MB
Binary file not shown.

src/App.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ function App() {
3535
<Route path="/demo" component={PageFour} />
3636
</Switch>
3737
</ThemeProvider>
38-
{/* <div>this is app</div> */}
3938
</div>
4039
</div>
4140
);

src/pages/HomePage/home.js

Lines changed: 1 addition & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,11 @@ import CardHeader from '@material-ui/core/CardHeader';
77
import CssBaseline from '@material-ui/core/CssBaseline';
88
import Grid from '@material-ui/core/Grid';
99
import StarIcon from '@material-ui/icons/StarBorder';
10-
1110
import Typography from '@material-ui/core/Typography';
12-
import Link from '@material-ui/core/Link';
1311
import { makeStyles } from '@material-ui/core/styles';
1412
import Container from '@material-ui/core/Container';
15-
import Box from '@material-ui/core/Box';
16-
import { createTheme } from '@material-ui/core/styles';
17-
import NavigationBar from '@/components/navigationBar/navigationBar';
1813
import { useHistory } from 'react-router-dom';
1914

20-
function Copyright() {
21-
return (
22-
<Typography variant="body2" color="textSecondary" align="center">
23-
{'Copyright © '}
24-
<Link color="inherit" href="https://material-ui.com/">
25-
Your Website
26-
</Link>{' '}
27-
{new Date().getFullYear()}
28-
{'.'}
29-
</Typography>
30-
);
31-
}
3215

3316
const useStyles = makeStyles((theme) => ({
3417
'@global': {
@@ -38,19 +21,6 @@ const useStyles = makeStyles((theme) => ({
3821
listStyle: 'none',
3922
},
4023
},
41-
// appBar: {
42-
// borderBottom: `1px solid ${theme.palette.divider}`,
43-
// backgroundColor:"#224878"
44-
// },
45-
// toolbar: {
46-
// flexWrap: 'wrap',
47-
// },
48-
// toolbarTitle: {
49-
// flexGrow: 1,
50-
// },
51-
// link: {
52-
// margin: theme.spacing(1, 1.5),
53-
// },
5424
heroContent: {
5525
padding: theme.spacing(8, 0, 6),
5626
},
@@ -60,7 +30,6 @@ const useStyles = makeStyles((theme) => ({
6030
color:"#FFFFFF",
6131

6232
},
63-
6433
itemTitle: {
6534
whiteSpace: 'pre-wrap'
6635
},
@@ -112,24 +81,7 @@ const tiers = [
11281
buttonVariant: 'outlined',
11382
},
11483
];
115-
// const footers = [
116-
// {
117-
// title: 'Company',
118-
// description: ['Team', 'History', 'Contact us', 'Locations'],
119-
// },
120-
// {
121-
// title: 'Features',
122-
// description: ['Cool stuff', 'Random feature', 'Team feature', 'Developer stuff', 'Another one'],
123-
// },
124-
// {
125-
// title: 'Resources',
126-
// description: ['Resource', 'Resource name', 'Another resource', 'Final resource'],
127-
// },
128-
// {
129-
// title: 'Legal',
130-
// description: ['Privacy policy', 'Terms of use'],
131-
// },
132-
// ];
84+
13385

13486
export default function Home() {
13587
const classes = useStyles();
@@ -189,14 +141,6 @@ export default function Home() {
189141

190142
/>
191143
<CardContent>
192-
{/* <div className={classes.cardPricing}>
193-
<Typography component="h2" variant="h3" color="inherit">
194-
${tier.price}
195-
</Typography>
196-
<Typography variant="h6" color="#FFFFFF">
197-
/mo
198-
</Typography>
199-
</div> */}
200144
<ul className={classes.itemTitle}>
201145
{tier.description.map((line) => (
202146
<Typography variant="subtitle1" align="center" key={line}>
@@ -215,31 +159,6 @@ export default function Home() {
215159
))}
216160
</Grid>
217161
</Container>
218-
{/* Footer */}
219-
{/* <Container maxWidth="md" component="footer" className={classes.footer}>
220-
<Grid container spacing={4} justifyContent="space-evenly">
221-
{footers.map((footer) => (
222-
<Grid item xs={6} sm={3} key={footer.title}>
223-
<Typography variant="h6" color="textPrimary" gutterBottom>
224-
{footer.title}
225-
</Typography>
226-
<ul>
227-
{footer.description.map((item) => (
228-
<li key={item}>
229-
<Link href="#" variant="subtitle1" color="textSecondary">
230-
{item}
231-
</Link>
232-
</li>
233-
))}
234-
</ul>
235-
</Grid>
236-
))}
237-
</Grid>
238-
<Box mt={5}>
239-
<Copyright />
240-
</Box>
241-
</Container> */}
242-
{/* End footer */}
243162
</React.Fragment>
244163
);
245164
}

src/pages/HomePage/index.js

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
2-
import { Link } from 'react-router-dom';
32
import Home from "./home";
4-
import styles from './index.module.less';
3+
4+
55
class HomePage extends React.Component {
66

77
// init data
@@ -27,21 +27,6 @@ class HomePage extends React.Component {
2727
return (
2828
<div>
2929
<Home />
30-
{/* <div>
31-
<button onClick={()=>this.handleOnClick('1')}
32-
className={styles.btn}>
33-
to page 1
34-
</button>
35-
</div>
36-
<div>
37-
<button onClick={()=>this.handleOnClick('2')}>to page 2</button>
38-
</div>
39-
<div>
40-
<button onClick={()=>this.handleOnClick('3')}>to page 3</button>
41-
</div>
42-
<div>
43-
<button onClick={()=>this.handleOnClick('4')}>to page 4</button>
44-
</div> */}
4530
</div>
4631
);
4732
}

0 commit comments

Comments
 (0)