-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.tsx
More file actions
41 lines (38 loc) · 1.42 KB
/
header.tsx
File metadata and controls
41 lines (38 loc) · 1.42 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
import { createComponent, Shade, styledShade } from '@furystack/shades'
import { AppBar, Button, AppBarLink as ShadeAppBarLink } from '@furystack/shades-common-components'
import { environmentOptions } from '../environment-options.js'
import { GithubLogo } from './github-logo/index.js'
import { ThemeSwitch } from './theme-switch/index.js'
const AppBarLink = styledShade(ShadeAppBarLink, {
display: 'flex',
gap: '8px',
})
export const Header = Shade({
shadowDomName: 'shade-app-header',
render: () => {
return (
<AppBar id="header">
<AppBarLink title="JSON Tools" href="/">
<i className="material-symbols-outlined">data_object</i> JSON Tools
</AppBarLink>
<AppBarLink href="/validate">
<i className="material-symbols-outlined">check_circle</i>
Validate
</AppBarLink>
<AppBarLink href="/compare">
<i className="material-symbols-outlined">compare_arrows</i>
Compare
</AppBarLink>
<div style={{ flex: '1' }} />
<div style={{ display: 'flex', placeContent: 'center', marginRight: '24px' }}>
<ThemeSwitch variant="outlined" />
<a href={environmentOptions.repository} target="_blank">
<Button variant="outlined" style={{ verticalAlign: 'baseline' }}>
<GithubLogo style={{ height: '18px' }} />
</Button>
</a>
</div>
</AppBar>
)
},
})