2021-05-06 08:22:25 +03:00
|
|
|
<script>
|
2021-08-18 19:47:02 +03:00
|
|
|
import Education16 from 'carbon-icons-svelte/lib/Education16';
|
|
|
|
|
import Catalog16 from 'carbon-icons-svelte/lib/Catalog16';
|
|
|
|
|
// import Chip from '../Chip/index.svelte';
|
|
|
|
|
import { courses } from './store';
|
2021-05-06 08:22:25 +03:00
|
|
|
</script>
|
|
|
|
|
|
2021-05-07 03:43:37 +03:00
|
|
|
<div class="courses">
|
2021-08-18 19:47:02 +03:00
|
|
|
{#each $courses as courseData}
|
2021-05-07 03:43:37 +03:00
|
|
|
<div class="course">
|
|
|
|
|
<h4 class="course-title">
|
2021-08-18 19:47:02 +03:00
|
|
|
<a rel="prefetch" href="/courses/{courseData.id}">{courseData.title}</a>
|
|
|
|
|
<!-- <Chip
|
2021-05-07 03:43:37 +03:00
|
|
|
value={courseData.chipLabel}
|
|
|
|
|
className={courseData.chipClassName}
|
2021-08-18 19:47:02 +03:00
|
|
|
/> -->
|
2021-05-07 03:43:37 +03:00
|
|
|
</h4>
|
2021-08-18 19:47:02 +03:00
|
|
|
<p>{courseData.description}</p>
|
2021-05-07 03:43:37 +03:00
|
|
|
<div class="flex mt-3 mb-2">
|
|
|
|
|
<span class="flex mr-2"
|
|
|
|
|
><Education16 class="mr-2" />
|
|
|
|
|
5</span
|
|
|
|
|
>
|
|
|
|
|
<span class="flex"
|
|
|
|
|
><Catalog16 class="mr-2" />
|
|
|
|
|
20</span
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/each}
|
|
|
|
|
</div>
|
|
|
|
|
|
2021-05-06 08:22:25 +03:00
|
|
|
<style>
|
2021-05-07 03:43:37 +03:00
|
|
|
.courses {
|
2021-05-06 08:22:25 +03:00
|
|
|
max-width: 600px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
padding: 0 40px;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-07 03:43:37 +03:00
|
|
|
.course {
|
2021-05-06 08:22:25 +03:00
|
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
|
padding: 5px 0 10px;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-07 03:43:37 +03:00
|
|
|
.course-title {
|
2021-05-06 08:22:25 +03:00
|
|
|
width: fit-content;
|
|
|
|
|
font-size: 18px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
span {
|
|
|
|
|
color: #586069;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
width: 40px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|