Refactor project and writing components: simplify tag rendering and group writings by year

This commit is contained in:
2025-07-20 19:09:13 +02:00
parent fe8ff124e2
commit 35a350e6e4
3 changed files with 61 additions and 67 deletions

View File

@@ -107,8 +107,6 @@ export const activityMessages = {
export interface Tag {
label: string
icon: string
color: string
title?: string
translation: string
}
@@ -116,38 +114,26 @@ export interface Tag {
export const TAGS: Array<Tag> = [
{
label: 'R',
icon: 'i-vscode-icons-file-type-r',
color: 'orange',
translation: 'tags.r',
},
{
label: 'AI',
icon: 'i-ph-brain-duotone',
color: 'green',
translation: 'tags.ai',
},
{
label: 'Data',
icon: 'i-ph-database-duotone',
color: 'purple',
translation: 'tags.data',
},
{
label: 'Web',
icon: 'i-ph-globe-duotone',
color: 'cyan',
translation: 'tags.web',
},
{
label: 'Python',
icon: 'i-vscode-icons-file-type-python',
color: 'amber',
translation: 'tags.python',
},
{
label: 'Maths',
icon: 'i-ph-calculator-duotone',
color: 'pink',
translation: 'tags.maths',
},
]