deprived-main-website/deprecated/zhen/cv/CompsRev3/IconAndText2.svelte
BOTAlex 4e2fe3700d
Some checks failed
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Failing after 1s
Extreme optimize + bug fixes + prerendering fix + more deprecation
2025-10-02 07:36:41 +02:00

31 lines
663 B
Svelte

<script lang="ts">
export let logo: string;
export let logoWidths: string = "35%";
import onMount from "@e/onMount";
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>