Skip to content

Commit 528e273

Browse files
committed
feat: use lucide ExternalLink for tutorial cards
1 parent 4d64ad2 commit 528e273

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

app/[locale]/developers/tutorials/_components/tutorials.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import React, {
88
useMemo,
99
useState,
1010
} from "react"
11+
import { ExternalLink } from "lucide-react"
1112
import { useLocale } from "next-intl"
1213

1314
import { ITutorial, Lang } from "@/lib/types"
@@ -267,13 +268,11 @@ const TutorialPage = ({
267268
href={tutorial.href ?? undefined}
268269
>
269270
<Flex className="mb-8 flex-col items-start justify-between gap-y-4 md:-mb-4 md:flex-row">
270-
<Text
271-
className={cn(
272-
"relative me-0 text-2xl font-semibold text-body after:ml-2 after:inline-block after:italic after:transition-all after:duration-100 after:ease-in-out after:content-['↗'] md:me-24",
273-
tutorial.isExternal ? "after:inline-block" : "after:hidden"
274-
)}
275-
>
271+
<Text className="relative me-0 text-2xl font-semibold text-body md:me-24">
276272
{tutorial.title}
273+
{tutorial.isExternal && (
274+
<ExternalLink className="mb-[0.25em] ms-[0.25em] inline-block size-[0.875em]" />
275+
)}
277276
</Text>
278277
<Tag variant="outline">
279278
<Translation id={getSkillTranslationId(tutorial.skill!)} />

0 commit comments

Comments
 (0)