Changeset 35431
- Timestamp:
- 2021-09-20T14:23:43+12:00 (3 years ago)
- Location:
- main/trunk/model-interfaces-dev/atea
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/App.vue
r35430 r35431 3 3 <span class="monospace-font-sizer">ngÄ tama a rangi</span> 4 4 5 <div class="paper"> 5 <div class="app-bar"> 6 <div class="app-bar-content"> 7 <span class="heading1">{{ translations.get("Title") }}</span> 8 9 <a class="btn-primary theme-accent" href="https://koreromaori.io" target="_blank"> 10 <span class="material-icons mdi-m">open_in_new</span> 11 <u>koreromaori.io</u> 12 </a> 13 14 <toggle-button class="theme-accent" v-model="showInfo" :reverseState="true"> 15 <span class="material-icons mdi-l">info</span> 16 </toggle-button> 17 </div> 18 19 <div v-if="showInfo" class="card border-accent"> 20 A tool to transcribe audio recordings of spoken MÄori. Basic support for editing the transcriptions is provided, 21 and they can be downloaded in multiple formats. 22 <br /> 23 The actual transcriptions are produced with gratitude by using <a href="https://koreromaori.io">koreromaori.io's</a> service. 24 </div> 25 </div> 26 27 <div class="paper content"> 6 28 <AudioUpload /> 7 29 </div> 8 30 9 <ul id="transcription-list" class="list-view ">31 <ul id="transcription-list" class="list-view content"> 10 32 <transition-group name="transcription-list"> 11 33 <li class="list-item transcription-list-item" v-for="[id, transcription] in transcriptions" :key="id"> … … 28 50 } 29 51 52 .app-bar { 53 display: flex; 54 flex-direction: column; 55 gap: 1em; 56 57 color: var(--primary-fg-color); 58 background-color: var(--primary-bg-color-l1); 59 box-shadow: 0px 0px 4px 3px #6d6d6d; 60 61 padding: 1em; 62 margin-bottom: 1em; 63 } 64 65 .app-bar-content { 66 display: flex; 67 align-items: center; 68 gap: 1em; 69 70 width: 100%; 71 72 & :first-child { 73 flex-grow: 1; 74 } 75 } 76 77 .content { 78 margin: 1em; 79 } 80 30 81 .transcription-list-item { 31 82 transition: all 0.8s ease; … … 45 96 import { mapState } from "vuex"; 46 97 import AudioUpload from "./components/AudioUpload.vue" 98 import ToggleButton from "./components/ToggleButton.vue"; 47 99 import TranscriptionItem from "./components/TranscriptionItem.vue" 48 100 … … 51 103 components: { 52 104 AudioUpload, 53 TranscriptionItem 105 TranscriptionItem, 106 ToggleButton 54 107 }, 55 108 data() { … … 57 110 /** @type {{id: String, url: String} | null} */ 58 111 currentlyLoadedAudio: null, 59 player: new Audio() 112 player: new Audio(), 113 showInfo: false 60 114 } 61 115 }, -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/ToggleButton.vue
r35412 r35431 1 1 <template> 2 <button class="base" @click="toggle" :class="{ 'toggled': m odelValue }">2 <button class="base" @click="toggle" :class="{ 'toggled': myValue }" type="button"> 3 3 <slot /> 4 4 </button> … … 24 24 name: "ToggleButton", 25 25 props: { 26 modelValue: Boolean 26 modelValue: Boolean, 27 reverseState: Boolean 27 28 }, 28 29 emits: [ "update:modelValue" ], 30 computed: { 31 myValue: { 32 get() { 33 return this.reverseState ? !this.modelValue : this.modelValue; 34 }, 35 set(newValue) { 36 this.$emit("update:modelValue", this.reverseState ? !newValue : newValue); 37 } 38 } 39 }, 29 40 methods: { 30 41 toggle() { 31 this. $emit("update:modelValue", !this.modelValue);42 this.myValue = !this.myValue; 32 43 } 33 44 } -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/components/TranscriptionItem.vue
r35429 r35431 3 3 <!-- Header containing info and actions for the transcription --> 4 4 <div class="transcription__header"> 5 <button class="btn-fab" v-on:click="playAudio " type="button">5 <button class="btn-fab" v-on:click="playAudio(0)" type="button"> 6 6 <span class="material-icons mdi-l">play_arrow</span> 7 7 </button> -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/styles/_material.scss
r35430 r35431 9 9 $primary-bg-color: #2191c0; 10 10 11 $accent-bg-color: #19769e;//rgb(240, 176, 0); 12 11 13 :root { 12 14 --primary-bg-color-l1: #{$primary-bg-color-l1}; 13 15 --primary-bg-color: #{$primary-bg-color}; 14 15 16 --primary-fg-color: white; 16 17 18 --accent-bg-color: #{$accent-bg-color}; 19 --accent-fg-color: white;//rgb(61, 61, 61); 20 21 --body-color: rgb(39, 39, 39); 22 17 23 --primary-box-shadow: 0px 2px 4px 0px #505050; 18 24 --primary-box-shadow-thin: 0px 1px 3px 0px #747474; … … 20 26 21 27 --paper-color: #FCFCFC; 22 --page-bg-color: #f7f4f0;23 28 24 29 --border-radius: 0.3em; … … 42 47 } 43 48 49 .theme-accent { 50 --primary-bg-color: var(--accent-bg-color); 51 --primary-fg-color: var(--accent-fg-color); 52 } 53 54 .border-accent { 55 border: 2px var(--accent-bg-color) solid; 56 } 57 44 58 /* === End theme definitions */ 45 59 … … 47 61 48 62 .paper { 49 background-color: var(--paper-color);50 63 padding: 1.2em; 51 64 border-radius: var(--border-radius); 65 66 background-color: var(--paper-color); 67 color: var(--body-color); 52 68 box-shadow: var(--primary-box-shadow); 53 69 } … … 55 71 .card { 56 72 @extend .paper; 57 margin: 1em;58 73 59 74 box-shadow: var(--primary-box-shadow-thin); … … 89 104 cursor: pointer; 90 105 font-size: 16px; 106 text-decoration: none; 91 107 margin: 0 1px 3px 1px; /* Keeps space around the box shadow */ 92 108 … … 106 122 107 123 border-radius: 50%; 108 padding: 0. 2em;124 padding: 0.3em; 109 125 } 110 126 … … 357 373 358 374 .heading1 { 359 font-size: 48px; 375 font-size: 40px; 376 font-weight: 300; 360 377 } 361 378 -
main/trunk/model-interfaces-dev/atea/korero-maori-asr/src/styles/theme.scss
r35429 r35431 4 4 5 5 @use "./_material.scss"; 6 @import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&family=Roboto:wght@ 400;700&display=swap');6 @import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&family=Roboto:wght@300;400;700&display=swap'); 7 7 @import url('https://fonts.googleapis.com/icon?family=Material+Icons'); 8 8 … … 15 15 :root { 16 16 --monospace-font: 16px 'Roboto Mono', sans-serif; 17 --page-bg-color: #f7f4f0; 17 18 } 18 19 … … 21 22 font-family: 'Roboto', sans-serif; 22 23 font-size: 16px; 24 25 margin: 0; 26 padding: 0; 23 27 24 28 -webkit-font-smoothing: antialiased; -
main/trunk/model-interfaces-dev/atea/resources/interface_atea.properties
r35411 r35431 1 atea.Title=Korero MÄori Transcription Interface 2 1 3 atea.AudioUpload_SelectFileText=Select audio file/s... 2 4 atea.AudioUpload_TranscribeFiles=Transcribe -
main/trunk/model-interfaces-dev/atea/resources/interface_atea_mi.properties
r35411 r35431 1 atea.Title=Atanga Tuhituhi Korero MÄori 2 1 3 atea.AudioUpload_SelectFileText=Tohua he konae oro... 2 4 atea.AudioUpload_TranscribeFiles=Tuhia -
main/trunk/model-interfaces-dev/atea/transform/pages/korero-maori-asr.xsl
r35411 r35431 47 47 48 48 <gsf:style> 49 .ui-widget-content a { 50 color: inherit; 51 } 52 49 53 #container { 50 54 background-color: var(--page-bg-color); … … 62 66 #topArea { 63 67 padding: 0.5em; 68 background-color: var(--primary-bg-color-l1); 69 } 70 71 .app-bar { 72 box-shadow: 0 3px 4px -3px #404040; 64 73 border-radius: 0 0 5px 5px; 65 margin-bottom: 2em;66 67 background-color: var(--primary-bg-color);68 box-shadow: var(--primary-box-shadow);69 74 } 70 75 </gsf:style>
Note:
See TracChangeset
for help on using the changeset viewer.