"use client"
import Header from '@/components/Header'
import Footer from '@/components/Footer'
import Button from '@/components/objects/Button'
import LastPlayed from '@/components/widgets/NowPlaying'
import Image from 'next/image'
import {CreditCard, Mail, PillBottle, Scale, UserCircle} from 'lucide-react'
import { BsArrowClockwise } from "react-icons/bs";
import { FaHandcuffs } from "react-icons/fa6"
import {
SiGithubsponsors,
SiNextdotjs,
SiTailwindcss,
SiDocker,
SiLinux,
SiTypescript,
SiClaude,
SiPostgresql
} from 'react-icons/si'
import { useTranslation } from 'react-i18next'
import {TbHeartHandshake, TbUserHeart, TbMessage} from "react-icons/tb";
import {BiDonateHeart} from "react-icons/bi";
export default function Home() {
const { t } = useTranslation()
const mainStrings: string[][] = [
t('home.whoAmI', { returnObjects: true }) as string[],
t('home.whatIDo', { returnObjects: true }) as string[],
t('home.whereYouAre', { returnObjects: true }) as string[]
]
const mainSections = [
t('home.sections.whoIAm'),
t('home.sections.whatIDo'),
t('home.sections.whereYouAre')
]
return (
{t('home.profile.name')}
{t('home.profile.description')}
{mainSections.map((section, secIndex) => (
{section === t('home.sections.whereYouAre') ? (
{section}
) : section === t('home.sections.whoIAm') ? (
{section}
) : section === t('home.sections.whatIDo') ? (
{section}
) : (section)}
{section === t('home.sections.whatIDo') && (
)}
{mainStrings[secIndex].map((text: string, index: number) => (
{text}
))}
))}
{t('home.donation.title')}
{t('home.donation.description')}
{t('home.donation.charities.title')}
}
target="_blank"
>
{t('home.donation.charities.unsilenced')}
}
target="_blank"
>
{t('home.donation.charities.drugpolicy')}
}
target="_blank"
>
{t('home.donation.charities.aclu')}
}
target="_blank"
>
{t('home.donation.charities.epic-restart')}
{t('home.donation.donate.title')}
}
target="_blank"
>
{t('home.donation.donate.stripe')}
}
target="_blank"
>
{t('home.donation.donate.github')}
);
}