init
This commit is contained in:
27
worklenz-frontend/src/components/AuthPageHeader.tsx
Normal file
27
worklenz-frontend/src/components/AuthPageHeader.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import { Flex, Typography } from 'antd';
|
||||
import logo from '../assets/images/logo.png';
|
||||
import logoDark from '@/assets/images/logo-dark-mode.png';
|
||||
import { useAppSelector } from '@/hooks/useAppSelector';
|
||||
|
||||
type AuthPageHeaderProp = {
|
||||
description: string;
|
||||
};
|
||||
|
||||
// this page header used in only in auth pages
|
||||
const AuthPageHeader = ({ description }: AuthPageHeaderProp) => {
|
||||
const themeMode = useAppSelector(state => state.themeReducer.mode);
|
||||
return (
|
||||
<Flex vertical align="center" gap={8} style={{ marginBottom: 24 }}>
|
||||
<img
|
||||
src={themeMode === 'dark' ? logoDark : logo}
|
||||
alt="worklenz logo"
|
||||
style={{ width: '100%', maxWidth: 220 }}
|
||||
/>
|
||||
<Typography.Text style={{ color: '#8c8c8c', maxWidth: 400, textAlign: 'center' }}>
|
||||
{description}
|
||||
</Typography.Text>
|
||||
</Flex>
|
||||
);
|
||||
};
|
||||
|
||||
export default AuthPageHeader;
|
||||
Reference in New Issue
Block a user