Started work on the Hero section.
This commit is contained in:
16
src/pages/[lang]/contact/index.astro
Normal file
16
src/pages/[lang]/contact/index.astro
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
import MainLayout from "../../../layouts/MainLayout.astro";
|
||||
|
||||
//@ts-ignore
|
||||
import { dictionary } from "../../../i18n/dictionary";
|
||||
const { title, description } = dictionary[Astro.currentLocale];
|
||||
|
||||
export async function getStaticPaths() {
|
||||
return ["en", "fr", "cs", "de"].map((lang) => {
|
||||
return { params: { lang } };
|
||||
});
|
||||
}
|
||||
---
|
||||
<MainLayout title={title} description={description} lang={Astro.currentLocale}>
|
||||
|
||||
</MainLayout>
|
@@ -1,5 +1,6 @@
|
||||
---
|
||||
import MainLayout from "../../layouts/MainLayout.astro";
|
||||
import Hero from "../../components/Hero.astro";
|
||||
|
||||
//@ts-ignore
|
||||
import { dictionary } from "../../i18n/dictionary";
|
||||
@@ -11,6 +12,6 @@ export async function getStaticPaths() {
|
||||
});
|
||||
}
|
||||
---
|
||||
<MainLayout title={title} description={description} lang={Astro.currentLocale}>
|
||||
|
||||
<MainLayout title={title} description={description} lang={Astro.currentLocale} themeOverride="">
|
||||
<Hero />
|
||||
</MainLayout>
|
@@ -12,8 +12,12 @@ if (Astro.preferredLocale) {
|
||||
<MainLayout title="sitetitle" description="sitedescription" lang="en">
|
||||
<h1>Welcome</h1>
|
||||
<p>
|
||||
"homeP1"
|
||||
{Astro.url.toString()}
|
||||
{getLocaleByPath("en")}
|
||||
You shouldn't be here. please continue to one of the following:
|
||||
</p>
|
||||
<ul>
|
||||
<li><a href="/en">English Version / English</a></li>
|
||||
<li><a href="/cs">Czech Version / Česky</a></li>
|
||||
<li><a href="/de">German Version [WIP] / Deutsch [laufende Arbeiten]</a></li>
|
||||
<li><a href="/fr">French Version [WIP] / Français [travail en cours]</a></li>
|
||||
</ul>
|
||||
</MainLayout>
|
Reference in New Issue
Block a user