Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/routes/(landing)/[[lang=lang]]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<script>
<script lang="ts">
import Button from '$lib/components/button/Button.svelte';
import BannerMe from '$lib/modules/landing/BannerMe.svelte';
import { getTranslate } from '@tolgee/svelte';
import type { PageData } from './$types';
export let data: PageData;
const { t } = getTranslate();
</script>

Expand Down Expand Up @@ -39,7 +41,9 @@
)}
</p>
<div class="flex jc:center p:20">
<Button>{$t('connect', `Let's connect`)}</Button>
<Button href={data.lang === 'en' ? 'contact' : data.lang + '/contact'}
>{$t('connect', `Let's connect`)}</Button
>
</div>
</div>
<BannerMe class="banner hidden block@sm " />
Expand Down
3 changes: 2 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import { inject } from '@vercel/analytics';
import * as englishLang from '$lib/i18n/en.json';
import * as polishLang from '$lib/i18n/pl.json';
import { dev } from '$app/environment';

export let data: LayoutData;

Expand All @@ -37,7 +38,7 @@
});

// Vercel Analytics injection
inject();
inject({ mode: dev ? 'development' : 'production' });
</script>

<LazyCSSProvider config={loadConfig}>
Expand Down