NavBar to Upload and Apply pages

This commit is contained in:
Vojtěch Káně 2021-01-23 14:18:39 +01:00
parent 34bb71ad4c
commit 662ea4fcd2
3 changed files with 24 additions and 4 deletions

View File

@ -0,0 +1,18 @@
<template>
<b-navbar>
<template #brand>
<b-navbar-item tag="router-link" :to="{ path: '/' }">
<img
src="@/assets/logo.png"
alt="Res Judicata"
>
</b-navbar-item>
</template>
</b-navbar>
</template>
<script>
export default {
name: "NavBar"
}
</script>

View File

@ -1,5 +1,6 @@
<template> <template>
<div id="component"> <div id="component">
<NavBar></NavBar>
<div class="container is-flex is-align-items-center is-flex-direction-column"> <div class="container is-flex is-align-items-center is-flex-direction-column">
<div class="field"> <div class="field">
<div class="file is-info has-name"> <div class="file is-info has-name">
@ -49,7 +50,6 @@
<style scoped> <style scoped>
#component { #component {
margin: 2rem;
max-height: 100vh; max-height: 100vh;
} }
@ -62,9 +62,10 @@
// @ is an alias to /src // @ is an alias to /src
import ICry from "../components/ICry"; import ICry from "../components/ICry";
import NavBar from "../components/NavBar";
export default { export default {
name: 'Apply', name: 'Apply',
components: {ICry}, components: {ICry, NavBar},
props: { props: {
}, },
data: function() { data: function() {

View File

@ -1,5 +1,6 @@
<template> <template>
<div id="component"> <div id="component">
<NavBar></NavBar>
<div class="container is-flex is-align-items-center is-flex-direction-column"> <div class="container is-flex is-align-items-center is-flex-direction-column">
<div class="field"> <div class="field">
<div class="file is-info has-name"> <div class="file is-info has-name">
@ -54,7 +55,6 @@
} }
#component { #component {
margin: 2rem;
max-height: 100vh; max-height: 100vh;
} }
@ -67,9 +67,10 @@
// @ is an alias to /src // @ is an alias to /src
import ICry from "../components/ICry"; import ICry from "../components/ICry";
import NavBar from "../components/NavBar";
export default { export default {
name: 'Upload', name: 'Upload',
components: {ICry}, components: {ICry, NavBar},
props: { props: {
"detections": Array "detections": Array
}, },