source: main/trunk/model-interfaces-dev/atea/ocr/src/App.vue@ 35762

Last change on this file since 35762 was 35762, checked in by cstephen, 2 years ago

Improve modal dialogs

File size: 1.3 KB
Line 
1<template>
2<div class="root">
3 <!-- <div class="app-bar theme-primary">
4 <div class="app-bar-content">
5 <span class="heading1">{{ translations.get("Title") }}</span>
6 </div>
7 </div> -->
8
9 <main-page class="content" />
10</div>
11
12<modal-dialog ref="modalDialog" />
13</template>
14
15<style lang="scss">
16html, body, #app {
17 height: 100%;
18 width: 100%;
19}
20
21.root {
22 display: flex;
23 flex-direction: column;
24 height: 100%;
25}
26
27.app-bar {
28 display: flex;
29 flex-direction: column;
30 gap: 1em;
31
32 background-color: var(--bg-color);
33 color: var(--fg-color);
34 box-shadow: 0px 0px 4px 3px #6d6d6d;
35
36 padding: 1em;
37 margin-bottom: 1em;
38}
39
40.app-bar-content {
41 display: flex;
42 align-items: center;
43 gap: 1em;
44
45 width: 100%;
46
47 & :first-child {
48 flex-grow: 1;
49 }
50}
51
52.content {
53 padding: 1em;
54 flex-grow: 1;
55}
56</style>
57
58<script>
59import { mapState } from "vuex";
60import MainPage from "./components/MainPage.vue"
61import ModalDialog, { ModalController } from "./components/ModalDialog.vue"
62
63export default {
64 name: "App",
65 components: {
66 MainPage,
67 ModalDialog
68 },
69 computed: {
70 ...mapState({
71 translations: state => state.translations
72 })
73 },
74 mounted() {
75 ModalController.setModal(this.$refs.modalDialog);
76 }
77}
78</script>
Note: See TracBrowser for help on using the repository browser.