ui: Display writeup in interface
This commit is contained in:
parent
45a9240834
commit
a6adc1ac8c
3 changed files with 25 additions and 18 deletions
|
|
@ -30,6 +30,9 @@
|
|||
Alert,
|
||||
Badge,
|
||||
Card,
|
||||
CardBody,
|
||||
CardHeader,
|
||||
CardText,
|
||||
Col,
|
||||
Icon,
|
||||
Row,
|
||||
|
|
@ -172,8 +175,21 @@
|
|||
exercice={$my.exercices[exercice.id]}
|
||||
/>
|
||||
{/if}
|
||||
{#if $my.exercices[exercice.id].video_uri}
|
||||
<ExerciceVideo uri={$my.exercices[exercice.id].video_uri} />
|
||||
{#if $my.exercices[exercice.id].resolution || $my.exercices[exercice.id].video_uri}
|
||||
<Card class="border-success mb-2">
|
||||
<CardHeader class="bg-success text-light">
|
||||
<Icon name="laptop-fill" />
|
||||
Solution du défi
|
||||
</CardHeader>
|
||||
{#if $my.exercices[exercice.id].resolution}
|
||||
<CardBody>
|
||||
{@html $my.exercices[exercice.id].resolution}
|
||||
</CardBody>
|
||||
{/if}
|
||||
{#if $my.exercices[exercice.id].video_uri}
|
||||
<ExerciceVideo uri={$my.exercices[exercice.id].video_uri} />
|
||||
{/if}
|
||||
</Card>
|
||||
{/if}
|
||||
</Col>
|
||||
</Row>
|
||||
|
|
|
|||
Reference in a new issue