Skip to content

Commit

Permalink
Merge branch 'main' into add-system-catalog-docs-1
Browse files Browse the repository at this point in the history
  • Loading branch information
TomShawn authored Feb 1, 2024
2 parents 4380f6b + 6c5bf5f commit a252d50
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
21 changes: 12 additions & 9 deletions src/components/bootcamp/MainContent/CardLine.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
import Card from "../Card";
interface IProps {
link: {
text: string;
href: string;
};
content?: string;
title?: string;
style?: React.CSSProperties;
cardLine: {
link: {
text: string;
href: string;
};
content?: string;
title?: string;
style?: React.CSSProperties;
}[];
itemWidth?: number;
}
export default function CardLine({ cardLine }: { cardLine: IProps[] }) {
export default function CardLine({ cardLine, itemWidth }: IProps) {
return cardLine.map((card, i) => {
return <Card key={i} {...card}></Card>;
return <Card key={i} {...card} style={{ width: itemWidth }}></Card>;
});
}
8 changes: 4 additions & 4 deletions src/components/bootcamp/MainContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ export default function MainContent({
marginBottom: 32,
}}
>
<CardLine cardLine={DATA_101.cardLine1} />
<CardLine cardLine={DATA_101.cardLine1} itemWidth={221} />
</div>

<div className={styles.cardLine}>
<CardLine cardLine={DATA_101.cardLine2} />
<CardLine cardLine={DATA_101.cardLine2} itemWidth={305.33} />
</div>

{/* 102 before */}
Expand All @@ -72,7 +72,7 @@ export default function MainContent({
</div>
<div className="sub-text">{DATA_103.subText}</div>
<div className={styles.cardLine} style={{ marginTop: 32 }}>
<CardLine cardLine={DATA_103.cardLine} />
<CardLine cardLine={DATA_103.cardLine} itemWidth={474} />
</div>

{/* 104 before */}
Expand All @@ -84,7 +84,7 @@ export default function MainContent({
{DATA_104.title}
</div>
<div className={styles.cardLine}>
<CardLine cardLine={DATA_104.cardLine} />
<CardLine cardLine={DATA_104.cardLine} itemWidth={474} />
</div>

{/* Get the Source */}
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/Breadcrumbs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function getDefaultPath(): Path[] {
};
});
for (let i = 0; i < path.length - 1; i++) {
path[i].href = `/${path[i].name}`;
path[i].href = `/${path[i].name.toLocaleLowerCase()}`;
}
return path;
}
Expand Down

0 comments on commit a252d50

Please sign in to comment.