feat(Layout): add footer to layout
Workflow / build (pull_request) Successful in 4m27s
Workflow / publish (pull_request) Has been skipped

This commit is contained in:
Ilia Mashkov
2026-04-22 13:01:46 +03:00
parent 2221ecad4c
commit 1d5af5ea70
+5 -13
View File
@@ -3,21 +3,12 @@
Application shell with providers and page wrapper Application shell with providers and page wrapper
--> -->
<script lang="ts"> <script lang="ts">
/**
* Layout Component
*
* Root layout wrapper that provides the application shell structure. Handles favicon,
* toolbar provider initialization, and renders child routes with consistent structure.
*
* Layout structure:
* - Header area (currently empty, reserved for future use)
*
* - Footer area (currently empty, reserved for future use)
*/
import { themeManager } from '$features/ChangeAppTheme'; import { themeManager } from '$features/ChangeAppTheme';
import G from '$shared/assets/G.svg'; import G from '$shared/assets/G.svg';
import { ResponsiveProvider } from '$shared/lib'; import { ResponsiveProvider } from '$shared/lib';
import { Footer } from '$widgets/Footer';
import clsx from 'clsx'; import clsx from 'clsx';
import { import {
type Snippet, type Snippet,
onDestroy, onDestroy,
@@ -83,13 +74,14 @@ onDestroy(() => themeManager.destroy());
<div <div
id="app-root" id="app-root"
class={clsx( class={clsx(
'min-h-screen w-auto flex flex-col bg-surface dark:bg-dark-bg', 'min-h-screen w-auto flex flex-col bg-surface dark:bg-dark-bg relative',
theme === 'dark' ? 'dark' : '', theme === 'dark' ? 'dark' : '',
)} )}
> >
{#if fontsReady} {#if fontsReady}
{@render children?.()} {@render children?.()}
{/if} {/if}
<footer></footer>
<Footer />
</div> </div>
</ResponsiveProvider> </ResponsiveProvider>