Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/sections/Learn/LearnPage-Sections/learning-path.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const LearningPaths = () => {
</div>
<Row className="learning-path-cards">
{data.learnPaths.nodes.map((tutorial) => (
<Col $sm={6} key={tutorial.id}>
<Col $sm={6} $md={4} $lg={4} $xl={4} key={tutorial.id}>
<CardComponent tutorial={tutorial} path={`/learn/learning-paths/${tutorial.fields.learnpath}`} courseCount={getCoursesOfaLearningPath(tutorial.fields.learnpath).length} />
</Col>
))}
Expand All @@ -102,4 +102,4 @@ const LearningPaths = () => {
);
};

export default LearningPaths;
export default LearningPaths;
9 changes: 6 additions & 3 deletions src/sections/Learn/LearnPage-Sections/workshops.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ export const WorkshopsListWrapper = styled.div`
padding: 8rem 4.5rem;
}
.workshops-card {
flex: 0 0 50%;
max-width: 50%;
margin: 1rem auto;
--workshop-columns: 3;
flex: 0 0 calc(100% / var(--workshop-columns));
max-width: calc(100% / var(--workshop-columns));
margin: 1rem 0;
}

.feedback-section {
Expand Down Expand Up @@ -253,6 +254,8 @@ const WorkshopsSection = () => {
<Col
$xs={12}
$sm={6}
$md={4}
$lg={4}
$xl={4}
className="workshops-card"
key={index}
Expand Down
Loading