Files
website-2/src/lib/components/portfolio/textContent.svelte
Nick Bland e6164752b1 Migrate to Tailwind 4 & DaisyUI 5
Additionally add in some more work experience, adjust the skills section, and update the contents to better reflect me now.
2025-05-14 22:26:16 +10:00

25 lines
626 B
Svelte

<script lang="ts">
interface Props {
middle?: boolean;
classes?: string;
children?: import("svelte").Snippet;
}
let { middle = false, classes = "", children }: Props = $props();
</script>
<!-- If the text is between some other text, adjust padding to not seperate it out too much -->
<!-- Default behaviour is to leave as is, unless true is passed through the props -->
<div>
{#if middle}
<p class="px-5 mx-auto text-xl max-w-3xl {classes}">
{@render children?.()}
</p>
{:else}
<p class="p-5 mx-auto text-xl max-w-3xl {classes}">
{@render children?.()}
</p>
{/if}
</div>