Skip to content

Commit

Permalink
Merge pull request #180 from felixicaza/aurora
Browse files Browse the repository at this point in the history
chore: disable temporary Aurora component due conflics that translate page content
  • Loading branch information
felixicaza authored Aug 8, 2024
2 parents 8c3eef3 + 6485851 commit 785f4f9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/components/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,13 @@ const LINKS = t('navbar', {
// TODO: remover este código cuando se encuentre que es lo que provoca ese bug.
// Esta función arregla un bug que al hacer clic en el enlace que contiene el
// anchor de los proyectos, se traslada todo el contenido hacia arriba.
function fixBugAurora() {
const containerContribution = document.querySelector('.container-contributions');
containerContribution.style.overflow = 'hidden';
// function fixBugAurora() {
// const containerContribution = document.querySelector('.container-contributions');
// containerContribution.style.overflow = 'hidden';

setTimeout(() => (containerContribution.style.overflow = ''), 100);
}
// setTimeout(() => (containerContribution.style.overflow = ''), 100);
// }

anchorLink.addEventListener('click', fixBugAurora);
window.addEventListener('load', fixBugAurora);
// anchorLink.addEventListener('click', fixBugAurora);
// window.addEventListener('load', fixBugAurora);
</script>
4 changes: 2 additions & 2 deletions src/pages/_Sections/Contact/Contact.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { Aurora, Button, ButtonDownloadCv } from '@components';
import { Button, ButtonDownloadCv } from '@components';
import { t } from 'i18n:astro';
---

Expand All @@ -18,7 +18,7 @@ import { t } from 'i18n:astro';
</div>
</div>
</section>
{Astro.url.pathname !== '/' && Astro.url.pathname !== '/en/' && <Aurora />}
<!-- {Astro.url.pathname !== '/' && Astro.url.pathname !== '/en/' && <Aurora />} -->
</div>

<style>
Expand Down
3 changes: 1 addition & 2 deletions src/pages/_Sections/Contributors/Contributors.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
import { Aurora } from '@components';
import type { ImageMetadata } from 'astro';
import { Picture } from 'astro:assets';
import { t } from 'i18n:astro';
Expand Down Expand Up @@ -73,7 +72,7 @@ const images = import.meta.glob<{ default: ImageMetadata }>('/src/img/avatars/*.
</div>
</article>
</section>
<Aurora />
<!-- <Aurora /> -->
</div>

<style lang="scss">
Expand Down

0 comments on commit 785f4f9

Please sign in to comment.