home button
This commit is contained in:
parent
98cf07b676
commit
721fa7bcda
5 changed files with 15 additions and 3 deletions
|
|
@ -15,6 +15,12 @@ const t = useTranslations(lang);
|
||||||
<div class="w-1/8">
|
<div class="w-1/8">
|
||||||
{/* Typical desktop menu */}
|
{/* Typical desktop menu */}
|
||||||
<div class="relative flex-row hidden md:flex">
|
<div class="relative flex-row hidden md:flex">
|
||||||
|
<HeaderButton text={t("header.home")} route={`/${lang}/`}>
|
||||||
|
<Icon
|
||||||
|
name="ph:house-bold"
|
||||||
|
class="h-6 w-6 text-text-color transition duration-500 group-hover:text-text-hover-color md:h-6 md:w-6"
|
||||||
|
/>
|
||||||
|
</HeaderButton>
|
||||||
<HeaderButton text={t("header.games")} route={`/${lang}/games/`}>
|
<HeaderButton text={t("header.games")} route={`/${lang}/games/`}>
|
||||||
<Icon
|
<Icon
|
||||||
name="ph:cube"
|
name="ph:cube"
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,12 @@ const t = useTranslations(lang);
|
||||||
class="h-full mt-16 flex w-full flex-col justify-evenly md:flex-row bg-navbar-color m-auto"
|
class="h-full mt-16 flex w-full flex-col justify-evenly md:flex-row bg-navbar-color m-auto"
|
||||||
id="mobileNavMenu"
|
id="mobileNavMenu"
|
||||||
>
|
>
|
||||||
|
<HeaderButton text={t("header.home")} route={`/${lang}/`}>
|
||||||
|
<Icon
|
||||||
|
name="ph:house-bold"
|
||||||
|
class="h-6 w-6 text-text-color transition duration-500 group-hover:text-text-hover-color md:h-6 md:w-6"
|
||||||
|
/>
|
||||||
|
</HeaderButton>
|
||||||
<HeaderButton text={t("header.games")} route={`/${lang}/games/`}>
|
<HeaderButton text={t("header.games")} route={`/${lang}/games/`}>
|
||||||
<Icon
|
<Icon
|
||||||
name="ph:cube"
|
name="ph:cube"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"header.home": "Home",
|
||||||
"header.games": "Games",
|
"header.games": "Games",
|
||||||
"header.settings": "Settings",
|
"header.settings": "Settings",
|
||||||
"header.morelinks": "Want more links?"
|
"header.morelinks": "Want more links?"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"header.home": "homee",
|
||||||
"header.games": "ゲーム",
|
"header.games": "ゲーム",
|
||||||
"header.settings": "設定",
|
"header.settings": "設定",
|
||||||
"header.morelinks": "リンク一覧"
|
"header.morelinks": "リンク一覧"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
---
|
---
|
||||||
import { STATIC_PATHS } from "../../i18n/utils";
|
import { STATIC_PATHS } from "../../i18n/utils";
|
||||||
import Layout from "../../layouts/Layout.astro";
|
import Layout from "../../layouts/Layout.astro";
|
||||||
import Card from "../../components/Card.astro";
|
|
||||||
import MobileNavigation from "../../components/MobileNavigation.astro";
|
|
||||||
|
|
||||||
export function getStaticPaths() {
|
export function getStaticPaths() {
|
||||||
return STATIC_PATHS;
|
return STATIC_PATHS;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue