ui: Use $lib instead of ../../../../ mess

This commit is contained in:
nemunaire 2022-10-24 09:48:45 +02:00
commit 3a6daa3d04
48 changed files with 81 additions and 81 deletions

View file

@ -1,30 +0,0 @@
<script>
import { base } from '$app/paths';
import {
Carousel,
CarouselItem,
} from 'sveltestrap';
import { challengeInfo } from '../stores/challengeinfo.js';
let activePartner = 0;
</script>
{#if $challengeInfo && $challengeInfo.partners}
<Carousel items={$challengeInfo.partners} bind:activeIndex={activePartner} ride="carousel" pause="hover" interval={25000}>
<div class="carousel-inner h-100">
{#each $challengeInfo.partners as partner, index}
<CarouselItem bind:activeIndex={activePartner} itemIndex={index} class="h-100 text-end">
{#if partner.href}
<a href="{partner.href}" target="_blank" class="h-100">
<img src={partner.img.replace('$FILES$', base + '/files')} class="h-100" alt={partner.alt}>
</a>
{:else}
<img src={partner.img.replace('$FILES$', base + '/files')} class="h-100" alt={partner.alt}>
{/if}
</CarouselItem>
{/each}
</div>
</Carousel>
{/if}