Skip to content

Commit

Permalink
Navegación corregida en el header y el footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuel-Palestino committed Oct 25, 2024
1 parent cc77069 commit 070880e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import XIcon from "../icons/XIcon.astro";
import { Image } from "astro:assets";
import logoImage from "../images/logo_pch_blanco.png";
import { getLangFromUrl, useTranslations } from "../i18n/utils";
import { getRelativeLocaleUrl } from "astro:i18n";
const lang = getLangFromUrl(Astro.currentLocale as string);
const t = useTranslations(lang);
Expand All @@ -27,11 +28,11 @@ const t = useTranslations(lang);
class="flex flex-col md:flex-row gap-8 border-t border-gray-200 pt-8 px-4"
>
<nav class="hidden md:block basis-1/3">
<p class="text-lg font-semibold mb-2">{t('nav.home')}</p>
<p class="text-lg font-semibold mb-2">{t('nav.about')}</p>
<p class="text-lg font-semibold mb-2">{t('nav.services')}</p>
<p class="text-lg font-semibold mb-2">{t('nav.technology')}</p>
<p class="text-lg font-semibold mb-2">{t('nav.events')}</p>
<a href={getRelativeLocaleUrl(lang)} class="text-lg font-semibold mb-2">{t('nav.home')}</a>
<a href={getRelativeLocaleUrl(lang, 'nosotros')} class="text-lg font-semibold mb-2">{t('nav.about')}</a>
<a href={getRelativeLocaleUrl(lang, 'servicios')} class="text-lg font-semibold mb-2">{t('nav.services')}</a>
<a href={getRelativeLocaleUrl(lang, 'tecnologia')} class="text-lg font-semibold mb-2">{t('nav.technology')}</a>
<!-- <a class="text-lg font-semibold mb-2">{t('nav.events')}</a> -->
</nav>

<div>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ const t = useTranslations(lang);
class="relative block px-2 py-1">{t("nav.technology")}</a
>
</li>
<li>
<!-- <li>
<a
href={getRelativeLocaleUrl(lang, "eventos")}
class="relative block px-2 py-1">{t("nav.events")}</a
>
</li>
</li> -->
</ul>
</nav>

Expand Down

0 comments on commit 070880e

Please sign in to comment.