Skip to content

Commit

Permalink
update styling
Browse files Browse the repository at this point in the history
  • Loading branch information
stoikal committed Aug 30, 2021
1 parent 7c6f364 commit 6daaa4f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
},
"dependencies": {
Expand Down
21 changes: 17 additions & 4 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<template>
<div id="app">
<h1>Aksara Latin ke Aksara Jawa (simplified)</h1>
<textarea :value="inputText" rows="8" cols="60" @input.prevent="handleInputChange"/>
<textarea id="input-text" :value="inputText" rows="5" @input.prevent="handleInputChange"/>
<br />
<textarea :value="resultText" rows="8" cols="60" disabled/>
<textarea id="output-text" :value="outputText" rows="8" disabled/>
</div>
</template>

Expand All @@ -15,11 +15,11 @@ export default Vue.extend({
name: 'App',
data() {
return {
inputText: ''
inputText: 'Saben umat manungsa lair kanthi hak-hak kang padha'
}
},
computed: {
resultText(): string {
outputText(): string {
return toJavaneseScript(this.inputText)
}
},
Expand All @@ -34,15 +34,28 @@ export default Vue.extend({
</script>

<style>
* {
box-sizing: border-box;
}
#app {
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
max-width: 1000px;
margin: 0 auto;
}
textarea {
font-size: 2em;
width: 100%;
max-width: 800px;
resize: vertical;
}
#input-text {
font-size: 1.5em;
}
</style>

0 comments on commit 6daaa4f

Please sign in to comment.