---
const { text, route } = Astro.props;
---

<a
  class="group flex w-full flex-row items-center justify-center border-t-2 border-solid border-navbar-text-color p-4 md:border-none h-1/3 md:h-fit"
  id="header_anchor"
  href={route}
>
  <slot />
  <span
    class="font-roboto pl-2 text-center text-3xl font-bold text-text-color roboto transition duration-500 group-hover:text-text-hover-color md:text-xl text-nowrap"
  >
    {text}
  </span>
</a>
