File tree 6 files changed +137
-2
lines changed
6 files changed +137
-2
lines changed Original file line number Diff line number Diff line change 56
56
}
57
57
58
58
.Image {
59
- max-width : 50% ;
59
+ width : 50% ;
60
+ max-width : 450px ;
60
61
text-align : center;
61
62
}
62
63
66
67
67
68
@media (max-width : 700px ) {
68
69
.Body {
69
- padding : 50px 30px ;
70
+ flex-direction : column;
71
+ padding : 0px 30px ;
70
72
}
71
73
.Image {
72
74
display : none;
73
75
}
74
76
.Content {
75
77
width : 100% ;
78
+ padding-bottom : 25px ;
79
+ padding-top : 25px ;
76
80
}
77
81
}
78
82
Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
2
3
3
import Body1 from './Body1/Body1' ;
4
+ import Body2 from './Body2/Body2' ;
5
+ import Body3 from './Body3/Body3' ;
4
6
5
7
const Home = ( ) => {
6
8
return (
7
9
< div >
8
10
< Body1 />
11
+ < Body2 />
12
+ < Body3 />
9
13
</ div >
10
14
)
11
15
}
You can’t perform that action at this time.
0 commit comments