8560077759
Move components from flat src/lib/components/ into recipes/, faith/, and cospend/ subdirectories. Replace ~144 relative imports across API routes and lib files with $models, $utils, $types, and $lib aliases. Add $types alias to svelte.config.js. Remove unused EditRecipe.svelte.
39 lines
614 B
Svelte
39 lines
614 B
Svelte
<script lang="ts">
|
|
import type { Snippet } from 'svelte';
|
|
|
|
let { title = '', children } = $props<{ title?: string, children?: Snippet }>();
|
|
let overflow = $state();
|
|
</script>
|
|
<style>
|
|
|
|
.wrapper{
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
gap: 2.5rem;
|
|
justify-content: center;
|
|
}
|
|
h2{
|
|
max-width: 1000px;
|
|
margin-left: 5rem;
|
|
margin-bottom: 0;
|
|
font-size: 3rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
section:not(:has(h2)){
|
|
padding-top: 4rem;
|
|
}
|
|
section{
|
|
overflow: hidden;
|
|
padding-bottom: 3.7rem;
|
|
}
|
|
</style>
|
|
<section>
|
|
{#if title}
|
|
<h2>{title}</h2>
|
|
{/if}
|
|
<div class=wrapper>
|
|
{@render children?.()}
|
|
</div>
|
|
</section>
|