From 2d8c4692751697752fabf3465ea7dd52c3c348c7 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Thu, 23 Apr 2026 13:16:19 +0300 Subject: [PATCH] chore(Footer): move components to separate directories --- src/widgets/Footer/index.ts | 2 +- .../ui/{ => Footer}/Footer.stories.svelte | 0 .../Footer/ui/{ => Footer}/Footer.svelte | 21 ++++++++----------- .../ui/{ => Footer}/Footer.svelte.test.ts | 0 .../ui/{ => FooterLink}/FooterLink.svelte | 0 5 files changed, 10 insertions(+), 13 deletions(-) rename src/widgets/Footer/ui/{ => Footer}/Footer.stories.svelte (100%) rename src/widgets/Footer/ui/{ => Footer}/Footer.svelte (69%) rename src/widgets/Footer/ui/{ => Footer}/Footer.svelte.test.ts (100%) rename src/widgets/Footer/ui/{ => FooterLink}/FooterLink.svelte (100%) diff --git a/src/widgets/Footer/index.ts b/src/widgets/Footer/index.ts index c50a1d1..ccab13b 100644 --- a/src/widgets/Footer/index.ts +++ b/src/widgets/Footer/index.ts @@ -1 +1 @@ -export { default as Footer } from './ui/Footer.svelte'; +export { default as Footer } from './ui/Footer/Footer.svelte'; diff --git a/src/widgets/Footer/ui/Footer.stories.svelte b/src/widgets/Footer/ui/Footer/Footer.stories.svelte similarity index 100% rename from src/widgets/Footer/ui/Footer.stories.svelte rename to src/widgets/Footer/ui/Footer/Footer.stories.svelte diff --git a/src/widgets/Footer/ui/Footer.svelte b/src/widgets/Footer/ui/Footer/Footer.svelte similarity index 69% rename from src/widgets/Footer/ui/Footer.svelte rename to src/widgets/Footer/ui/Footer/Footer.svelte index 390e9d4..bb12a42 100644 --- a/src/widgets/Footer/ui/Footer.svelte +++ b/src/widgets/Footer/ui/Footer/Footer.svelte @@ -7,7 +7,7 @@ import { cn } from '$shared/lib'; import type { ResponsiveManager } from '$shared/lib/helpers'; import { getContext } from 'svelte'; -import FooterLink from './FooterLink.svelte'; +import FooterLink from '../FooterLink/FooterLink.svelte'; const responsive = getContext('responsive'); const isVertical = $derived(responsive?.isDesktop || responsive?.isDesktopLarge); @@ -21,17 +21,14 @@ const currentYear = new Date().getFullYear(); )} > -
-
- - GlyphDiff © 2025 — {currentYear} - -
+ {#if isVertical} +
+
+ + GlyphDiff © 2025 — {currentYear} + +
+ {/if}
diff --git a/src/widgets/Footer/ui/Footer.svelte.test.ts b/src/widgets/Footer/ui/Footer/Footer.svelte.test.ts similarity index 100% rename from src/widgets/Footer/ui/Footer.svelte.test.ts rename to src/widgets/Footer/ui/Footer/Footer.svelte.test.ts diff --git a/src/widgets/Footer/ui/FooterLink.svelte b/src/widgets/Footer/ui/FooterLink/FooterLink.svelte similarity index 100% rename from src/widgets/Footer/ui/FooterLink.svelte rename to src/widgets/Footer/ui/FooterLink/FooterLink.svelte