mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-16 19:32:21 +01:00
Add sections
This commit is contained in:
20
src/views/projects/Projects.vue
Normal file
20
src/views/projects/Projects.vue
Normal file
@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<Navbar />
|
||||
|
||||
<main>
|
||||
<div class="container mx-auto">
|
||||
<h1 class="text-5xl font-bold">
|
||||
{{ t("hello") }}
|
||||
</h1>
|
||||
</div>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
import Navbar from "@/components/navbar/Navbar.vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import locale from "./locale.json";
|
||||
|
||||
const { t } = useI18n({ messages: locale });
|
||||
</script>
|
||||
8
src/views/projects/locale.json
Normal file
8
src/views/projects/locale.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"en": {
|
||||
"hello": "Hello"
|
||||
},
|
||||
"it": {
|
||||
"hello": "Ciao"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user