Skip to content

Commit 7ec4673

Browse files
committed
Home page finished
1 parent 75d1cba commit 7ec4673

File tree

6 files changed

+137
-2
lines changed

6 files changed

+137
-2
lines changed

src/pages/Home/Body1/Body1.module.css

+6-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
}
5757

5858
.Image {
59-
max-width: 50%;
59+
width: 50%;
60+
max-width: 450px;
6061
text-align: center;
6162
}
6263

@@ -66,13 +67,16 @@
6667

6768
@media (max-width: 700px) {
6869
.Body {
69-
padding: 50px 30px;
70+
flex-direction: column;
71+
padding: 0px 30px;
7072
}
7173
.Image {
7274
display: none;
7375
}
7476
.Content {
7577
width: 100%;
78+
padding-bottom: 25px;
79+
padding-top: 25px;
7680
}
7781
}
7882

src/pages/Home/Body2/Body2.js

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import React from 'react';
2+
import { Link } from 'react-router-dom';
3+
4+
import Github from '../../../img/github.png';
5+
import class1 from '../Body1/Body1.module.css';
6+
import class2 from './Body2.module.css';
7+
8+
let classes = {
9+
...class1,
10+
...class2
11+
}
12+
13+
const Body2 = () => {
14+
return (
15+
<div className={classes.Body}>
16+
<div className={classes.Content}>
17+
<h1 className={classes.Heading}>Collabrate</h1>
18+
<p className={classes.Para}>Want to collabrate with code and improve the package, complete documentation of of code is available. Click below buttons to view documentation or start improving</p>
19+
<div className={classes.Btns}>
20+
<Link to='/' className={[classes.Btn, classes.Start].join(' ')} >References</Link>
21+
<a href="https://github.com/git-co-commit/git-co-commit" target="_blank" rel="noopener noreferrer" className={[classes.Btn, classes.Download].join(' ')} >
22+
<img src={Github} alt="Github" className={classes.Github} /> <span className={classes.View}>View Code</span>
23+
</a>
24+
</div>
25+
</div>
26+
<div className={classes.Content}>
27+
<h1 className={classes.Heading}>Installation</h1>
28+
<p className={classes.Para}>Install git co commit package using node package manager</p>
29+
<code className={classes.Code}>
30+
<span># Via npm </span>
31+
<span>npm i -g git-co-commit</span>
32+
</code>
33+
</div>
34+
</div>
35+
)
36+
}
37+
38+
export default Body2;

src/pages/Home/Body2/Body2.module.css

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
.Github {
2+
height: 20px;
3+
border-radius: 50%;
4+
}
5+
6+
.Code {
7+
display: block;
8+
background-color: #dbdbdb;
9+
padding: 10px;
10+
}
11+
12+
.Code span {
13+
display: block;
14+
padding: 5px;
15+
}
16+
17+
.Github,
18+
.View {
19+
vertical-align: middle;
20+
}

src/pages/Home/Body3/Body3.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from 'react';
2+
import { Link } from 'react-router-dom';
3+
4+
import classes from './Body3.module.css';
5+
6+
const Body3 = () => {
7+
return (
8+
<div className={classes.Body}>
9+
<h1 className={classes.Title}>Install Git Co Commit Today</h1>
10+
<h2 className={classes.SubTitle}>It's free and open source</h2>
11+
<Link className={classes.Button} to='/'>Get started</Link>
12+
</div>
13+
);
14+
}
15+
16+
export default Body3;

src/pages/Home/Body3/Body3.module.css

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
.Body {
2+
text-align: center;
3+
max-width: 900px;
4+
margin: 50px auto;
5+
background-color: #e7e7e7;
6+
padding: 50px;
7+
line-height: 55px;
8+
}
9+
10+
.Button {
11+
background-color: #000b6f;
12+
color: white;
13+
padding: 10px 30px;
14+
border: 2px solid blue;
15+
text-decoration: none;
16+
}
17+
18+
.Button:hover {
19+
background-color: blue;
20+
}
21+
22+
@media (max-width: 925px) {
23+
.Body {
24+
margin: 50px 20px;
25+
}
26+
}
27+
28+
@media (max-width: 600px) {
29+
.Body {
30+
padding: 20px 0;
31+
line-height: 50px;
32+
}
33+
.Title {
34+
font-size: 24px;
35+
}
36+
.SubTitle {
37+
font-size: 20px;
38+
}
39+
}
40+
41+
@media (max-width: 400px) {
42+
.Body {
43+
margin: 50px 10px;
44+
padding: 10px 0;
45+
line-height: 45px;
46+
}
47+
.Title {
48+
font-size: 19px;
49+
}
50+
.SubTitle {
51+
font-size: 17px;
52+
}
53+
}

src/pages/Home/Home.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import React from 'react';
22

33
import Body1 from './Body1/Body1';
4+
import Body2 from './Body2/Body2';
5+
import Body3 from './Body3/Body3';
46

57
const Home = () => {
68
return (
79
<div>
810
<Body1 />
11+
<Body2 />
12+
<Body3 />
913
</div>
1014
)
1115
}

0 commit comments

Comments
 (0)