Skip to content

Commit b67a0b8

Browse files
committed
clean code home and page4
1 parent b6845d7 commit b67a0b8

File tree

9 files changed

+842
-278
lines changed

9 files changed

+842
-278
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 & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,6 @@ const useStyles = makeStyles((theme) => ({
3838
listStyle: 'none',
3939
},
4040
},
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-
// },
5441
heroContent: {
5542
padding: theme.spacing(8, 0, 6),
5643
},
@@ -60,7 +47,6 @@ const useStyles = makeStyles((theme) => ({
6047
color:"#FFFFFF",
6148

6249
},
63-
6450
itemTitle: {
6551
whiteSpace: 'pre-wrap'
6652
},
@@ -112,24 +98,7 @@ const tiers = [
11298
buttonVariant: 'outlined',
11399
},
114100
];
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-
// ];
101+
133102

134103
export default function Home() {
135104
const classes = useStyles();
@@ -189,14 +158,6 @@ export default function Home() {
189158

190159
/>
191160
<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> */}
200161
<ul className={classes.itemTitle}>
201162
{tier.description.map((line) => (
202163
<Typography variant="subtitle1" align="center" key={line}>
@@ -215,31 +176,6 @@ export default function Home() {
215176
))}
216177
</Grid>
217178
</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 */}
243179
</React.Fragment>
244180
);
245181
}

src/pages/HomePage/index.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -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)