File size: 1,027 Bytes
afa9e42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
import Layout from '../../layouts/Layout.astro';
import Header from '../../components/Header.astro';
import Hero from '../../components/Hero.astro';
import About from '../../components/About.astro';
import Services from '../../components/Services.astro';
import Workflow from '../../components/Workflow.astro';
import Contact from '../../components/Contact.astro';
import Footer from '../../components/Footer.astro';
import { getLangFromUrl, useTranslations, languages } from '../../i18n/ui';

export function getStaticPaths() {
  return Object.keys(languages).filter(lang => lang !== 'ar').map(lang => ({
    params: { lang }
  }));
}

const lang = getLangFromUrl(Astro.url);
const t = useTranslations(lang);

const title = t('hero.title') + ' - Blueprint Engineering Consultancy';
const description = t('hero.description');
---

<Layout title={title} description={description} lang={lang}>
  <Header />
  <main>
    <Hero />
    <About />
    <Services />
    <Workflow />
    <Contact />
  </main>
  <Footer />
</Layout>