diff --git a/src/sections/Learn/LearnPage-Sections/learning-path.js b/src/sections/Learn/LearnPage-Sections/learning-path.js index ca017c949b90f..b48d5942cde2d 100644 --- a/src/sections/Learn/LearnPage-Sections/learning-path.js +++ b/src/sections/Learn/LearnPage-Sections/learning-path.js @@ -18,15 +18,45 @@ const LearningPathsWrapper = styled.div` .learn-subtitle { text-align: center; } - .learning-path-cards{ + .custom-container { + max-width: 1440px; + width: 100%; + margin: 0 auto; + padding: 0 2rem; + } + + .learning-path-cards { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 2rem; margin: auto; - justify-content: center; - padding: 6rem 0; + padding: 4rem 0; - @media(max-width:500px){ - padding: 6rem 2rem; + @media (max-width: 992px) { + grid-template-columns: repeat(2, minmax(0, 1fr)); + } + @media (max-width: 768px) { + grid-template-columns: repeat(1, minmax(0, 1fr)); } } + + .card-item-wrapper { + display: flex; + width: 100%; + height: 100%; + + > div { + max-width: none; + width: 100%; + margin: 0; + height: 100%; + } + + .card-parent { + height: 100%; + } + } + .see-more-button { text-align: center; } @@ -82,22 +112,22 @@ const LearningPaths = () => { return ( - +

Learning Paths

Learn DevOps and platform engineering

- +
{data.learnPaths.nodes.map((tutorial) => ( - +
- +
))} - +
- +
); }; diff --git a/src/sections/Learn/LearnPage-Sections/workshops.js b/src/sections/Learn/LearnPage-Sections/workshops.js index 463d08ef17dc6..0399a33789c42 100644 --- a/src/sections/Learn/LearnPage-Sections/workshops.js +++ b/src/sections/Learn/LearnPage-Sections/workshops.js @@ -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 { @@ -253,6 +254,8 @@ const WorkshopsSection = () => {