-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathHeader.tsx
76 lines (72 loc) · 1.59 KB
/
Header.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import React from 'react'
import styles from '../styles/Components/CustomHeader.module.css'
import {
BellOutlined,
MessageOutlined,
DownOutlined,
UserOutlined,
} from '@ant-design/icons'
import { Dropdown, Menu, Space } from 'antd'
const menu = (
<Menu
items={[
{
label: <a href="https://www.antgroup.com">1st menu item</a>,
key: '0',
},
{
label: <a href="https://www.aliyun.com">2nd menu item</a>,
key: '1',
},
{
type: 'divider',
},
{
label: '3rd menu item',
key: '3',
},
]}
/>
)
const CustomHeader = () => {
return (
<div className={styles.custom__header__wrapper}>
<div className={styles.custom__part__1}>
<div className={styles.custom__institute__name}>
<div className={styles.insitute__title}>
Indian Institute of Information Technology, Vadodara
</div>
</div>
</div>
<div className={styles.custom__part__2}>
<div>
<BellOutlined className={styles.header__icon__style} />
</div>
<div>
{/* #B2B2B2 */}
<MessageOutlined className={styles.header__icon__style} />
</div>
<div className={styles.admin__dropdown}>
<div className={styles.admin__photo}>
<UserOutlined className={styles.header__icon__style} />
</div>
<div>
<Dropdown
overlay={menu}
trigger={['click']}
className={styles.custom__dropdown}
>
<a onClick={(e) => e.preventDefault()}>
<Space>
Dhruv Dave
<DownOutlined />
</Space>
</a>
</Dropdown>
</div>
</div>
</div>
</div>
)
}
export default CustomHeader