Skip to content

Commit 31073fe

Browse files
committed
feat: update styles for self study section
1 parent d6ac541 commit 31073fe

File tree

1 file changed

+36
-34
lines changed

1 file changed

+36
-34
lines changed

src/app/education/page.tsx

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -114,40 +114,42 @@ const EducationPage = async () => {
114114
}) => (
115115
<Card key={id} asChild>
116116
<a href={certificate} rel="noopener" target="_blank">
117-
{institution?.logo ? (
118-
<Flex align="center" justify="between">
119-
<Image
120-
alt={institution.name}
121-
className="object-scale-down"
122-
height={24}
123-
src={institution.logo}
124-
width={24}
125-
/>
126-
<Text>{institution.name}</Text>
127-
</Flex>
128-
) : null}
129-
<Heading as="h3" mt="4" size="4">
130-
{name}
131-
</Heading>
132-
<Text as="p" color="gray" mt="2" size="2">
133-
{dateFormatter.format(new Date(completedOn))}
134-
</Text>
135-
<Text as="p" className="line-clamp-3" mt="4">
136-
{description}
137-
</Text>
138-
{categories ? (
139-
<Flex gap="3" mt="4">
140-
{categories.map((category) => (
141-
<Badge
142-
key={category}
143-
color={courseCategoryColors[category]}
144-
size="3"
145-
>
146-
{category}
147-
</Badge>
148-
))}
149-
</Flex>
150-
) : null}
117+
<Flex direction="column" height="100%">
118+
{institution?.logo ? (
119+
<Flex align="center" justify="between">
120+
<Image
121+
alt={institution.name}
122+
className="object-scale-down"
123+
height={24}
124+
src={institution.logo}
125+
width={24}
126+
/>
127+
<Badge color="gray">{institution.name}</Badge>
128+
</Flex>
129+
) : null}
130+
<Heading as="h3" mt="4" size="4">
131+
{name}
132+
</Heading>
133+
<Text as="p" color="gray" mt="2" size="2">
134+
{dateFormatter.format(new Date(completedOn))}
135+
</Text>
136+
<Text as="p" className="line-clamp-3" mt="4">
137+
{description}
138+
</Text>
139+
{categories ? (
140+
<Flex gap="3" mt="auto" pt="4">
141+
{categories.map((category) => (
142+
<Badge
143+
key={category}
144+
color={courseCategoryColors[category]}
145+
size="3"
146+
>
147+
{category}
148+
</Badge>
149+
))}
150+
</Flex>
151+
) : null}
152+
</Flex>
151153
</a>
152154
</Card>
153155
),

0 commit comments

Comments
 (0)