diff --git a/components/HeroHome.vue b/components/HeroHome.vue new file mode 100644 index 0000000..12cd1e4 --- /dev/null +++ b/components/HeroHome.vue @@ -0,0 +1,21 @@ + + + {{ title }} + {{ subtitle }} + + + + \ No newline at end of file diff --git a/data/cat/index.json b/data/cat/index.json index a9e6bf2..ad7efd4 100644 --- a/data/cat/index.json +++ b/data/cat/index.json @@ -1,4 +1,9 @@ -{ - "title": "Benvingut", - "body": "Aquest és el contingut en català." -} \ No newline at end of file +[ + { + "component": "HeroHome", + "props": { + "title": "Benvingut al Kit", + "subtitle": "Tot per a l'economia social" + } + } +] \ No newline at end of file diff --git a/data/es/index.json b/data/es/index.json index f4a5c28..a452f79 100644 --- a/data/es/index.json +++ b/data/es/index.json @@ -1,4 +1,9 @@ -{ - "title": "Bienvenido", - "body": "Este es el contenido en español." -} +[ + { + "component": "HeroHome", + "props": { + "title": "Bienvenido al Kit", + "subtitle": "Todo para la economía social" + } + } +] diff --git a/pages/[langcode]/index.vue b/pages/[langcode]/index.vue index 38fcc92..f215b4c 100644 --- a/pages/[langcode]/index.vue +++ b/pages/[langcode]/index.vue @@ -1,24 +1,29 @@ - - - {{ content.title }} - {{ content.body }} - - - Idioma actual: {{ $store.getters['langcode'] }} - Ruta actual: {{ $route.params.langcode }} - - {{ $store.getters['langcode'] === 'es' ? 'Cambiar a Català' : 'Canviar a espanyol' }} - - + + + + + + - - \ No newline at end of file + \ No newline at end of file
{{ content.body }}
Idioma actual: {{ $store.getters['langcode'] }}
Ruta actual: {{ $route.params.langcode }}