Skip to content

Commit c269fb5

Browse files
committed
Add logo
1 parent 71465a4 commit c269fb5

File tree

10 files changed

+228
-4
lines changed

10 files changed

+228
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"npm": ">10"
8181
},
8282
"lint-staged": {
83-
"src/**/*": "prettier --write --list-different",
83+
"src/**/*.{ts,tsx,js,jsx,json,css,less}": "prettier --write --list-different",
8484
"src/**/*.{ts,tsx}": "eslint --fix"
8585
}
8686
}

src/app/styles/antd.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,8 @@
6363
p:last-of-type {
6464
margin-bottom: 0;
6565
}
66+
67+
.ant-layout-header {
68+
padding-left: 10px;
69+
padding-right: 20px;
70+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Logo from './logo.svg';
2+
3+
export { Logo };
Lines changed: 110 additions & 0 deletions
Loading

src/features/auth/Login/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { authService, LoginResponse, useLogin } from '@entities/auth';
44
import { Form, Input, Typography } from 'antd';
55
import { useTranslation } from 'react-i18next';
66

7+
import { Logo } from './assets';
78
import classes from './styles.module.less';
89

910
const { Title } = Typography;
@@ -18,7 +19,8 @@ export const Login = () => {
1819

1920
return (
2021
<div className={classes.wrapper}>
21-
<Title>{t('auth')}</Title>
22+
<Logo className={classes.logo} />
23+
<Title level={2}>{t('auth')}</Title>
2224
<ManagedForm mutationFunction={authService.login} onSuccess={onSuccess}>
2325
<Form.Item label={t('username')} name="username" rules={[{ required: true }]}>
2426
<Input size="large" />

src/features/auth/Login/styles.module.less

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@
77
background-color: @white;
88
border-radius: 16px;
99
box-shadow: @box-shadow-base;
10+
11+
.logo {
12+
width: auto;
13+
height: auto;
14+
}
1015
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import Logo from './logo.svg';
2+
3+
export { Logo };
Lines changed: 92 additions & 0 deletions
Loading

src/widgets/layout/Header/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { ChangeLanguageSelect } from '@shared/config';
88

99
import classes from './styles.module.less';
1010
import { LogoutButton } from './components';
11+
import { Logo } from './assets';
1112

1213
const { Header: AntdHeader } = Layout;
1314
const { Text } = Typography;
@@ -17,9 +18,8 @@ export const Header = () => {
1718

1819
return (
1920
<AntdHeader className={classes.header}>
20-
{/* TODO: [DOP-20026] Need to add logo */}
2121
<div className={classes.left}>
22-
<div className={classes.logo} />
22+
<Logo className={classes.logo} />
2323
<div className={classes.select}>
2424
<SelectGroup />
2525
</div>

src/widgets/layout/Header/styles.module.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
.left {
77
display: flex;
88
align-items: center;
9+
gap: 40px;
910

1011
.logo {
1112
min-width: 200px;
13+
width: auto;
14+
height: 64px;
15+
padding: 10px;
1216
}
1317

1418
.select {

0 commit comments

Comments
 (0)