Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions src/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import TuneIcon from 'vue-material-design-icons/Tune.vue';
import BugIcon from 'vue-material-design-icons/Bug.vue';
import PowerPlugIcon from 'vue-material-design-icons/PowerPlug.vue';
import ControllerIcon from 'vue-material-design-icons/ControllerClassic.vue';
import MenuRightIcon from 'vue-material-design-icons/MenuRight.vue';
import MenuLeftIcon from 'vue-material-design-icons/MenuLeft.vue';

import { useRoslibStore } from '@/store/roslibStore';
import { useControllerStore } from '@/store/controllerStore';
Expand Down Expand Up @@ -97,13 +99,15 @@ const pageIconArr: PageIcon = [
helperText: 'Experimental page to test modules',
},
];

</script>
<template>
<nav>
<section id="logo-section">
<img id="logo" src="../assets/trickfire_logo_transparent.png" alt="Trickfire logo" />
<h1 id="logo-text">Mission Control</h1>
</section>
<component :is=MenuLeftIcon class="arrow-icon" id="arrow-left" alt="Arrow left" />
<section id="page-section">
<RouterLink
v-for="(pageIcon, index) in pageIconArr"
Expand All @@ -117,6 +121,7 @@ const pageIconArr: PageIcon = [
<component :is="pageIcon.icon" class="page-icon" :title="pageIcon.helperText" />
</RouterLink>
</section>
<component :is=MenuRightIcon class="arrow-icon" id="arrow-right" alt="Arrow right" />
<section id="states-section">
<div id="operation-selector" class="container">
<button
Expand Down Expand Up @@ -213,7 +218,18 @@ nav {
.page-icon {
transform: scale(1.25);
}
}
}
.arrow-icon {
font-size: 250%;
background-color: var(--grey);

}
#arrow-left {
border-left: 2px solid var(--white);
}
#arrow-right {
border-right: 2px solid var(--white);
}
.navbar-tab:not(.current-page):hover {
background-color: hsl(0, 0%, 16%);
}
Expand Down Expand Up @@ -256,8 +272,6 @@ nav {
overflow-y: hidden;
scrollbar-width: none;
flex-grow: 1;
border-right: 2px solid var(--white);
border-left: 2px solid var(--white);
}
#states-section {
display: flex;
Expand Down