-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHeader.tsx
More file actions
49 lines (48 loc) · 1.43 KB
/
Header.tsx
File metadata and controls
49 lines (48 loc) · 1.43 KB
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
import GitHubIcon from '@mui/icons-material/GitHub';
import { AppBar, Box, Button, Container, Toolbar } from '@mui/material';
import { Link as RouterLink } from 'react-router-dom';
import { Brand } from '../Brand/Brand';
import { ThemeToggle } from '../ThemeToggle/ThemeToggle';
export const Header = () => {
return (
<AppBar
position="sticky"
color="transparent"
elevation={0}
sx={{
backdropFilter: 'blur(10px)',
borderBottom: '1px solid',
borderColor: 'divider',
}}
>
<Container maxWidth="lg">
<Toolbar disableGutters sx={{ minHeight: 72, gap: 2, justifyContent: 'space-between' }}>
<Brand />
<Box sx={{ flexShrink: 0 }}>
<Button component={RouterLink} to="/docs" color="inherit">
Docs
</Button>
<Button
color="inherit"
href="https://www.npmjs.com/package/@dfsync/client"
target="_blank"
rel="noreferrer"
>
npm
</Button>
<Button
color="inherit"
href="https://github.com/dfsyncjs/dfsync/tree/main/packages/client"
target="_blank"
rel="noreferrer"
startIcon={<GitHubIcon />}
>
GitHub
</Button>
<ThemeToggle />
</Box>
</Toolbar>
</Container>
</AppBar>
);
};