File tree Expand file tree Collapse file tree 9 files changed +200
-146
lines changed Expand file tree Collapse file tree 9 files changed +200
-146
lines changed Original file line number Diff line number Diff line change 18
18
border-bottom : 3px solid rgb (0 , 122 , 124 );
19
19
}
20
20
21
-
22
21
.sendMessageButton {
23
22
color : rgb (0 , 122 , 124 );
24
23
font-size : 20px ;
37
36
background : rgb (0 , 122 , 124 );
38
37
color : # fff ;
39
38
}
40
- .formSuccessMessage {
39
+ .formSuccessMessage {
41
40
text-align : center;
42
41
padding : 8px 0px ;
43
42
}
44
43
45
-
46
44
@media (max-width : 875px ) {
47
45
/*Mobile View */
48
46
.form {
Original file line number Diff line number Diff line change 1
- .footer {
2
- position : relative;
3
- height : 305px ;
4
- background : # 131212 ;
5
- }
6
- .footer-items {
7
- display : flex;
8
- flex-wrap : wrap;
9
- justify-content : space-evenly;
10
- padding-top : 20px ;
11
-
1
+ .footer {
2
+ position : relative;
3
+ height : 305px ;
4
+ background : # 131212 ;
12
5
}
13
- .frontEnd-logo {
14
- width : 15vw ;
15
- height : 25vh ;
16
-
6
+ .footer-items {
7
+ display : flex;
8
+ flex-wrap : wrap;
9
+ justify-content : space-evenly;
10
+ padding-top : 20px ;
17
11
}
18
- .icons > a {
19
- color : # A3A9A4 ;
20
- padding : 20px ;
21
-
12
+ .frontEnd-logo {
13
+ width : 15vw ;
14
+ height : 25vh ;
22
15
}
23
- .icons > a > i {
24
- font-size : 2 em ;
25
-
16
+ .icons > a {
17
+ color : # a3a9a4 ;
18
+ padding : 20 px ;
26
19
}
27
- .icons {
28
- display : flex;
29
-
20
+ .icons > a > i {
21
+ font-size : 2em ;
30
22
}
31
-
32
- .info > p {
33
- color : # A3A9A4 ;
34
- font-size : 18px ;
35
- }
36
- .info > a {
37
- color : # 71b6f6 ;
23
+ .icons {
24
+ display : flex;
38
25
}
39
26
40
- .copyright > p {
41
- color : # A3A9A4 ;
42
- padding-top : 50px ;
43
- text-align : center;
27
+ .info > p {
28
+ color : # a3a9a4 ;
29
+ font-size : 18px ;
44
30
}
45
- .copyright > p > a {
46
- color : # 71b6f6 ;
31
+ .info > a {
32
+ color : # 71b6f6 ;
47
33
}
48
34
49
- @media (max-width : 875px ){
50
- .frontEnd-logo {
51
- width : 29vw ;
52
- height : 15vh ;
53
- padding : 10px ;
35
+ .copyright > p {
36
+ color : # a3a9a4 ;
37
+ padding-top : 50px ;
38
+ text-align : center;
54
39
}
55
- .footer-items {
56
- flex-direction : column-reverse;
57
- align-content : space-around;
58
-
40
+ .copyright > p > a {
41
+ color : # 71b6f6 ;
59
42
}
60
43
61
- .copyright > p {
62
- font-size : 10px ;
63
- padding-top : 0px ;
44
+ @media (max-width : 875px ) {
45
+ .frontEnd-logo {
46
+ width : 29vw ;
47
+ height : 15vh ;
48
+ padding : 10px ;
49
+ }
50
+ .footer-items {
51
+ flex-direction : column-reverse;
52
+ align-content : space-around;
53
+ }
54
+
55
+ .copyright > p {
56
+ font-size : 10px ;
57
+ padding-top : 0px ;
58
+ }
64
59
}
65
- }
Original file line number Diff line number Diff line change
1
+ .container {
2
+ padding : 30px 80px 80px ;
3
+ }
4
+
1
5
.grid {
2
6
display : grid;
3
- grid-template-columns : repeat (auto-fill, minmax (200px , 1fr ));
4
- grid-gap : 182px ;
5
- align-items : justify;
6
- padding : 30px 80px 30px 80px ;
7
+ grid-template-columns : repeat (3 , 1fr );
8
+ grid-template-rows : repeat (4 , 1fr );
9
+ grid-column-gap : 72px ;
10
+ grid-row-gap : 53px ;
11
+ align-items : center;
7
12
}
8
13
.grid > article {
9
- border : 1px solid # ccc ;
10
- box-shadow : 2px 2px 6px 0px rgba (0 , 0 , 0 , 0.3 );
11
- width : 110% ;
14
+ box-shadow : 2px 2px 6px 0px rgb (0 0 0 / 30% );
15
+ width : 100% ;
16
+ padding : 16px 40px ;
17
+ height : 300px ;
18
+ border : none;
12
19
display : flex;
13
20
flex-direction : column;
14
21
justify-content : space-between;
15
22
}
16
23
17
- .text {
18
- padding : 13px 41px 20px ;
24
+ article h1 {
19
25
text-align : center;
20
- margin-top : 20px ;
26
+ margin-top : 12px ;
27
+ font-size : 22px ;
28
+ margin-bottom : 0 ;
29
+ color : rgb (0 , 122 , 124 );
30
+ }
31
+
32
+ .text {
33
+ text-align : justify;
21
34
}
22
35
23
36
.resourceLink {
33
46
.resourceLink : hover {
34
47
background-color : rgba (0 , 122 , 124 , 0.8 );
35
48
}
49
+
50
+ @media (max-width : 875px ) {
51
+ /*Mobile View */
52
+
53
+ .grid {
54
+ display : block;
55
+ }
56
+
57
+ .grid > article {
58
+ margin-top : 37px ;
59
+ height : 350px ;
60
+ }
61
+ }
62
+
Original file line number Diff line number Diff line change @@ -9,18 +9,24 @@ import Disclaimer from "../Disclaimer/Disclaimer";
9
9
export default function Resources ( ) {
10
10
11
11
return (
12
- < >
12
+ < div className = "container" >
13
13
< Toggle />
14
14
< div className = "grid" >
15
15
{
16
16
ResourcesList . map ( resource =>
17
17
< article key = { resource . id } >
18
- < div className = "text" > { resource . name }
19
- </ div >
18
+ < h1 > { resource . name } </ h1 >
19
+ < p className = "text" > { resource . body }
20
+ </ p >
20
21
< Link className = "resourceLink" to = { `/resources/${ resource . id } ` } > < span > More info</ span > </ Link >
22
+
21
23
</ article > ) }
22
24
</ div >
23
25
< Disclaimer />
24
- </ >
26
+ </ > < / a r t i c l e > )
27
+ }
28
+ </div >
29
+
30
+ < / div >
25
31
);
26
32
}
Original file line number Diff line number Diff line change 1
- .table {
2
- text-align : center;
3
- font-family : "Trebuchet MS" , Arial, Helvetica, sans-serif;
4
- border-collapse : collapse;
5
- border : 0px solid # ddd ;
6
- width : 100% ;
7
- padding : 40px 0px 0px 500px ;
8
- }
9
-
10
- .table td , .table th {
11
- border : 1px solid # ddd ;
12
- padding : 40px ;
13
- padding-right : 78px ;
14
- }
15
-
16
- .table tr : nth-child (even){background-color : # f2f2f2 ;}
17
-
18
- .table tr : hover {background-color : # ddd ;}
19
-
20
- .table th {
21
- padding-top : 12px ;
22
- padding-bottom : 12px ;
23
- text-align : center;
24
- background-color : # 4CAF50 ;
25
- color : white;
26
- }
27
-
1
+ table {
2
+ text-align : center;
3
+ font-family : "Trebuchet MS" , Arial, Helvetica, sans-serif;
4
+ border-collapse : collapse;
5
+ margin : auto;
6
+ margin-bottom : 45px ;
7
+ }
8
+
9
+ table td ,
10
+ table th {
11
+ border : 1px solid # ddd ;
12
+ padding : 40px ;
13
+ padding-right : 78px ;
14
+ }
15
+
16
+ table tr : nth-child (even) {
17
+ background-color : # f2f2f2 ;
18
+ }
19
+
20
+ table tr : hover {
21
+ background-color : # ddd ;
22
+ }
23
+
24
+ table th {
25
+ padding-top : 12px ;
26
+ padding-bottom : 12px ;
27
+ text-align : center;
28
+ background-color : rgb (0 , 122 , 124 );
29
+ color : white;
30
+ }
Original file line number Diff line number Diff line change @@ -7,25 +7,25 @@ import Toggle from "../Toggle";
7
7
export default function TableView ( ) {
8
8
9
9
return (
10
- < >
10
+ < div className = "container" >
11
11
< Toggle />
12
- < div className = " table" >
13
- < th > ID</ th >
14
- < th > Name</ th >
15
- < th > URL</ th >
16
- {
17
- ResourcesList . map ( resource =>
18
-
19
- < tr key = { resource . id } >
20
- < td > { resource . id } </ td >
21
- < td > { resource . name } </ td >
22
- < td > { < Link className = "resourceLink" to = { `/resources/${ resource . id } ` } > < span > More info</ span > </ Link > } </ td >
23
- </ tr >
24
-
25
- )
26
- }
27
-
28
- </ div >
29
- </ >
12
+ < table >
13
+ < th > ID</ th >
14
+ < th > Name</ th >
15
+ < th > URL</ th >
16
+ {
17
+ ResourcesList . map ( resource =>
18
+
19
+ < tr key = { resource . id } >
20
+ < td > { resource . id } </ td >
21
+ < td > { resource . name } </ td >
22
+ < td > { < Link className = "resourceLink" to = { `/resources/${ resource . id } ` } > < span > More info</ span > </ Link > } </ td >
23
+ </ tr >
24
+
25
+ )
26
+ }
27
+ </ table >
28
+
29
+ </ div >
30
30
) ;
31
31
}
Original file line number Diff line number Diff line change
1
+ .flex {
2
+ display : flex;
3
+ justify-content : space-between;
4
+ align-items : center;
5
+ padding-bottom : 28px ;
6
+ }
7
+
8
+ .flex h1 {
9
+ border-bottom : 3px solid rgb (0 , 122 , 124 );
10
+ font-size : 40px ;
11
+ padding-bottom : 17px ;
12
+ }
13
+
1
14
.flex-container {
2
15
display : flex;
3
16
justify-content : flex-end;
17
+ margin : 0 0 17px 0 ;
4
18
}
5
19
6
- .flex-container > button {
20
+ .flex-container > button {
7
21
background-color : white;
8
22
width : 50px ;
9
23
height : 50px ;
10
24
text-align : center;
11
- }
25
+ cursor : pointer;
26
+ }
Original file line number Diff line number Diff line change @@ -8,14 +8,15 @@ import './Toggle.css';
8
8
export default function Toggle ( ) {
9
9
const history = useHistory ( ) ;
10
10
return (
11
- < >
11
+ < div className = "flex" >
12
+ < h1 > Open Source Programs</ h1 >
12
13
< div className = "flex-container" >
13
-
14
14
< button onClick = { ( ) => history . push ( '/TableView' ) } > < img alt = "table" src = { table } > </ img > </ button >
15
15
< button onClick = { ( ) => history . push ( '/resources' ) } > < img alt = "card" src = { card } > </ img > </ button >
16
16
17
17
</ div >
18
- </ >
18
+
19
+ </ div >
19
20
20
21
) ;
21
22
You can’t perform that action at this time.
0 commit comments