update i18n example

This commit is contained in:
Alexandre Chopin 2017-02-13 19:08:22 +01:00
parent e01093b2ac
commit 2c33be31d5
6 changed files with 86 additions and 34 deletions

View File

@ -1,21 +1,13 @@
<template>
<div class="Content">
<div class="container">
<h1 class="Content__Title">{{ $t('about.title') }}</h1>
<p>{{ $t('about.introduction') }}</p>
</div>
</div>
<about/>
</template>
<style>
.Content
{
padding: 50px 0;
text-align: center;
<script>
import About from '~/partials/About.vue'
export default {
components: {
About
}
}
.Content__Title
{
font-weight: 300;
padding-bottom: 30px;
}
</style>
</script>

View File

@ -1,21 +1,13 @@
<template>
<div class="Content">
<div class="container">
<h1 class="Content__Title">{{ $t('home.title') }}</h1>
<p>{{ $t('home.introduction') }}</p>
</div>
</div>
<home/>
</template>
<style>
.Content
{
padding: 50px 0;
text-align: center;
<script>
import Home from '~/partials/Home.vue'
export default {
components: {
Home
}
}
.Content__Title
{
font-weight: 300;
padding-bottom: 30px;
}
</style>
</script>

View File

@ -0,0 +1,13 @@
<template>
<about/>
</template>
<script>
import About from '~/partials/About.vue'
export default {
components: {
About
}
}
</script>

View File

@ -0,0 +1,13 @@
<template>
<home/>
</template>
<script>
import Home from '~/partials/Home.vue'
export default {
components: {
Home
}
}
</script>

View File

@ -0,0 +1,21 @@
<template>
<div class="Content">
<div class="container">
<h1 class="Content__Title">{{ $t('about.title') }}</h1>
<p>{{ $t('about.introduction') }}</p>
</div>
</div>
</template>
<style>
.Content
{
padding: 50px 0;
text-align: center;
}
.Content__Title
{
font-weight: 300;
padding-bottom: 30px;
}
</style>

View File

@ -0,0 +1,21 @@
<template>
<div class="Content">
<div class="container">
<h1 class="Content__Title">{{ $t('home.title') }}</h1>
<p>{{ $t('home.introduction') }}</p>
</div>
</div>
</template>
<style>
.Content
{
padding: 50px 0;
text-align: center;
}
.Content__Title
{
font-weight: 300;
padding-bottom: 30px;
}
</style>