feat: add credits component and update localization for multiple languages

This commit is contained in:
2025-09-05 13:32:24 +02:00
parent addb63a792
commit 16cf818f0d
5 changed files with 88 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ import type { ChatMessage } from '~~/types'
import { ChatState, ChatType } from '~~/types'
import ToolActivity from '~/components/tool/Activity.vue'
import ToolContact from '~/components/tool/Contact.vue'
import ToolCredits from '~/components/tool/Credits.vue'
import ToolDuplicated from '~/components/tool/Duplicated.vue'
import ToolHobbies from '~/components/tool/Hobbies.vue'
import ToolLanguage from '~/components/tool/Language.vue'
@@ -44,7 +45,7 @@ const componentMap: Record<ChatType, Component | undefined> = {
[ChatType.ABOUT]: undefined,
[ChatType.EXPERIENCES]: undefined,
[ChatType.STATUS]: undefined,
[ChatType.CREDITS]: undefined,
[ChatType.CREDITS]: ToolCredits,
[ChatType.RESUME]: undefined,
}

View File

@@ -0,0 +1,55 @@
<script lang="ts" setup>
const { t } = useI18n()
const year = ref(useNow().value.getFullYear())
</script>
<template>
<section class="prose dark:prose-invert">
<i18n-t keypath="tool.credits.made">
<template #nuxt>
<UButton
label="Nuxt Stack (Core, UI, I18n, Content)"
trailing-icon="i-logos-nuxt-icon"
variant="link"
to="https://nuxt.com"
target="_blank"
class="px-0"
/>
</template>
<template #vercel>
<UButton
label="Vercel"
trailing-icon="i-logos-vercel-icon"
variant="link"
to="https://vercel.com"
target="_blank"
class="px-0"
/>
</template>
</i18n-t>
<p>{{ t('tool.credits.heart') }}</p>
<i18n-t keypath="tool.credits.chat" tag="p">
<template #chat>
<UTooltip
arrow
:content="{
position: 'bottom',
sideOffset: 0,
}"
:delay-duration="0"
:text="t('tool.credits.tooltip')"
>
<strong>ArtChat</strong>
</UTooltip>
</template>
</i18n-t>
<p>{{ t('tool.credits.thank') }}</p>
<p>{{ t('tool.credits.message') }}</p>
<i18n-t keypath="tool.credits.copyrights" tag="p">
<template #year>
{{ year }}
</template>
</i18n-t>
</section>
</template>

View File

@@ -191,7 +191,16 @@
"main": "I share my reflections on mathematics, artificial intelligence, development and my passions, by organizing them to follow the evolution of my ideas and projects. {space}Here you will find the two most recent articles, but all my writings are accessible in the {writings} page, to explore my universe more in depth, Maths and AI.",
"link": "Articles"
},
"hobbies": "Outside of programming and my technical projects, I dedicate much of my free time to my passions: sports, music, traveling, and spending time with friends. Sports teach me discipline and perseverance, music fuels my creativity, and traveling opens me up to new cultures and ways of thinking, which also nurtures my intellectual curiosity.\nThese passions help me maintain balance and strengthen the qualities I bring to both my studies and my career: curiosity, commitment, autonomy, and a constant desire to improve. They make me someone who is motivated, adaptable, and always ready to take on new challenges."
"hobbies": "Outside of programming and my technical projects, I dedicate much of my free time to my passions: sports, music, traveling, and spending time with friends. Sports teach me discipline and perseverance, music fuels my creativity, and traveling opens me up to new cultures and ways of thinking, which also nurtures my intellectual curiosity.\nThese passions help me maintain balance and strengthen the qualities I bring to both my studies and my career: curiosity, commitment, autonomy, and a constant desire to improve. They make me someone who is motivated, adaptable, and always ready to take on new challenges.",
"credits": {
"made": "This site was designed with {nuxt} and then deployed via {vercel}",
"heart": "Made with ❤️ and a lot of reflection.",
"chat": "A big thank you to {chat}, my personal assistant, always ready to answer your questions with clarity and speed.",
"copyrights": "© {year} Arthur Danjou - All rights reserved.",
"thank": "Thank you for visiting my portfolio.",
"message": "Do not hesitate to leave a message, a suggestion, a remark or just a nice word - everything is welcome!",
"tooltip": "My IA agent "
}
},
"error": {
"main": "I think you're lost, let's go back to the",

View File

@@ -2,5 +2,16 @@
"projects": {
"description": "Una colección de mis proyectos realizados en R, Python o tecnologías de desarrollo web. Estos proyectos abarcan diversos campos, como análisis de datos, aprendizaje automático y aplicaciones web, mostrando mis habilidades en programación, resolución de problemas y desarrollo de proyectos.",
"title": "Todos mis proyectos en los que he trabajado, académicos y personales"
},
"tool": {
"credits": {
"made": "Este sitio fue diseñado con {nuxt} y luego se implementó a través de {vercel}",
"heart": "Hecho con ❤️ y mucho reflexión.",
"chat": "Muchas gracias a {chat}, mi asistente personal, siempre listo para responder a sus preguntas con claridad y velocidad.",
"copyrights": "© {year} Arthur Danjou - Todos los derechos reservados.",
"thank": "Gracias por visitar mi cartera.",
"message": "No dude en dejar un mensaje, una sugerencia, un comentario o simplemente una buena palabra: ¡todo es bienvenido!",
"tooltip": "Mi agente ia"
}
}
}

View File

@@ -191,7 +191,16 @@
"main": "Je partage mes réflexions sur les mathématiques, l'intelligence artificielle, le développement et mes passions, en les organisant pour suivre lévolution de mes idées et projets. {space}Ici, vous trouverez les deux articles les plus récents, mais tous mes écrits sont accessibles sur la page des {writings}, pour explorer plus en profondeur mon univers entre code, maths et IA.",
"link": "Articles"
},
"hobbies": "En dehors de la programmation et de mes projets techniques, je consacre une grande partie de mon temps libre à mes passions : le sport, la musique, les voyages et les moments partagés entre amis. Le sport m'apporte rigueur et persévérance, la musique stimule ma créativité, et voyager m'ouvre à d'autres cultures, à d'autres façons de penser, ce qui nourrit aussi ma curiosité intellectuelle. Ces passions m'aident à garder un bon équilibre et renforcent les qualités que je mobilise dans mes études et ma carrière: curiosité, engagement, autonomie et volonté constante de progresser. Elles font de moi quelqu'un de motivé, adaptable, et toujours prêt à relever de nouveaux défis."
"hobbies": "En dehors de la programmation et de mes projets techniques, je consacre une grande partie de mon temps libre à mes passions : le sport, la musique, les voyages et les moments partagés entre amis. Le sport m'apporte rigueur et persévérance, la musique stimule ma créativité, et voyager m'ouvre à d'autres cultures, à d'autres façons de penser, ce qui nourrit aussi ma curiosité intellectuelle. Ces passions m'aident à garder un bon équilibre et renforcent les qualités que je mobilise dans mes études et ma carrière: curiosité, engagement, autonomie et volonté constante de progresser. Elles font de moi quelqu'un de motivé, adaptable, et toujours prêt à relever de nouveaux défis.",
"credits": {
"made": "Ce site a été conçu avec {nuxt} et puis déployé via {vercel}",
"heart": "Réalisé avec ❤️ et beaucoup de réflexion.",
"chat": "Un grand merci à {chat}, mon assistant personnel, toujours prêt à répondre à vos questions avec clarté et rapidité.",
"copyrights": "© {year} Arthur DANJOU — Tous droits réservés.",
"thank": "Merci de visiter mon portfolio.",
"message": "Nhésitez pas à laisser un message, une suggestion, une remarque ou simplement un mot sympa — tout est le bienvenu!",
"tooltip": "Mon agent IA"
}
},
"error": {
"main": "Je pense que vous êtes perdu, retournons en arrière à la",