diff --git a/website/public/awesome-github/LS-Agency-Logo-White.svg b/website/public/awesome-github/LS-Agency-Logo-White.svg new file mode 100644 index 00000000..1c63d008 --- /dev/null +++ b/website/public/awesome-github/LS-Agency-Logo-White.svg @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/website/public/awesome-github/LS-Agency-Site-Icon-Blue.svg b/website/public/awesome-github/LS-Agency-Site-Icon-Blue.svg new file mode 100644 index 00000000..0d01557c --- /dev/null +++ b/website/public/awesome-github/LS-Agency-Site-Icon-Blue.svg @@ -0,0 +1,4 @@ + + + + diff --git a/website/public/awesome-github/LS-Agency-Site-Icon-Light-Blue.svg b/website/public/awesome-github/LS-Agency-Site-Icon-Light-Blue.svg new file mode 100644 index 00000000..ebfdcba3 --- /dev/null +++ b/website/public/awesome-github/LS-Agency-Site-Icon-Light-Blue.svg @@ -0,0 +1,4 @@ + + + + diff --git a/website/src/components/AwesomeGithub/AwesomeGithubFooter.astro b/website/src/components/AwesomeGithub/AwesomeGithubFooter.astro index dfda4197..5bcd54d3 100644 --- a/website/src/components/AwesomeGithub/AwesomeGithubFooter.astro +++ b/website/src/components/AwesomeGithub/AwesomeGithubFooter.astro @@ -1,204 +1,270 @@ --- +import Icon from "./Icon.astro"; +import { CATEGORIES } from "../../lib/catalogue"; + const base = import.meta.env.BASE_URL; + +// Split categories: first 4 for Browse, remaining for More +const browseCats = CATEGORIES.slice(0, 4); +const moreCats = CATEGORIES.slice(4); --- - diff --git a/website/src/components/AwesomeGithub/AwesomeGithubNav.astro b/website/src/components/AwesomeGithub/AwesomeGithubNav.astro index e2431f80..073ca859 100644 --- a/website/src/components/AwesomeGithub/AwesomeGithubNav.astro +++ b/website/src/components/AwesomeGithub/AwesomeGithubNav.astro @@ -9,182 +9,245 @@ interface Props { const { base, pathname } = Astro.props; -const navLinks = [ - { href: `${base}getting-started/`, path: "/getting-started", label: "Getting started" }, - { href: `${base}learn/`, path: "/learn", label: "Learn" }, - { href: `${base}cookbook/`, path: "/cookbook", label: "Cookbook" }, - { href: `${base}glossary/`, path: "/glossary", label: "Glossary" }, - { href: `${base}why/`, path: "/why", label: "Why" }, -]; - -const isCatActive = (linkPath: string): boolean => { +const isActive = (path: string): boolean => { const norm = pathname.replace(/\/$/, ""); - const lp = linkPath.replace(/\/$/, ""); - return norm === lp || norm.startsWith(lp + "/"); + const p = path.replace(/\/$/, ""); + return norm === p || norm.startsWith(p + "/"); }; --- - - - - - -