Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit bed8979

Browse files
Replace limited Up hurry Up section image with component (#184)
1 parent d3fad91 commit bed8979

File tree

4 files changed

+45
-11
lines changed

4 files changed

+45
-11
lines changed
-48.7 KB
Loading

src/components/Course/CourseCardTemplate1.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ export default function CourseCard({ course }) {
139139
{course.domain}
140140
</Typography>
141141

142-
<Typography variant="h4" align="left" style={{ fontWeight: 700, width: '105%' }}>
142+
<Typography
143+
variant="h4"
144+
align="left"
145+
style={{ fontWeight: 700, width: '105%' }}
146+
>
143147
{course.title}
144148
</Typography>
145149
</Box>

src/views/pages/Course/Schedule.js

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ const useStyles = makeStyles(theme => ({
2929
borderRadius: '14px',
3030
background: '#F1F4FE'
3131
},
32-
img: {
32+
marginBottom: {
3333
marginBottom: theme.spacing(10),
34-
height: 'auto',
35-
width: '100%',
3634
[theme.breakpoints.down('sm')]: {
3735
marginBottom: theme.spacing(3)
3836
}
@@ -45,11 +43,7 @@ export default function Schedule({ course }) {
4543

4644
return (
4745
<Grid container className={classes.root}>
48-
<img
49-
src="/static/images/courses/limitedTimeBookNow.jpg"
50-
alt="Limited Time Available"
51-
className={classes.img}
52-
/>
46+
<LimitedTimeBookNow />
5347

5448
<Grid
5549
item
@@ -291,3 +285,40 @@ function BatchDropBox({ course, batch, batchIndex, expanded, setExpanded }) {
291285
</Box>
292286
);
293287
}
288+
289+
function LimitedTimeBookNow() {
290+
const classes = useStyles();
291+
292+
return (
293+
<div
294+
className={classes.marginBottom}
295+
style={{
296+
textAlign: 'center',
297+
backgroundImage: 'url(/static/images/courses/limitedTimeBookNow.jpg)',
298+
backgroundSize: 'cover',
299+
backgroundRepeat: 'no-repeat',
300+
backgroundPositionY: 'center',
301+
backgroundPositionX: 'center',
302+
width: '100%'
303+
}}
304+
>
305+
<Typography variant="h2" color="secondary" style={{ marginTop: '80px' }}>
306+
Book your Seats by Paying just ₹ 1000/-{' '}
307+
</Typography>
308+
<Typography
309+
variant="h3"
310+
color="primary"
311+
style={{ margin: '40px 0px 80px' }}
312+
>
313+
Limited Seats Hurry!
314+
</Typography>
315+
<Typography
316+
variant="h6"
317+
color="secondary"
318+
style={{ fontWeight: 600, marginBottom: '30px' }}
319+
>
320+
Terms & Conditions Apply
321+
</Typography>
322+
</div>
323+
);
324+
}

src/views/pages/Course/partials/DetailsBottom.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ export default function DetailsBottom({ course, batch }) {
8585
))}
8686
</Box>
8787

88-
<Box mb={2} display="flex" flexDirection="row">
89-
</Box>
88+
<Box mb={2} display="flex" flexDirection="row"></Box>
9089
</Box>
9190
</Grid>
9291
</Grid>

0 commit comments

Comments
 (0)