import { useAtomValue } from 'jotai'; import { languageState } from '../state/atoms'; import { getTranslations } from '../translations'; import styles from '../styles/components/Projects.module.scss'; const getTagColor = (tag) => { const colorMap = { '.NET': 'tagDotnet', React: 'tagReact', SQLite: 'tagSqlite', Apache2: 'tagApache', 'Ubuntu Server': 'tagUbuntu', NextCloud: 'tagNextcloud', Vite: 'tagVite', }; return colorMap[tag] || 'tagDefault'; }; export default function Projects() { const language = useAtomValue(languageState); const t = getTranslations(language); return (
{t.projects.sectionNum}

{t.projects.sectionTitle}

{t.projects.projects.map((p) => (
{t.projects.folderIcon}

{p.name}

{p.desc}

    {p.tags.map((tag) => (
  • {tag}
  • ))}
))}

{t.projects.giteaText}

{t.projects.giteaBtn}
); }