diff --git a/frontend/app/components/Footer.vue b/frontend/app/components/Footer.vue index 8aa72a7..046660c 100644 --- a/frontend/app/components/Footer.vue +++ b/frontend/app/components/Footer.vue @@ -1,6 +1,6 @@ diff --git a/frontend/app/components/parts/HeaderLinks.vue b/frontend/app/components/parts/HeaderLinks.vue index 27e5b42..cc6188f 100644 --- a/frontend/app/components/parts/HeaderLinks.vue +++ b/frontend/app/components/parts/HeaderLinks.vue @@ -1,8 +1,13 @@ + + diff --git a/frontend/app/components/parts/TableHeader.vue b/frontend/app/components/parts/TableHeader.vue index d2bebb9..dd889be 100644 --- a/frontend/app/components/parts/TableHeader.vue +++ b/frontend/app/components/parts/TableHeader.vue @@ -35,7 +35,7 @@ import SiteOptions from './site_options/SiteOptions.vue'; position: relative; left: 45px; margin-top: 300px; - margin-left: -500px; + margin-left: -360px; margin-bottom: 25px; user-select: none; } diff --git a/frontend/app/components/parts/site_options/LanguageSelector.vue b/frontend/app/components/parts/site_options/LanguageSelector.vue index 856f3f7..defd53b 100644 --- a/frontend/app/components/parts/site_options/LanguageSelector.vue +++ b/frontend/app/components/parts/site_options/LanguageSelector.vue @@ -1,6 +1,5 @@ \ No newline at end of file diff --git a/frontend/content.config.ts b/frontend/content.config.ts index f905862..239d30d 100644 --- a/frontend/content.config.ts +++ b/frontend/content.config.ts @@ -3,9 +3,9 @@ import { z } from 'zod' export default defineContentConfig({ collections: { - blog_en: defineCollection({ + blog: defineCollection({ type: 'page', - source: 'blog/en/*.md', + source: 'blog/**/**.md', schema: z.object({ title: z.string(), slug: z.string(), @@ -14,26 +14,9 @@ export default defineContentConfig({ }) }), - blog_es: defineCollection({ + fixed: defineCollection({ type: 'page', - source: 'blog/en/*.md', - schema: z.object({ - title: z.string(), - slug: z.string(), - date: z.string(), - description: z.string() - }) + source: 'fixed/**/**.md' }), - - blog_ca: defineCollection({ - type: 'page', - source: 'blog/en/*.md', - schema: z.object({ - title: z.string(), - slug: z.string(), - date: z.string(), - description: z.string() - }) - }) } }) \ No newline at end of file diff --git a/frontend/content/blog/ca/translator.md b/frontend/content/blog/ca/translator.md new file mode 100644 index 0000000..a7270f8 --- /dev/null +++ b/frontend/content/blog/ca/translator.md @@ -0,0 +1,13 @@ +--- +title: Traductor +description: Problemes del tercer món +date: 2026-03-20 +slug: translator +--- + +Tenir una pàgina web en tres idiomes diferents NO és una bona idea. Hauré de contractar a algú perque em tradueixi els +posts. + +Ara mateix tinc fet que només surtin els del teu idioma. No és gens òptim. Li podria demanar a una IA que els tradueixi? + +No tinc ni idea. \ No newline at end of file diff --git a/frontend/content/blog/en/translator.md b/frontend/content/blog/en/translator.md new file mode 100644 index 0000000..767f844 --- /dev/null +++ b/frontend/content/blog/en/translator.md @@ -0,0 +1,12 @@ +--- +title: Translator +description: Third world problems +date: 2026-03-20 +slug: translator +--- + +Having a webpage with three different languages is definetly NOT a good idea. I will have to hire someone that translates all my posts for me. + +Right now the website only displays blogs of your current locale. Maybe I could ask an AI to translate the posts instead? + +Maybe, I don't know. \ No newline at end of file diff --git a/frontend/content/blog/es/translator.md b/frontend/content/blog/es/translator.md new file mode 100644 index 0000000..8bb9aaf --- /dev/null +++ b/frontend/content/blog/es/translator.md @@ -0,0 +1,12 @@ +--- +title: Traductor +description: Problemas del tercer mundo +date: 2026-03-20 +slug: translator +--- + +Tener una pàgina web con tres lenguajes distintos NO es una buena idea. Tendria que contratar a alguien para que traduzca los posts que hago. + +Ahora mismo la web solo muestra los blogs que he escrito en el idioma que está seleccionado. A lo mejor seria buena idea decirle a una IA que los tradujera? + +Ni idea. \ No newline at end of file diff --git a/frontend/content/fixed/ca/contact.md b/frontend/content/fixed/ca/contact.md new file mode 100644 index 0000000..cc04dea --- /dev/null +++ b/frontend/content/fixed/ca/contact.md @@ -0,0 +1,7 @@ +Contacta'm! + +- Correu: [aranseraroig@gmail.com](mailto:aranseraroig@gmail.com) (Aviat tindré el meu propi) +- Gitea: [git.aranroig.com](https://git.aranroig.com/Syndria98) (El meu servidor de git) +- GitHub: [BinarySandia04](https://github.com/BinarySandia04) +- LinkedIn: [aran-roig](https://www.linkedin.com/in/aran-roig/) +- Instagram: [aran.roig](https://www.instagram.com/aran.roig/) (Uns quants dibuixos els tinc allà) \ No newline at end of file diff --git a/frontend/content/fixed/ca/root.md b/frontend/content/fixed/ca/root.md new file mode 100644 index 0000000..2ea6463 --- /dev/null +++ b/frontend/content/fixed/ca/root.md @@ -0,0 +1,8 @@ +Hola! Sóc l'Aran. Benvingut a la meva pàgina web! Malauradament, sempre estarà en desenvolupament. + +Sóc un matemàtic i enginyer de software de Barcelona. Actualment treballo com a desenvolupador full-stack a [Codelearn](https://codelearn.cat) mentres curso +el màster en *Aprenentatge Automàtic i Ciberseguretat per a Sistemes IoT* de la [UPC](https://upc.edu). + +D'altra banda, m’agrada dibuixar, jugar a jocs de taula i allotjar software localment. + +Pots descarregar el meu currículum [aquí](https://cv.aranroig.com) \ No newline at end of file diff --git a/frontend/content/fixed/en/contact.md b/frontend/content/fixed/en/contact.md new file mode 100644 index 0000000..9f55d94 --- /dev/null +++ b/frontend/content/fixed/en/contact.md @@ -0,0 +1,7 @@ +Contact me! + +- Mail: [aranseraroig@gmail.com](mailto:aranseraroig@gmail.com) (Still pending to host my email) +- Gitea: [git.aranroig.com](https://git.aranroig.com/Syndria98) (My self-hosted git server) +- GitHub: [BinarySandia04](https://github.com/BinarySandia04) +- LinkedIn: [aran-roig](https://www.linkedin.com/in/aran-roig/) +- Instagram: [aran.roig](https://www.instagram.com/aran.roig/) (Some of my drawings are there) \ No newline at end of file diff --git a/frontend/content/fixed/en/root.md b/frontend/content/fixed/en/root.md new file mode 100644 index 0000000..9674412 --- /dev/null +++ b/frontend/content/fixed/en/root.md @@ -0,0 +1,8 @@ +Hi! I'm Aran. Welcome to my website! Unfortunately, it will always remain under development. + +I am a Mathematician and Software Engineer from Barcelona. I'm currently working as a full-stack dev at [Codelearn](https://codelearn.cat) while +also studying on the master's degree in *Machine Learning and Cybersecurity for Internet-Connected Systems* at [UPC](https://upc.edu). + +Besides all of that, I also like drawing, board games and self-hosting + +You can download my resume [here](https://cv.aranroig.com) \ No newline at end of file diff --git a/frontend/content/fixed/es/contact.md b/frontend/content/fixed/es/contact.md new file mode 100644 index 0000000..3b8a711 --- /dev/null +++ b/frontend/content/fixed/es/contact.md @@ -0,0 +1,7 @@ +Contactame! + +- Correo: [aranseraroig@gmail.com](mailto:aranseraroig@gmail.com) (Pronto tendre mi propio correo) +- Gitea: [git.aranroig.com](https://git.aranroig.com/Syndria98) (Mi server de git) +- GitHub: [BinarySandia04](https://github.com/BinarySandia04) +- LinkedIn: [aran-roig](https://www.linkedin.com/in/aran-roig/) +- Instagram: [aran.roig](https://www.instagram.com/aran.roig/) (Algunos dibujos mios están allí) \ No newline at end of file diff --git a/frontend/content/fixed/es/root.md b/frontend/content/fixed/es/root.md new file mode 100644 index 0000000..f823e5c --- /dev/null +++ b/frontend/content/fixed/es/root.md @@ -0,0 +1,7 @@ +Hola! Soy Aran. Bienvenido a mi página web! Por desgracia estará siempre en desarrollo. + +Soy un matemático e ingeniero de software de Barcelona. Actualmente estoy trabajando como desarrollador full-stack en [Codelearn](https://codelearn.cat) mientras curso el master de *Aprendizaje automático y Ciberseguridad para Sistemas IoT* de la [UPC](https://upc.edu). + +A parte de todo esto, me gusta dibujar, los juegos de mesa y alojar software. + +Puedes descargar mi currículum [aquí](https://cv.aranroig.com) \ No newline at end of file diff --git a/frontend/i18n/locales/ca.json b/frontend/i18n/locales/ca.json index 544b7b4..3b66b90 100644 --- a/frontend/i18n/locales/ca.json +++ b/frontend/i18n/locales/ca.json @@ -1,3 +1,30 @@ { - + "locales": { + "en": "🇺🇸 Anglès", + "es": "🇪🇸 Espanyol", + "ca": "🇦🇩 Català" + }, + "themes": { + "light": "Clar", + "dark": "Fosc", + "accents": { + "katlum": "Katlum" + } + }, + "site_options": { + "language_selector": { + "dropdown": "Idioma" + }, + "theme_selector": { + "dropdown": "Aparença", + "dragon": "Drac" + } + }, + "header": { + "links": { + "blog": "blog", + "contact": "contacte" + } + }, + "footer": "(C) 2026 Aran Roig. Tots els drets no sé que." } \ No newline at end of file diff --git a/frontend/i18n/locales/en.json b/frontend/i18n/locales/en.json index 544b7b4..291dec1 100644 --- a/frontend/i18n/locales/en.json +++ b/frontend/i18n/locales/en.json @@ -1,3 +1,33 @@ { - + "locales": { + "en": "🇺🇸 English", + "es": "🇪🇸 Spanish", + "ca": "🇦🇩 Catalan" + }, + "themes": { + "light": "Light", + "dark": "Dark", + "accents": { + "katlum": "Katlum" + } + }, + "site_options": { + "language_selector": { + "dropdown": "Language" + }, + "theme_selector": { + "dropdown": "Theme", + "dragon": "Dragon" + } + }, + "header": { + "links": { + "blog": "blog", + "contact": "contact" + } + }, + "pages": { + "root": "" + }, + "footer": "(C) 2026 Aran Roig. All rights whatever." } \ No newline at end of file diff --git a/frontend/i18n/locales/es.json b/frontend/i18n/locales/es.json index 544b7b4..af14e71 100644 --- a/frontend/i18n/locales/es.json +++ b/frontend/i18n/locales/es.json @@ -1,3 +1,30 @@ { - + "locales": { + "en": "🇺🇸 Ingles", + "es": "🇪🇸 Español", + "ca": "🇦🇩 Catalán" + }, + "themes": { + "light": "Claro", + "dark": "Oscuro", + "accents": { + "katlum": "Katlum" + } + }, + "site_options": { + "language_selector": { + "dropdown": "Idioma" + }, + "theme_selector": { + "dropdown": "Tema", + "dragon": "Dragón" + } + }, + "header": { + "links": { + "blog": "blog", + "contact": "contacto" + } + }, + "footer": "(C) 2026 Aran Roig. Todos los derechos no se que." } \ No newline at end of file diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts index fb2b4b9..e8da3ba 100644 --- a/frontend/nuxt.config.ts +++ b/frontend/nuxt.config.ts @@ -19,11 +19,12 @@ export default defineNuxtConfig({ i18n: { locales: [ - { code: 'en', iso: 'en-US', name: 'English', file: 'en.json' }, - { code: 'es', iso: 'es-ES', name: 'Spanish', file: 'es.json' }, - { code: 'ca', iso: 'ca-ES', name: 'Catalan', file: 'ca.json' } + { code: 'en', iso: 'en-US', name: '🇺🇸 English', file: 'en.json' }, + { code: 'es', iso: 'es-ES', name: '🇪🇸 Spanish', file: 'es.json' }, + { code: 'ca', iso: 'ca-ES', name: '🇦🇩 Catalan', file: 'ca.json' } ], defaultLocale: 'en', + vueI18n: './i18n.config.ts', langDir: 'locales/' }, modules: ['@nuxtjs/i18n', '@nuxt/content']