From bd9937e86c82de55e12f0c046b30baad0d13f322 Mon Sep 17 00:00:00 2001 From: RedrockJS Date: Thu, 4 Dec 2025 11:01:19 +0300 Subject: [PATCH] fix: add cookie notice --- .idea/workspace.xml | 28 +++--- src/app/cookie/page.tsx | 5 + src/app/layout.tsx | 11 ++- src/entities/beauty-button/ui.tsx | 2 +- src/views/cookie/index.ts | 1 + src/views/cookie/styles.module.scss | 55 +++++++++++ src/views/cookie/ui.tsx | 46 +++++++++ src/views/index.ts | 1 + src/widgets/cookie-notice/index.ts | 1 + src/widgets/cookie-notice/styles.module.scss | 98 ++++++++++++++++++++ src/widgets/cookie-notice/ui.tsx | 52 +++++++++++ src/widgets/index.ts | 1 + src/widgets/mobile-callback/ui.tsx | 18 +++- src/widgets/scroll-to-top/styles.module.scss | 6 +- 14 files changed, 305 insertions(+), 20 deletions(-) create mode 100644 src/app/cookie/page.tsx create mode 100644 src/views/cookie/index.ts create mode 100644 src/views/cookie/styles.module.scss create mode 100644 src/views/cookie/ui.tsx create mode 100644 src/widgets/cookie-notice/index.ts create mode 100644 src/widgets/cookie-notice/styles.module.scss create mode 100644 src/widgets/cookie-notice/ui.tsx diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c341728..73d1d5f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,18 +5,20 @@ - - - - - + + + + + + + - - - - + + - + + + - @@ -119,7 +121,7 @@ - + diff --git a/src/app/cookie/page.tsx b/src/app/cookie/page.tsx new file mode 100644 index 0000000..7c1b7a4 --- /dev/null +++ b/src/app/cookie/page.tsx @@ -0,0 +1,5 @@ +import { Cookie } from '@/views'; + +export default function Page() { + return ; +} diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 421ab2f..0dd706a 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -3,7 +3,13 @@ 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, ScrollToTop } from '@/widgets'; +import { + CookieNotice, + Footer, + Header, + MobileCallback, + ScrollToTop, +} from '@/widgets'; import { ModalProvider } from '@core/providers/modal-provider'; const roboto = Roboto({ @@ -35,8 +41,9 @@ export default function RootLayout({
{children}