mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-25 03:52:40 +01:00
- Replaced Nuxt ESLint configuration with Antfu's ESLint config. - Removed 'nuxt-visitors' module from Nuxt configuration. - Added linting scripts to package.json for easier code quality checks. - Introduced a new API endpoint for fetching weather data from OpenWeather. - Enhanced chat types with new enums and properties for better state management. - Added OpenWeather response types for improved type safety. - Updated social links in types/index.ts to include an email contact.
44 lines
955 B
Vue
44 lines
955 B
Vue
<script lang="ts" setup>
|
|
import { socials } from '~~/types'
|
|
|
|
const { t } = useI18n({ useScope: 'local' })
|
|
</script>
|
|
|
|
<template>
|
|
<section>
|
|
<div>
|
|
<p class="prose dark:prose-invert">
|
|
{{ t('contact') }}
|
|
</p>
|
|
<div class="flex gap-2 flex-wrap my-2">
|
|
<UButton
|
|
v-for="social in socials"
|
|
:key="social.label"
|
|
:icon="social.icon"
|
|
:label="social.label"
|
|
variant="subtle"
|
|
color="neutral"
|
|
target="_blank"
|
|
class=""
|
|
:href="social.to"
|
|
:aria-label="social.label"
|
|
/>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
|
|
<i18n lang="json">
|
|
{
|
|
"en": {
|
|
"contact": "There are different ways to contact me. Here is a list:"
|
|
},
|
|
"fr": {
|
|
"contact": "Il existe différents façons de me contacter. Voici une liste :"
|
|
},
|
|
"es": {
|
|
"contact": "Existen diferentes formas de contactarme. Aquí hay una lista:"
|
|
}
|
|
}
|
|
</i18n>
|