레이아웃 수정

This commit is contained in:
static
2025-01-02 03:08:11 +09:00
parent 314b8cca5c
commit 58eac9a694
11 changed files with 141 additions and 127 deletions

View File

@@ -1,7 +1,21 @@
<script lang="ts">
let { children } = $props();
import type { Component, Snippet } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
interface Props {
icon?: Component<SvelteHTMLElements["svg"]>;
children: Snippet;
}
let { icon, children }: Props = $props();
</script>
<div class="mt-[20%]">
<div>
<div class="box-content flex min-h-[10vh] items-center pt-2">
{#if icon}
{@const Icon = icon}
<Icon class="text-5xl text-gray-600" />
{/if}
</div>
{@render children?.()}
</div>