All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 20s
31 lines
663 B
Svelte
31 lines
663 B
Svelte
<script lang="ts">
|
|
export let logo: string;
|
|
export let logoWidths: string = "35%";
|
|
|
|
|
|
import { onMount } from "svelte";
|
|
onMount(() => {
|
|
imageCaption = logo.split(/(\\|\/)/g).pop();
|
|
});
|
|
|
|
let imageCaption: undefined | string; // Not a high piority, you get the file name and thats it
|
|
</script>
|
|
|
|
<div class=" h-full container flex">
|
|
<div class="flex h-full w-6 items-center overflow-hidden rounded">
|
|
<img
|
|
src={logo}
|
|
class=" w-6 h-6 object-cover shadow"
|
|
alt={imageCaption}
|
|
width={logoWidths}
|
|
/>
|
|
</div>
|
|
<div class="px-1 ml-1 h-full text-[0.5rem]" >
|
|
<span class="inline " >
|
|
<slot />
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|