refactor: per-lang index page
This commit is contained in:
parent
6e218b38df
commit
706f837437
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
||||
import { getLangFromUrl, useTranslations } from '../../i18n/utils';
|
||||
|
||||
const lang = getLangFromUrl(Astro.url);
|
||||
const translation = useTranslations(lang);
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
||||
import { getLangFromUrl, useTranslations } from '../../i18n/utils';
|
||||
import { Image } from 'astro:assets';
|
||||
import aux from '../../public/aux.svg';
|
||||
import aux from '../../../public/aux.svg';
|
||||
|
||||
const lang = getLangFromUrl(Astro.url);
|
||||
const translation = useTranslations(lang);
|
16
src/components/home/Home.astro
Normal file
16
src/components/home/Home.astro
Normal file
|
@ -0,0 +1,16 @@
|
|||
---
|
||||
import Hero from "./Hero.astro";
|
||||
import Values from "./Values.astro";
|
||||
import Goals from "./Goals.astro";
|
||||
import Roadmap from "./Roadmap.astro";
|
||||
---
|
||||
|
||||
<main class="grid place-items-center">
|
||||
<Hero />
|
||||
|
||||
<div class="prose prose-invert py-16 px-4 max-w-3xl">
|
||||
<Values />
|
||||
<Goals />
|
||||
<Roadmap />
|
||||
</div>
|
||||
</main>
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
||||
import { getLangFromUrl, useTranslations } from '../../i18n/utils';
|
||||
|
||||
const lang = getLangFromUrl(Astro.url);
|
||||
const translation = useTranslations(lang);
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
import { getLangFromUrl, useTranslations } from '../i18n/utils';
|
||||
import { getLangFromUrl, useTranslations } from '../../i18n/utils';
|
||||
|
||||
const lang = getLangFromUrl(Astro.url);
|
||||
const translation = useTranslations(lang);
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
import { getLangFromUrl } from '../i18n/utils';
|
||||
import Header from "../components/Header.astro";
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
|
@ -22,6 +23,8 @@ const lang = getLangFromUrl(Astro.url);
|
|||
<meta name="verify" content="https://github.com/jakehamilton" />
|
||||
</head>
|
||||
<body>
|
||||
<Header />
|
||||
|
||||
<slot />
|
||||
</body>
|
||||
</html>
|
||||
|
|
8
src/pages/en/index.astro
Normal file
8
src/pages/en/index.astro
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
import Layout from "../../layouts/Layout.astro";
|
||||
import Home from "../../components/home/Home.astro";
|
||||
---
|
||||
|
||||
<Layout title="aux.computer">
|
||||
<Home />
|
||||
</Layout>
|
|
@ -1,25 +1 @@
|
|||
---
|
||||
import Layout from "../layouts/Layout.astro";
|
||||
import Header from "../components/Header.astro";
|
||||
import Hero from "../components/Hero.astro";
|
||||
import Values from "../components/Values.astro";
|
||||
import Goals from "../components/Goals.astro";
|
||||
import Roadmap from "../components/Roadmap.astro";
|
||||
---
|
||||
|
||||
<Layout title="aux.computer">
|
||||
<main>
|
||||
<Header />
|
||||
|
||||
<div class="grid place-items-center">
|
||||
<Hero />
|
||||
<div class="prose prose-invert py-16 px-4 max-w-3xl">
|
||||
<Values />
|
||||
<Goals />
|
||||
<Roadmap />
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
</Layout>
|
||||
|
||||
<style></style>
|
||||
<meta http-equiv="refresh" content="0;url=/en/" />
|
||||
|
|
Loading…
Reference in a new issue