Skip to content
Snippets Groups Projects
Commit 662ce9b4 authored by Sreeram, Sudarshan's avatar Sreeram, Sudarshan :carrot:
Browse files

Update module card to be clickable

Note: This is just an experimental commit to play around with this feature.
This may have to be adjusted in the case that cards contain other links in the
future.
parent 81196426
No related branches found
No related tags found
No related merge requests found
...@@ -18,18 +18,20 @@ const ModuleCard: React.FC<ModuleCardProps> = ({ ...@@ -18,18 +18,20 @@ const ModuleCard: React.FC<ModuleCardProps> = ({
return ( return (
<Col xs={12} sm={6} lg={4} xl={3} style={{ marginTop: "1.875rem" }}> <Col xs={12} sm={6} lg={4} xl={3} style={{ marginTop: "1.875rem" }}>
<Card className={classNames(styles.moduleCard)}> <Card className={classNames(styles.moduleCard)}>
<Link style={{ textDecoration: "none" }} to={`modules/${module.code}`}>
<Card.Header className={classNames(styles.moduleCardHeader)}> <Card.Header className={classNames(styles.moduleCardHeader)}>
{module.code} {module.code}
</Card.Header> </Card.Header>
<Card.Img style={{ borderRadius: 0 }} variant="top" src={module.image} /> <Card.Img style={{ borderRadius: 0 }} variant="top" src={module.image} />
<Card.Body> <Card.Body>
<Card.Title ><Link to={`modules/${module.code}`} style={{color: "black"}}>{module.title}</Link></Card.Title> <Card.Title style={{ color: "#000" }}>{module.title}</Card.Title>
</Card.Body> </Card.Body>
<Card.Footer> <Card.Footer>
<small className={classNames(styles.moduleCardProgressText)}> <small className={classNames(styles.moduleCardProgressText)}>
in progress in progress
</small> </small>
</Card.Footer> </Card.Footer>
</Link>
</Card> </Card>
</Col> </Col>
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment