Skip to content

Commit 8ef2e4f

Browse files
committed
Refactor LearningCard component: comment out level display and adjust CardSubdata styling
Signed-off-by: Lee Calcote <[email protected]>
1 parent 3a0d70f commit 8ef2e4f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/custom/LearningCard/LearningCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ const LearningCard: React.FC<Props> = ({ tutorial, path, courseCount, courseType
9797
{courseCount > 1 ? 's' : ''}
9898
</p>
9999
<p>
100-
Level:{' '}
100+
{/* Level:{' '} */}
101101
{tutorial?.frontmatter?.level
102102
? tutorial.frontmatter.level.charAt(0).toUpperCase() +
103103
tutorial.frontmatter.level.slice(1)

src/custom/LearningCard/style.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,10 @@ const CardDesc = styled('div')(({ theme }) => ({
7171
}));
7272

7373
const CardSubdata = styled('div')(({ theme }) => ({
74-
padding: '0 1rem',
75-
position: 'absolute',
74+
margin: '0 1rem',
7675
display: 'flex',
76+
justifyContent: 'space-between',
7777
gap: '0.4rem',
78-
bottom: '0rem',
7978
p: {
8079
fontSize: '1rem',
8180
color: theme.palette.text.primary,

0 commit comments

Comments
 (0)