forked from CSGOWTF/csgowtf
- Extract SearchModal component from SearchBar for root-level rendering - Add isModalOpen state to search store with open/close methods - Simplify SearchBar to trigger button only - Update Modal with proper overflow handling and scroll-to-close - Fix layout background to use void color 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
22 lines
544 B
Svelte
22 lines
544 B
Svelte
<script lang="ts">
|
|
import '../app.css';
|
|
import Header from '$lib/components/layout/Header.svelte';
|
|
import Footer from '$lib/components/layout/Footer.svelte';
|
|
import ToastContainer from '$lib/components/ui/ToastContainer.svelte';
|
|
import SearchModal from '$lib/components/layout/SearchModal.svelte';
|
|
|
|
let { children } = $props();
|
|
</script>
|
|
|
|
<div class="flex min-h-screen flex-col bg-void">
|
|
<Header />
|
|
<main class="flex-1">
|
|
{@render children()}
|
|
</main>
|
|
<Footer />
|
|
|
|
<!-- Global overlays -->
|
|
<ToastContainer />
|
|
<SearchModal />
|
|
</div>
|