Skip to content

Commit e207e69

Browse files
committed
add lesson sections
1 parent b8a8fef commit e207e69

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎apps/codingcatdev/src/routes/(content-single)/course/[slug]/LessonCards.svelte‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
class="grid grid-cols-[repeat(1,minmax(0,_1fr))] md:grid-cols-[repeat(2,minmax(0,_1fr))] lg:md:grid-cols-[repeat(3,minmax(0,_1fr))] gap-2 md:gap-8"
1414
>
1515
{#each lesson as l}
16+
{#if l?.section}
17+
<div class="pb-2 col-span-full">
18+
<span class="flex py-2 mt-4 text-xl font-bold">
19+
{l.section}
20+
</span>
21+
<hr />
22+
</div>
23+
{/if}
1624
<a href={`/course/${courseSlug}/lesson/${l.slug}`} class="!no-underline !text-token">
1725
<div class="bcu-card h-full">
1826
{#if l?.cover}

0 commit comments

Comments
 (0)