Skip to content

Commit

Permalink
Header with breadcrumbs and version information
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurumiiw committed Dec 8, 2024
1 parent 3c11712 commit 314acbe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/app/ui/emulator.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
margin: 1em;
}

.versionInfo {
position: absolute;
right: 10px;
}

.paper {
margin: 5px;
}
Expand Down
17 changes: 15 additions & 2 deletions src/components/emulator/emulator.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
"use client";

import {
AppBar, Breadcrumbs,
Button,
Card,
FormControlLabel,
FormControlLabel, IconButton,
Link,
Paper,
Switch,
TextField,
TextField, Toolbar,
Tooltip,
Typography
} from "@mui/material";
Expand Down Expand Up @@ -859,6 +860,18 @@ export default function Emulator() {
}

return <>
<AppBar className={styles.header} position={"static"} color="transparent">
<Toolbar variant="dense">
<Breadcrumbs aria-label="breadcrumb">
<Link href={"https://www.hackerspace-ntnu.no"} underline="hover" color="inherit">Hackerspace NTNU</Link>
<Typography color="inherit">Breadboard Computer</Typography>
<Typography color="inherit" sx={{ color: 'text.primary' }}>Emulator</Typography>
</Breadcrumbs>
<Typography variant={"subtitle2"} sx={{ color: 'text.secondary' }} className={styles.versionInfo}>
{process.env.BUILD_VERSION ? "v" + process.env.BUILD_VERSION : "v1.081224a"}
</Typography>
</Toolbar>
</AppBar>
<Grid container className={styles.grid}>
<Grid size={8}>
<Card className={styles.buttons}>
Expand Down

0 comments on commit 314acbe

Please sign in to comment.