From 6d4b29984ae267343826d7b8cbbc6f68404e82cd Mon Sep 17 00:00:00 2001 From: Artur Khelshtein Date: Tue, 26 Dec 2023 00:05:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=B5=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B0=D1=82=D1=8C=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D1=82=20footer=20=D0=BF=D0=BE=D0=B4=20FSD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Footer/Footer.tsx | 85 ------------------- src/components/Subscribe/Subscribe.tsx | 2 +- src/components/header/header.tsx | 11 ++- src/components/logo/Logo.tsx | 25 ------ .../SubscribeForm/SubscribeForm.tsx | 4 +- .../SubscribeForm/subscribeForm.module.scss | 0 src/mockData/coreBaseData.ts | 54 ++++++++++++ src/pages/RootPage/RootPage.tsx | 2 +- .../images/footer/icon-subsc.svg | 0 src/{assets => shared}/images/footer/io.svg | 0 .../images/footer/mastercard.svg | 0 src/{assets => shared}/images/footer/mir.svg | 0 src/{assets => shared}/images/footer/visa.svg | 0 .../images/footer/webmoney.svg | 0 src/shared/ui/logo/Logo.tsx | 30 +++++++ .../ui}/logo/logo.module.scss | 0 src/widgets/Footer/Footer.tsx | 76 +++++++++++++++++ .../Footer/footer.module.scss | 9 +- 18 files changed, 182 insertions(+), 116 deletions(-) delete mode 100644 src/components/Footer/Footer.tsx delete mode 100644 src/components/logo/Logo.tsx rename src/{components => entities}/SubscribeForm/SubscribeForm.tsx (91%) rename src/{components => entities}/SubscribeForm/subscribeForm.module.scss (100%) create mode 100644 src/mockData/coreBaseData.ts rename src/{assets => shared}/images/footer/icon-subsc.svg (100%) rename src/{assets => shared}/images/footer/io.svg (100%) rename src/{assets => shared}/images/footer/mastercard.svg (100%) rename src/{assets => shared}/images/footer/mir.svg (100%) rename src/{assets => shared}/images/footer/visa.svg (100%) rename src/{assets => shared}/images/footer/webmoney.svg (100%) create mode 100644 src/shared/ui/logo/Logo.tsx rename src/{components => shared/ui}/logo/logo.module.scss (100%) create mode 100644 src/widgets/Footer/Footer.tsx rename src/{components => widgets}/Footer/footer.module.scss (96%) diff --git a/src/components/Footer/Footer.tsx b/src/components/Footer/Footer.tsx deleted file mode 100644 index d9c5163a..00000000 --- a/src/components/Footer/Footer.tsx +++ /dev/null @@ -1,85 +0,0 @@ -import Logo from '../logo/Logo' -import VisaIcon from '@/assets/images/footer/visa.svg' -import MastercardIcon from '@/assets/images/footer/mastercard.svg' -import MirIcon from '@/assets/images/footer/mir.svg' -import WebmoneyIcon from '@/assets/images/footer/webmoney.svg' -import UmoneyIcon from '@/assets/images/footer/io.svg' -import SubscribeForm from '../SubscribeForm/SubscribeForm' -import Link from '@/shared/ui/Link/Link' -import styles from './footer.module.scss' - -function Footer() { - const onSubmitHandler = () => {} - return ( - - ) -} - -export default Footer diff --git a/src/components/Subscribe/Subscribe.tsx b/src/components/Subscribe/Subscribe.tsx index 6b514c39..9c91c945 100644 --- a/src/components/Subscribe/Subscribe.tsx +++ b/src/components/Subscribe/Subscribe.tsx @@ -1,6 +1,6 @@ import styles from './Subscribe.module.scss' import imgSubs from '@/assets/images/img-subsc-small.png' -import SubscribeForm from '../SubscribeForm/SubscribeForm' +import SubscribeForm from '../../entities/SubscribeForm/SubscribeForm' const Subscribe = () => { const onSubmitHandler = () => {} diff --git a/src/components/header/header.tsx b/src/components/header/header.tsx index 2eaab324..31530e79 100644 --- a/src/components/header/header.tsx +++ b/src/components/header/header.tsx @@ -1,6 +1,7 @@ +import { coreBaseData } from '@/mockData/coreBaseData' import { useMemo } from 'react' import classNames from 'classnames' -import Logo from '../logo/Logo' +import Logo from '../../shared/ui/logo/Logo' import Search from '../search/search' import ArrowIcon from '@/assets/icons/arrow.svg' import LightningIcon from '@/assets/images/header/lightning.svg' @@ -151,7 +152,13 @@ function Header() {
- +
diff --git a/src/components/logo/Logo.tsx b/src/components/logo/Logo.tsx deleted file mode 100644 index b9514daf..00000000 --- a/src/components/logo/Logo.tsx +++ /dev/null @@ -1,25 +0,0 @@ -import { FC } from 'react' -import logo from '@/assets/images/logo/maxboom.jpg' -import styles from './logo.module.scss' -import Link from '@/shared/ui/Link/Link' - -type TLogoProps = { - width: string - height: string -} -/** - * @param {string} width - ширина логотипа - * @param {string} height - высота логотипа - */ - -const Logo: FC = ({ width, height }) => { - return ( -
- - maxboom - -
- ) -} - -export default Logo diff --git a/src/components/SubscribeForm/SubscribeForm.tsx b/src/entities/SubscribeForm/SubscribeForm.tsx similarity index 91% rename from src/components/SubscribeForm/SubscribeForm.tsx rename to src/entities/SubscribeForm/SubscribeForm.tsx index a66df0e5..7c1d222f 100644 --- a/src/components/SubscribeForm/SubscribeForm.tsx +++ b/src/entities/SubscribeForm/SubscribeForm.tsx @@ -36,7 +36,9 @@ const SubscribeForm: FC = ({ className, type, onSubmit }) => { {/* @TODO: Добавить компонент Label https://github.com/Studio-Yandex-Practicum/maxboom_frontend/issues/102 */} Подписаться на рассылку - Мы не будем присылать вам спам. Только скидки и выгодные предложения + + Мы не будем присылать вам спам. Только скидки и выгодные предложения +