Files
homepage/src/lib/components/recipes/Recipes.svelte
T
Alexander 8560077759 refactor: reorganize components into domain subfolders and replace relative imports
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.
2026-02-11 09:49:11 +01:00

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>