2021-08-30 10:46:18 +00:00
|
|
|
<script>
|
|
|
|
import {
|
|
|
|
ButtonGroup,
|
|
|
|
Icon,
|
|
|
|
} from 'sveltestrap';
|
|
|
|
|
2023-05-12 13:29:38 +00:00
|
|
|
import Clock from './Clock.svelte';
|
2022-10-24 07:48:45 +00:00
|
|
|
import { challengeInfo } from '$lib/stores/challengeinfo.js';
|
2023-05-12 13:29:38 +00:00
|
|
|
import { settings } from '$lib/stores/settings.js';
|
2021-08-30 10:46:18 +00:00
|
|
|
</script>
|
|
|
|
|
2023-05-12 12:53:15 +00:00
|
|
|
{#if $settings && $settings.end}
|
2021-08-30 10:46:18 +00:00
|
|
|
{#if $settings.end - $settings.start > 0}
|
2023-05-12 13:29:38 +00:00
|
|
|
<Clock
|
|
|
|
class="display-2 text-end text-md-center"
|
|
|
|
/>
|
2021-08-30 10:46:18 +00:00
|
|
|
{:else}
|
|
|
|
<div class="d-flex h-100 justify-content-center align-items-center">
|
|
|
|
<ButtonGroup size="lg">
|
2022-06-12 10:15:52 +00:00
|
|
|
|
2021-08-30 10:46:18 +00:00
|
|
|
<a
|
2022-06-12 10:15:52 +00:00
|
|
|
href="{$challengeInfo.main_link}"
|
2021-08-30 10:46:18 +00:00
|
|
|
class="btn btn-light"
|
2022-06-12 10:15:52 +00:00
|
|
|
class:disabled={$challengeInfo.main_link === ''}
|
2021-08-30 10:46:18 +00:00
|
|
|
>
|
|
|
|
<Icon name="ui-checks-grid" />
|
|
|
|
Accueil
|
|
|
|
</a>
|
|
|
|
<a
|
2021-09-01 09:20:41 +00:00
|
|
|
href="rank"
|
2021-08-30 10:46:18 +00:00
|
|
|
class="btn btn-light"
|
|
|
|
>
|
|
|
|
<Icon name="sort-down" />
|
|
|
|
Classement
|
|
|
|
</a>
|
|
|
|
<a
|
2022-05-01 20:33:59 +00:00
|
|
|
href="{$challengeInfo.videoslink}"
|
2021-08-30 10:46:18 +00:00
|
|
|
class="btn btn-light"
|
2022-05-01 20:33:59 +00:00
|
|
|
class:disabled={$challengeInfo.videoslink === ''}
|
2021-08-30 10:46:18 +00:00
|
|
|
>
|
|
|
|
<Icon name="laptop-fill" />
|
|
|
|
Vidéos
|
|
|
|
</a>
|
|
|
|
</ButtonGroup>
|
|
|
|
</div>
|
|
|
|
{/if}
|
|
|
|
{:else}
|
|
|
|
<div class="d-flex h-100 justify-content-center align-items-center">
|
|
|
|
<h1 class="display-3 m-0">
|
2023-05-12 12:53:15 +00:00
|
|
|
{$challengeInfo.title}
|
2021-08-30 10:46:18 +00:00
|
|
|
</h1>
|
|
|
|
</div>
|
|
|
|
{/if}
|