1
- import { Box , makeStyles , Paper , Typography } from '@material-ui/core' ;
1
+ import {
2
+ Box ,
3
+ Card ,
4
+ Container ,
5
+ makeStyles ,
6
+ Typography
7
+ } from '@material-ui/core' ;
2
8
import React from 'react' ;
3
9
4
10
const useStyles = makeStyles ( theme => ( {
5
11
root : {
6
- margin : theme . spacing ( 3 , 0 , 0 ) ,
7
- padding : '60px 0px 40px' ,
12
+ marginTop : theme . spacing ( 3 ) ,
8
13
backgroundColor : '#F4F4F4' ,
9
14
borderRadius : '0px'
10
15
} ,
16
+ container : {
17
+ padding : '60px 8vw 40px'
18
+ } ,
11
19
card : {
12
20
display : 'inline-block' ,
13
21
verticalAlign : 'top' ,
22
+ textAlign : 'left' ,
14
23
width : 308 ,
15
24
height : 245 ,
16
25
color : '#fff' ,
17
26
padding : '24px' ,
18
- margin : '24px' ,
27
+ margin : '24px 48px 24px 0px ' ,
19
28
background : '#5D517E' ,
20
29
boxShadow : '0px 0px 15px rgba(0, 0, 0, 0.15)' ,
21
30
[ theme . breakpoints . down ( 'sm' ) ] : {
22
31
margin : '16px'
32
+ } ,
33
+ '&, .makeStyles-card-210' : {
34
+ [ theme . breakpoints . down ( 'xs' ) ] : {
35
+ marginLeft : 0 ,
36
+ marginRight : 0
37
+ }
23
38
}
24
39
} ,
25
40
box : {
@@ -36,26 +51,28 @@ function CourseFeatures() {
36
51
const classes = useStyles ( ) ;
37
52
return (
38
53
< div className = { classes . root } >
39
- < Typography
40
- align = "center"
41
- variant = "h3"
42
- style = { { fontSize : '28px' , marginBottom : '30px' } }
43
- >
44
- Course Features
45
- </ Typography >
46
- < div style = { { display : 'block' , textAlign : 'center' , width : '100%' } } >
47
- { features . map ( ( feature , index ) => {
48
- return < Card feature = { feature } index = { index } /> ;
49
- } ) }
50
- </ div >
54
+ < Container className = { classes . container } maxWidth = "xl" >
55
+ < Typography
56
+ align = "center"
57
+ variant = "h3"
58
+ style = { { fontSize : '28px' , marginBottom : '30px' } }
59
+ >
60
+ Course Features
61
+ </ Typography >
62
+ < div style = { { display : 'block' , width : '113%' } } >
63
+ { features . map ( ( feature , index ) => {
64
+ return < FeatureCard feature = { feature } index = { index } /> ;
65
+ } ) }
66
+ </ div >
67
+ </ Container >
51
68
</ div >
52
69
) ;
53
70
}
54
71
55
- function Card ( { feature, index } ) {
72
+ export function FeatureCard ( { feature, index } ) {
56
73
const classes = useStyles ( ) ;
57
74
return (
58
- < Paper elevation = { 0 } className = { classes . card } >
75
+ < Card elevation = { 0 } className = { classes . card } >
59
76
< Box className = { classes . box } >
60
77
< img
61
78
src = { `/static/images/courses/trainingLogos/${ index } .svg` }
@@ -71,11 +88,11 @@ function Card({ feature, index }) {
71
88
< Typography variant = "body2" style = { { fontWeight : 500 } } >
72
89
{ feature . subTopic }
73
90
</ Typography >
74
- </ Paper >
91
+ </ Card >
75
92
) ;
76
93
}
77
94
78
- const features = [
95
+ export const features = [
79
96
{
80
97
topic : 'Structured Industry vetted Curiculumn' ,
81
98
subTopic : 'Who have been In Out Throughout the Industry'
0 commit comments