Files
classroomio/src/components/Courses/index.svelte
T

23 lines
531 B
Svelte
Raw Normal View History

2021-05-06 08:22:25 +03:00
<script>
2021-08-29 07:23:19 +03:00
import Box from '../Box/index.svelte';
import Card from './components/Card/index.svelte';
2021-08-18 19:47:02 +03:00
import { courses } from './store';
2021-05-06 08:22:25 +03:00
</script>
2021-09-17 06:33:49 +03:00
<div
class="flex items-center justify-center lg:justify-start flex-wrap my-4 m-auto"
>
2021-08-18 19:47:02 +03:00
{#each $courses as courseData}
2021-08-29 07:23:19 +03:00
<Card
id={courseData.id}
logo={courseData.logo}
title={courseData.title}
description={courseData.description}
/>
{:else}
<Box>
<h3 class="text-2xl text-gray-500">No Course Assigned</h3>
</Box>
2021-05-07 03:43:37 +03:00
{/each}
</div>