Skip to content

Commit

Permalink
Display idioms
Browse files Browse the repository at this point in the history
  • Loading branch information
hayatroid committed Mar 27, 2024
1 parent bfc183c commit b9c4ddd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.vue
@@ -1,7 +1,9 @@
<script setup lang="ts">
import Game from './components/Game.vue'
</script>

<template>
<Game :id="0" />
</template>

<style scoped>
Expand Down
10 changes: 10 additions & 0 deletions src/components/Game.vue
@@ -1,7 +1,17 @@
<script setup lang="ts">
import idioms from '../assets/idioms.json'
const props = defineProps<{
id: number
}>()
const idiom_en = idioms[props.id].idiom_en
const idiom_ja = idioms[props.id].idiom_ja
</script>

<template>
<p>{{ idiom_ja }}</p>
<p>{{ idiom_en }}</p>
</template>

<style scoped>
Expand Down

0 comments on commit b9c4ddd

Please sign in to comment.