deprived-main-website/src/routes/zhen/cv/CompsRev3/IconAndText2.svelte
BOTAlex 9192790978
All checks were successful
Rebuild signaller for deprived.dev to rebuild site / test_service (push) Successful in 20s
Slight updates to cv rev3
2025-06-10 12:23:34 +00:00

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>