Skip to content

Commit ada0c18

Browse files
⚒ Landing Revamp
1 parent 8961885 commit ada0c18

File tree

4 files changed

+55
-50
lines changed

4 files changed

+55
-50
lines changed
Lines changed: 52 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,74 @@
1-
import "./style";
1+
import Paper from "@material-ui/core/Paper";
22
import React from "react";
3-
import { Typography } from "@material-ui/core";
3+
import Typography from "@material-ui/core/Typography";
44
import { makeStyles } from "@material-ui/core/styles";
55

6+
const steps = [
7+
"1. Chose a project that you like.",
8+
"2. Clone the repository.",
9+
"3. Start coding!.",
10+
];
11+
612
const useStyles = makeStyles((theme) => ({
713
root: {
8-
margin: "10vh 0",
14+
marginBottom: `10vh`,
15+
},
16+
paper: {
17+
height: "100%",
918
display: "flex",
1019
flexDirection: "column",
1120
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,
1540
},
1641
steps: {
42+
marginTop: "20px",
1743
display: "flex",
18-
flexDirection: "row",
19-
justifyItems: "space-evenly",
20-
justifyContent: "flex-start",
2144
flexWrap: "wrap",
22-
height: "60%",
23-
width: "90%",
45+
justifyContent: "center",
46+
alignItems: "center",
2447
},
2548
}));
2649

50+
interface ReasonCardProps {
51+
title: string;
52+
description: string;
53+
}
54+
2755
export const HowToContribute = () => {
2856
const classes = useStyles();
2957
return (
3058
<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>
3772
</section>
3873
);
3974
};

frontend/src/apps/main/scenes/landing/how-to-contribute/style.scss

Lines changed: 0 additions & 31 deletions
This file was deleted.

frontend/src/apps/main/scenes/landing/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { TopProjects } from "./top-projects";
1010
import { WhatAndWhy } from "./what-and-why";
1111
import { connect } from "react-redux";
1212
import { fetchProjectsList } from "t9/apps/main/redux/actions/projects-scene";
13-
13+
import { HowToContribute } from "./how-to-contribute";
1414
export const LandingScene = ({
1515
topProjects,
1616
topArticles,
@@ -27,6 +27,7 @@ export const LandingScene = ({
2727
<Header />
2828
<WhatAndWhy />
2929
<TopProjects topProjects={topProjects} />
30+
<HowToContribute />
3031
<TopArticles topArticles={topArticles} />
3132
</>
3233
);

frontend/src/apps/main/scenes/landing/what-and-why/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export const WhatAndWhy = () => {
8888
const classes = useStyles();
8989
return (
9090
<section className={classes.root}>
91-
<Paper className={classes.paper} elevation={6}>
91+
<Paper className={classes.paper} elevation={3}>
9292
<Typography variant="h2" className={classes.header}>
9393
What is dzCode.io and Why?
9494
</Typography>

0 commit comments

Comments
 (0)