From 09fa019b4f6a323cf22658a17cb32db8035816a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D1=82=D1=8B=D0=BD=D0=BE=D0=B2=20=D0=9C?= =?UTF-8?q?=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=B5=D1=80=D0=B3=D0=B5?= =?UTF-8?q?=D0=B5=D0=B2=D0=B8=D1=87?= Date: Tue, 16 Dec 2025 22:03:26 +0300 Subject: [PATCH] Add logo --- package.json | 2 +- src/app/styles/antd.less | 5 + src/features/auth/Login/assets/index.ts | 3 + src/features/auth/Login/assets/logo.svg | 110 +++++++++++++++++++ src/features/auth/Login/index.tsx | 4 +- src/features/auth/Login/styles.module.less | 5 + src/widgets/layout/Header/assets/index.ts | 3 + src/widgets/layout/Header/assets/logo.svg | 92 ++++++++++++++++ src/widgets/layout/Header/index.tsx | 4 +- src/widgets/layout/Header/styles.module.less | 4 + 10 files changed, 228 insertions(+), 4 deletions(-) create mode 100644 src/features/auth/Login/assets/index.ts create mode 100644 src/features/auth/Login/assets/logo.svg create mode 100644 src/widgets/layout/Header/assets/index.ts create mode 100644 src/widgets/layout/Header/assets/logo.svg diff --git a/package.json b/package.json index 8326917d..52bfbfe9 100644 --- a/package.json +++ b/package.json @@ -80,7 +80,7 @@ "npm": ">10" }, "lint-staged": { - "src/**/*": "prettier --write --list-different", + "src/**/*.{ts,tsx,js,jsx,json,css,less}": "prettier --write --list-different", "src/**/*.{ts,tsx}": "eslint --fix" } } diff --git a/src/app/styles/antd.less b/src/app/styles/antd.less index f3745e77..3bb6a0bf 100644 --- a/src/app/styles/antd.less +++ b/src/app/styles/antd.less @@ -63,3 +63,8 @@ p:last-of-type { margin-bottom: 0; } + +.ant-layout-header { + padding-left: 10px; + padding-right: 20px; +} diff --git a/src/features/auth/Login/assets/index.ts b/src/features/auth/Login/assets/index.ts new file mode 100644 index 00000000..96d53932 --- /dev/null +++ b/src/features/auth/Login/assets/index.ts @@ -0,0 +1,3 @@ +import Logo from './logo.svg'; + +export { Logo }; diff --git a/src/features/auth/Login/assets/logo.svg b/src/features/auth/Login/assets/logo.svg new file mode 100644 index 00000000..21c04ce5 --- /dev/null +++ b/src/features/auth/Login/assets/logo.svg @@ -0,0 +1,110 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + diff --git a/src/features/auth/Login/index.tsx b/src/features/auth/Login/index.tsx index 3674baa2..fd0877cc 100644 --- a/src/features/auth/Login/index.tsx +++ b/src/features/auth/Login/index.tsx @@ -4,6 +4,7 @@ import { authService, LoginResponse, useLogin } from '@entities/auth'; import { Form, Input, Typography } from 'antd'; import { useTranslation } from 'react-i18next'; +import { Logo } from './assets'; import classes from './styles.module.less'; const { Title } = Typography; @@ -18,7 +19,8 @@ export const Login = () => { return (
- {t('auth')} + + {t('auth')} diff --git a/src/features/auth/Login/styles.module.less b/src/features/auth/Login/styles.module.less index b8a476b7..92c6e365 100644 --- a/src/features/auth/Login/styles.module.less +++ b/src/features/auth/Login/styles.module.less @@ -7,4 +7,9 @@ background-color: @white; border-radius: 16px; box-shadow: @box-shadow-base; + + .logo { + width: auto; + height: auto; + } } diff --git a/src/widgets/layout/Header/assets/index.ts b/src/widgets/layout/Header/assets/index.ts new file mode 100644 index 00000000..96d53932 --- /dev/null +++ b/src/widgets/layout/Header/assets/index.ts @@ -0,0 +1,3 @@ +import Logo from './logo.svg'; + +export { Logo }; diff --git a/src/widgets/layout/Header/assets/logo.svg b/src/widgets/layout/Header/assets/logo.svg new file mode 100644 index 00000000..96d3d052 --- /dev/null +++ b/src/widgets/layout/Header/assets/logo.svg @@ -0,0 +1,92 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + + + + diff --git a/src/widgets/layout/Header/index.tsx b/src/widgets/layout/Header/index.tsx index 2d1d0514..0336d90b 100644 --- a/src/widgets/layout/Header/index.tsx +++ b/src/widgets/layout/Header/index.tsx @@ -8,6 +8,7 @@ import { ChangeLanguageSelect } from '@shared/config'; import classes from './styles.module.less'; import { LogoutButton } from './components'; +import { Logo } from './assets'; const { Header: AntdHeader } = Layout; const { Text } = Typography; @@ -17,9 +18,8 @@ export const Header = () => { return ( - {/* TODO: [DOP-20026] Need to add logo */}
-
+
diff --git a/src/widgets/layout/Header/styles.module.less b/src/widgets/layout/Header/styles.module.less index 2ad81434..bfe5d9a7 100644 --- a/src/widgets/layout/Header/styles.module.less +++ b/src/widgets/layout/Header/styles.module.less @@ -6,9 +6,13 @@ .left { display: flex; align-items: center; + gap: 40px; .logo { min-width: 200px; + width: auto; + height: 64px; + padding: 10px; } .select {