personal-website/src/pages/index.astro

32 lines
969 B
Plaintext

---
export const prerender = true
import MainLayout from "../layouts/MainLayout.astro";
import Hero from "../components/Hero.astro";
import About from "../components/About.astro";
import Showcase from "../components/Showcase.astro";
import FloatingLinks from "../components/FloatingLinks.astro";
//@ts-ignore
import { getLangFromUrl, useTranslations } from "../i18n/utils";
const t = useTranslations(getLangFromUrl(Astro.url));
export async function getStaticPaths() {
return ["en", "fr", "cs", "de"].map((lang) => {
return { params: { lang } };
});
}
---
<MainLayout title={t("title")} description={t("description")} lang={Astro.currentLocale} themeOverride="theme_auto">
<head>
<meta http-equiv="refresh" content="0; url=https://cyrilsebek.cz/en">
<script type="text/javascript">
window.location.href = "https://cyrilsebek.cz/en"
</script>
</head>
<FloatingLinks />
<Hero />
<About />
<Showcase />
</MainLayout>