diff --git a/TODO.md b/TODO.md index 0cdd348..66e166a 100644 --- a/TODO.md +++ b/TODO.md @@ -1,2 +1,3 @@ -- [ ] Check why I'm getting NS_BINDING_ABORTED on fonts when fetched in the network browser dev tool tab -- [ ] Add a background when opening menus in mobile mode \ No newline at end of file +- Check why I'm getting NS_BINDING_ABORTED on fonts when fetched in the network browser dev tool tab +- Add a background when opening menus in mobile mode +- Strong is not bold... \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 85ca21b..590d410 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/pages/_components/AppLayout/AppLayout.astro b/src/pages/_components/AppLayout/AppLayout.astro index 016ea2e..37e73a3 100644 --- a/src/pages/_components/AppLayout/AppLayout.astro +++ b/src/pages/_components/AppLayout/AppLayout.astro @@ -1,10 +1,9 @@ --- import Html from "pages/_components/Html.astro"; -import MenuPanel from "./components/MenuPanel.astro"; import Navbar from "./components/Navbar.astro"; -import MenuPanelReduced from "./components/MenuPanelReduced.astro"; import { parseCookie } from "utils/astro"; import { CookieNames } from "utils/cookies"; +import MenuPanel from "./components/MenuPanel.astro"; interface Props { title: string; @@ -35,7 +34,7 @@ const isMenuPanelReduced = parseCookie( class:list={["texture-dots", { reduced: isMenuPanelReduced }]} >
- +
@@ -131,8 +130,7 @@ const isMenuPanelReduced = parseCookie( transition: 0.2s width; &.reduced { - width: auto; - padding: 1rem; + width: 6rem; } &.reduced > .when-not-reduced, diff --git a/src/pages/_components/AppLayout/components/MenuPanel.astro b/src/pages/_components/AppLayout/components/MenuPanel.astro index fb858fe..1c6dbdb 100644 --- a/src/pages/_components/AppLayout/components/MenuPanel.astro +++ b/src/pages/_components/AppLayout/components/MenuPanel.astro @@ -1,12 +1,17 @@ --- import { Icon } from "astro-icon/components"; import { getLocalizedUrl } from "utils/urls"; -import NavOption from "pages/_components/NavOption.astro"; import HorizontalLine from "pages/_components/HorizontalLine.astro"; import ReduceToggleButton from "./ReduceToggleButton.astro"; import ThemeToggleButton from "./ThemeToggleButton.astro"; +import NavOption from "pages/_components/NavOption.astro"; + +interface Props { + isReduced?: boolean; +} const { locale = "en" } = Astro.params; +const { isReduced = false } = Astro.props; --- { @@ -21,10 +26,10 @@ const { locale = "en" } = Astro.params; -

Accord’s Library

+

Accord’s Library

-
- +
+
@@ -35,6 +40,7 @@ const { locale = "en" } = Astro.params; icon="material-symbols:auto-stories" title="Library" subtitle="Browse all physical and digital media" + mode={isReduced ? "iconOnly" : "default"} /> - + - + - + - +
+ -

- This website’s content is made available under CC-BY-SA unless otherwise noted. -

+

+ This website’s content is made available under CC-BY-SA unless otherwise noted. +

-
- - - -
+
+ + + +
-

- Accord’s Library is not affiliated with or endorsed by SQUARE ENIX CO. LTD. - All game assets and promotional materials belongs to © SQUARE ENIX CO. LTD. -

+

+ Accord’s Library is not affiliated with or endorsed by SQUARE ENIX CO. LTD. + All game assets and promotional materials belongs to © SQUARE ENIX CO. LTD. +

- { @@ -102,6 +129,10 @@ const { locale = "en" } = Astro.params; } + +{ + /* -------------------------------------------- JS -------------------------------------------- */ +} + + diff --git a/src/pages/_components/AppLayout/components/MenuPanelReduced.astro b/src/pages/_components/AppLayout/components/MenuPanelReduced.astro deleted file mode 100644 index a1d1597..0000000 --- a/src/pages/_components/AppLayout/components/MenuPanelReduced.astro +++ /dev/null @@ -1,159 +0,0 @@ ---- -import { Icon } from "astro-icon/components"; -import { getLocalizedUrl } from "utils/urls"; -import { CookieNames } from "utils/cookies"; -import NavOptionIcon from "pages/_components/NavOptionIcon.astro"; -import { parseCookie } from "utils/astro"; -import HorizontalLine from "pages/_components/HorizontalLine.astro"; -import ReduceToggleButton from "./ReduceToggleButton.astro"; - -const { locale = "en" } = Astro.params; - -const themeColors = parseCookie( - Astro.cookies.get(CookieNames.THEME_COLOR), - "theme-color-light" -); ---- - -{ - /* ------------------------------------------- HTML ------------------------------------------- */ -} - - - -
- - - -
- - - - - - - - - - - - - - - - - - - - - -{ - /* ------------------------------------------- CSS -------------------------------------------- */ -} - - - -{ - /* -------------------------------------------- JS -------------------------------------------- */ -} - - diff --git a/src/pages/_components/AppLayout/components/Navbar.astro b/src/pages/_components/AppLayout/components/Navbar.astro index ed1d0ef..b0246a5 100644 --- a/src/pages/_components/AppLayout/components/Navbar.astro +++ b/src/pages/_components/AppLayout/components/Navbar.astro @@ -12,25 +12,29 @@ const { title, showSubPanel } = Astro.props; /* ------------------------------------------- HTML ------------------------------------------- */ } - +
+ +
+

{title}

+
{ showSubPanel && ( -