aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/TopBar.tsx
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-12-14 17:00:49 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-12-21 18:34:11 +0100
commit789e122f2108e1f27a9664864cf6e829c2ceb92e (patch)
treef6be35c83ce8f225d093303020db549798d828d0 /subprojects/frontend/src/TopBar.tsx
parentrefactor(store): compare VersionedMap instances (diff)
downloadrefinery-789e122f2108e1f27a9664864cf6e829c2ceb92e.tar.gz
refinery-789e122f2108e1f27a9664864cf6e829c2ceb92e.tar.zst
refinery-789e122f2108e1f27a9664864cf6e829c2ceb92e.zip
feat(frontend): add links to top bar
Diffstat (limited to 'subprojects/frontend/src/TopBar.tsx')
-rw-r--r--subprojects/frontend/src/TopBar.tsx53
1 files changed, 48 insertions, 5 deletions
diff --git a/subprojects/frontend/src/TopBar.tsx b/subprojects/frontend/src/TopBar.tsx
index 81e11ac8..5a825512 100644
--- a/subprojects/frontend/src/TopBar.tsx
+++ b/subprojects/frontend/src/TopBar.tsx
@@ -1,4 +1,8 @@
1import GitHubIcon from '@mui/icons-material/GitHub';
1import AppBar from '@mui/material/AppBar'; 2import AppBar from '@mui/material/AppBar';
3import Button from '@mui/material/Button';
4import IconButton from '@mui/material/IconButton';
5import Stack from '@mui/material/Stack';
2import Toolbar from '@mui/material/Toolbar'; 6import Toolbar from '@mui/material/Toolbar';
3import Typography from '@mui/material/Typography'; 7import Typography from '@mui/material/Typography';
4import { styled, useTheme } from '@mui/material/styles'; 8import { styled, useTheme } from '@mui/material/styles';
@@ -59,6 +63,7 @@ export default observer(function TopBar(): JSX.Element {
59 const overlayVisible = useWindowControlsOverlayVisible(); 63 const overlayVisible = useWindowControlsOverlayVisible();
60 const { breakpoints } = useTheme(); 64 const { breakpoints } = useTheme();
61 const small = useMediaQuery(breakpoints.down('sm')); 65 const small = useMediaQuery(breakpoints.down('sm'));
66 const large = useMediaQuery(breakpoints.up('md'));
62 67
63 return ( 68 return (
64 <AppBar 69 <AppBar
@@ -92,11 +97,49 @@ export default observer(function TopBar(): JSX.Element {
92 <Typography variant="h6" component="h1" flexGrow={1}> 97 <Typography variant="h6" component="h1" flexGrow={1}>
93 Refinery {import.meta.env.DEV && <DevModeBadge>Dev</DevModeBadge>} 98 Refinery {import.meta.env.DEV && <DevModeBadge>Dev</DevModeBadge>}
94 </Typography> 99 </Typography>
95 <GenerateButton 100 <Stack direction="row" marginRight={1}>
96 editorStore={editorStore} 101 <GenerateButton editorStore={editorStore} hideWarnings={small} />
97 hideWarnings={small} 102 {large && (
98 sx={{ marginRight: 1 }} 103 <>
99 /> 104 <Button
105 arial-label="Budapest University of Technology and Economics, Critical Systems Research Group"
106 className="rounded"
107 color="inherit"
108 href="https://ftsrg.mit.bme.hu"
109 target="_blank"
110 sx={{ marginLeft: 1 }}
111 >
112 BME FTSRG
113 </Button>
114 <Button
115 aria-label="McGill University, Department of Electrical and Computer Engineering"
116 className="rounded"
117 color="inherit"
118 href="https://www.mcgill.ca/ece/daniel-varro"
119 target="_blank"
120 >
121 McGill ECE
122 </Button>
123 <Button
124 aria-label="2022 Amazon Research Awards recipent"
125 className="rounded"
126 color="inherit"
127 href="https://www.amazon.science/research-awards/recipients/daniel-varro-fall-2021"
128 target="_blank"
129 >
130 Amazon Science
131 </Button>
132 <IconButton
133 aria-label="GitHub"
134 href="https://github.com/graphs4value/refinery"
135 target="_blank"
136 color="inherit"
137 >
138 <GitHubIcon />
139 </IconButton>
140 </>
141 )}
142 </Stack>
100 <ToggleDarkModeButton /> 143 <ToggleDarkModeButton />
101 </Toolbar> 144 </Toolbar>
102 </AppBar> 145 </AppBar>