From 0ab354e14349ffeac96d71acf8c510c823d070ce Mon Sep 17 00:00:00 2001 From: RedrockJS Date: Wed, 3 Dec 2025 15:52:25 +0300 Subject: [PATCH] fix(global): add scroll-to-top --- .idea/workspace.xml | 26 ++++---------- src/app/layout.tsx | 3 +- src/shared/ui/icon/base.tsx | 17 +++++++++ src/shared/ui/icon/ui.tsx | 2 ++ src/widgets/index.ts | 1 + src/widgets/scroll-to-top/index.ts | 1 + src/widgets/scroll-to-top/styles.module.scss | 35 ++++++++++++++++++ src/widgets/scroll-to-top/ui.tsx | 38 ++++++++++++++++++++ 8 files changed, 102 insertions(+), 21 deletions(-) create mode 100644 src/widgets/scroll-to-top/index.ts create mode 100644 src/widgets/scroll-to-top/styles.module.scss create mode 100644 src/widgets/scroll-to-top/ui.tsx diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 61206ec..83b349f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,27 +5,13 @@ - - - - - - - - - - - + + + - - - - - - - @@ -128,7 +114,7 @@ - + diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 8c6b3a7..421ab2f 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,7 +3,7 @@ import { ReactNode } from 'react'; import { Montserrat, Roboto } from 'next/font/google'; import '@core/styles/globals.scss'; import '@core/styles/reset.scss'; -import { Footer, Header, MobileCallback } from '@/widgets'; +import { Footer, Header, MobileCallback, ScrollToTop } from '@/widgets'; import { ModalProvider } from '@core/providers/modal-provider'; const roboto = Roboto({ @@ -35,6 +35,7 @@ export default function RootLayout({
{children}