|
1 | | -import "./style"; |
| 1 | +import Paper from "@material-ui/core/Paper"; |
2 | 2 | import React from "react"; |
3 | | -import { Typography } from "@material-ui/core"; |
| 3 | +import Typography from "@material-ui/core/Typography"; |
4 | 4 | import { makeStyles } from "@material-ui/core/styles"; |
5 | 5 |
|
| 6 | +const steps = [ |
| 7 | + "1. Chose a project that you like.", |
| 8 | + "2. Clone the repository.", |
| 9 | + "3. Start coding!.", |
| 10 | +]; |
| 11 | + |
6 | 12 | const useStyles = makeStyles((theme) => ({ |
7 | 13 | root: { |
8 | | - margin: "10vh 0", |
| 14 | + marginBottom: `10vh`, |
| 15 | + }, |
| 16 | + paper: { |
| 17 | + height: "100%", |
9 | 18 | display: "flex", |
10 | 19 | flexDirection: "column", |
11 | 20 | alignItems: "center", |
12 | | - justifyContent: "space-evenly", |
13 | | - height: "50vh", |
14 | | - background: theme.palette.background.paper, |
| 21 | + justifyContent: "center", |
| 22 | + padding: "5% 0", |
| 23 | + |
| 24 | + [theme.breakpoints.up("md")]: { |
| 25 | + padding: "4vh 0", |
| 26 | + }, |
| 27 | + }, |
| 28 | + header: { |
| 29 | + color: theme.palette.text.secondary, |
| 30 | + marginBottom: "20px", |
| 31 | + textAlign: "center", |
| 32 | + }, |
| 33 | + header2: { |
| 34 | + marginBottom: "20px", |
| 35 | + textAlign: "center", |
| 36 | + }, |
| 37 | + step: { |
| 38 | + margin: "10px", |
| 39 | + fontWeight: 400, |
15 | 40 | }, |
16 | 41 | steps: { |
| 42 | + marginTop: "20px", |
17 | 43 | display: "flex", |
18 | | - flexDirection: "row", |
19 | | - justifyItems: "space-evenly", |
20 | | - justifyContent: "flex-start", |
21 | 44 | flexWrap: "wrap", |
22 | | - height: "60%", |
23 | | - width: "90%", |
| 45 | + justifyContent: "center", |
| 46 | + alignItems: "center", |
24 | 47 | }, |
25 | 48 | })); |
26 | 49 |
|
| 50 | +interface ReasonCardProps { |
| 51 | + title: string; |
| 52 | + description: string; |
| 53 | +} |
| 54 | + |
27 | 55 | export const HowToContribute = () => { |
28 | 56 | const classes = useStyles(); |
29 | 57 | return ( |
30 | 58 | <section className={classes.root}> |
31 | | - <Typography variant="h3">Contribute to dzCode.io</Typography> |
32 | | - <div className={classes.steps}> |
33 | | - <Typography variant="h4">1. Chose a project that you like.</Typography> |
34 | | - <Typography variant="h4">2. Clone the repository.</Typography> |
35 | | - <Typography variant="h4">3. Start coding!.</Typography> |
36 | | - </div> |
| 59 | + <Paper className={classes.paper} elevation={3}> |
| 60 | + <Typography variant="h3" className={classes.header}> |
| 61 | + How To Contribute to dzCode.io ? |
| 62 | + </Typography> |
| 63 | + |
| 64 | + <div className={classes.steps}> |
| 65 | + {steps.map((step, index) => ( |
| 66 | + <Typography className={classes.step} key={index} variant="h4"> |
| 67 | + {step} |
| 68 | + </Typography> |
| 69 | + ))} |
| 70 | + </div> |
| 71 | + </Paper> |
37 | 72 | </section> |
38 | 73 | ); |
39 | 74 | }; |
0 commit comments