Skip to content

Commit ab2b042

Browse files
authored
Merge pull request #574 from captain-Akshay/captain/learningpath
feat(components): enchancement in learning component
2 parents 4c86edf + 4458b47 commit ab2b042

File tree

3 files changed

+9
-16
lines changed

3 files changed

+9
-16
lines changed

src/custom/LearningCard/LearningCard.tsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ interface Tutorial {
1919
courseTitle: string;
2020
description: string;
2121
status?: boolean;
22-
cardImage: {
23-
src: string;
24-
};
22+
cardImage: string;
2523
};
2624
}
2725

@@ -52,7 +50,7 @@ const LearningCard: React.FC<Props> = ({ tutorial, path, courseCount }) => {
5250
<p className="summary">{tutorial.frontmatter.description}</p>
5351
</CardDesc>
5452
<CardImage>
55-
<img src={tutorial.frontmatter.cardImage.src} alt={tutorial.frontmatter.title} />
53+
<img src={tutorial.frontmatter.cardImage} alt={tutorial.frontmatter.title} />
5654
</CardImage>
5755
</div>
5856
</CardParent>
@@ -83,7 +81,7 @@ const LearningCard: React.FC<Props> = ({ tutorial, path, courseCount }) => {
8381
</p>
8482
</CardSubdata>
8583
<CardImage>
86-
<img src={tutorial.frontmatter.cardImage.src} alt={tutorial.frontmatter.title} />
84+
<img src={tutorial.frontmatter.cardImage} />
8785
</CardImage>
8886
</div>
8987
</CardParent>

src/custom/SetupPrerequisite/SetupPrerequisite.tsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,13 @@ interface SetupItem {
1313
}
1414
interface SetupPreReqProps {
1515
Steps: SetupItem[];
16+
PrerequisiteLine?: string;
1617
}
17-
const SetupPreReq: React.FC<SetupPreReqProps> = ({ Steps }) => (
18+
const SetupPreReq: React.FC<SetupPreReqProps> = ({ Steps, PrerequisiteLine }) => (
1819
<SetupPreReqWrapper>
1920
<div className="get-started-desc" id="pre-requisites">
2021
<h2>Prerequisites</h2>
21-
<p>
22-
In this learning path, we will be using Meshery as the management plane to manage the
23-
service meshes. Meshery, collaborative Kubernetes manager
24-
</p>
22+
<p>{PrerequisiteLine}</p>
2523
</div>
2624
<ContainerCardWrapper id="Set up">
2725
{Steps.map((item) => {

src/custom/SetupPrerequisite/style.tsx

+3-6
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,9 @@ const Card = styled('div')(({ theme }) => ({
3333

3434
const CardHeader = styled('div')({
3535
display: 'flex',
36-
flex: 'auto',
37-
'& .setup-imgs ': {
38-
flex: '0 0 25%',
39-
alignSelf: 'center',
40-
margin: '0 0.5rem'
41-
}
36+
alignItems: 'center',
37+
margin: '1rem 0 !important',
38+
gap: '1rem'
4239
});
4340

4441
const SetupImgs = styled('div')({

0 commit comments

Comments
 (0)