This commit is contained in:
chamikaJ
2025-04-17 18:28:54 +05:30
parent f583291d8a
commit 8825b0410a
2837 changed files with 241385 additions and 127578 deletions

View 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;