rework links

This commit is contained in:
vcoppe
2024-07-08 23:22:37 +02:00
parent ad7ff5ddba
commit 04447f4034
7 changed files with 37 additions and 39 deletions

View File

@@ -46,17 +46,17 @@
{$_('metadata.description')}
</div>
<div class="w-full flex flex-row justify-center gap-3">
<Button href={getURLForLanguage('/[...language]/app', $locale)} class="w-1/3 min-w-fit">
<Button href={getURLForLanguage($locale, '/app')} class="w-1/3 min-w-fit">
<Map size="18" class="mr-1.5" />
{$_('homepage.app')}
</Button>
<Button
variant="secondary"
href={getURLForLanguage('/[...language]/help', $locale)}
href={getURLForLanguage($locale, '/help')}
class="w-1/3 min-w-fit"
>
<BookOpenText size="18" class="mr-1.5" />
<span>{$_('homepage.help')}</span>
<span>{$_('menu.help')}</span>
</Button>
</div>
</div>

View File

@@ -17,7 +17,7 @@
{#each Object.keys(guides) as guide}
<Button
variant="link"
href={getURLForLanguage(`/[...language]/help/${guide}`, $locale)}
href={getURLForLanguage($locale, `/help/${guide}`)}
class="h-6 p-0 w-fit text-muted-foreground hover:text-foreground hover:no-underline font-normal hover:font-semibold items-start"
>
<DocsLoader path={`${guide}.svx`} titleOnly={true} />
@@ -25,7 +25,7 @@
{#each guides[guide] as subGuide}
<Button
variant="link"
href={getURLForLanguage(`/[...language]/help/${guide}/${subGuide}`, $locale)}
href={getURLForLanguage($locale, `/help/${guide}/${subGuide}`)}
class="h-6 p-0 w-fit text-muted-foreground hover:text-foreground hover:no-underline font-normal hover:font-semibold items-start ml-3"
>
<DocsLoader path={`${guide}/${subGuide}.svx`} titleOnly={true} />