Skip to content

Commit

Permalink
chore: adjust course image
Browse files Browse the repository at this point in the history
  • Loading branch information
Firgrep committed Jan 29, 2025
1 parent 72a0f89 commit 6df34fa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions features/courses/components/CourseFrontPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function CourseFrontPage({ slug }: { slug: string }) {
return (
<FadeIn className="w-full">
<div className="flex flex-col justify-center items-center py-10">
<div className="flex justify-center gap-20 flex-wrap">
<div className="flex justify-center gap-10 flex-wrap">
<div className="flex flex-col">
<Link
href={links.courses}
Expand All @@ -49,18 +49,19 @@ export async function CourseFrontPage({ slug }: { slug: string }) {
</div>

{course.imageUrl && (
<div className="custom-mask custom-mask-hexagon">
<div className="">
<Image
className="rounded-md"
src={course.imageUrl}
alt={`Course preview ${course.name}`}
width={340}
width={800}
height={240}
/>
</div>
)}
</div>

<div className="flex justify-center gap-20 flex-wrap-reverse mt-10 md:mt-1">
<div className="flex justify-center gap-20 flex-wrap-reverse mt-10 md:mt-5">
<div className="max-w-[800px]">
{course?.details?.mdxCompiled ? (
<MDXRenderer data={course.details.mdxCompiled} />
Expand Down

0 comments on commit 6df34fa

Please sign in to comment.