This commit is contained in:
prototypa
2022-09-04 01:44:30 -04:00
parent a8b02b3ce7
commit e95d47b5d3
3 changed files with 8 additions and 9 deletions

View File

@ -29,7 +29,7 @@ const {} = Astro.props;
window.onload = function () {
attachEvent("[data-aw-toggle-menu]", "click", function (elem) {
elem.classList.toggle("expanded");
document.documentElement.classList.toggle("overflow-hidden");
document.body.classList.toggle("overflow-hidden");
document.getElementById("menu")?.classList.toggle("hidden");
});
@ -43,7 +43,7 @@ const {} = Astro.props;
if (elem) {
elem.classList.remove("expanded");
}
document.documentElement.classList.remove("overflow-hidden");
document.body.classList.remove("overflow-hidden");
document.getElementById("menu")?.classList.add("hidden");
};
</script>

View File

@ -173,7 +173,7 @@ const {} = Astro.props;
aria-label="Twitter"
href="#"
>
<Icon name="tabler:brand-twitter" class="w-6 h-6 md:w-5 md:h-5" />
<Icon name="tabler:brand-twitter" class="w-5 h-5" />
</a>
</li>
<li>
@ -182,7 +182,7 @@ const {} = Astro.props;
aria-label="Instagram"
href="#"
>
<Icon name="tabler:brand-instagram" class="w-6 h-6 md:w-5 md:h-5" />
<Icon name="tabler:brand-instagram" class="w-5 h-5" />
</a>
</li>
<li>
@ -191,7 +191,7 @@ const {} = Astro.props;
aria-label="Facebook"
href="#"
>
<Icon name="tabler:brand-facebook" class="w-6 h-6 md:w-5 md:h-5" />
<Icon name="tabler:brand-facebook" class="w-5 h-5" />
</a>
</li>
<li>
@ -200,7 +200,7 @@ const {} = Astro.props;
aria-label="RSS"
href="/rss.xml"
>
<Icon name="tabler:rss" class="w-6 h-6 md:w-5 md:h-5" />
<Icon name="tabler:rss" class="w-5 h-5" />
</a>
</li>
<li>
@ -209,7 +209,7 @@ const {} = Astro.props;
aria-label="Github"
href="https://github.com/onwidget/astrowind"
>
<Icon name="tabler:brand-github" class="w-6 h-6 md:w-5 md:h-5" />
<Icon name="tabler:brand-github" class="w-5 h-5" />
</a>
</li>
</ul>

View File

@ -66,8 +66,7 @@ const {} = Astro.props;
<a
class="font-bold hover:text-gray-900 dark:hover:text-white px-4 py-3 flex items-center transition duration-150 ease-in-out"
href="https://github.com/onwidget/astrowind"
>
Github
>Github
</a>
</li>
</ul>