From 4453ebb8cb9076d556836b5e037111d95526c327 Mon Sep 17 00:00:00 2001 From: Steve Paul Date: Sat, 16 Dec 2023 15:17:52 +0530 Subject: [PATCH] Update mappings and navigation --- src/pages/index.astro | 65 ++++++++++++++++++++++++++++++++++++------- 1 file changed, 55 insertions(+), 10 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index 304f591..96a395e 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,6 +1,7 @@ --- import Layout from "../layouts/Layout.astro"; import Card from "../components/Card.astro"; +import { $filter, $updateFilter } from "../state/filter.js"; import data from "../data/tools.json"; @@ -16,21 +17,46 @@ import "@new-ui/spacings"; tagline="A curated set of powerful AI tools for makers." >
- {data.tools.map(section => { - return
-
- +
@@ -62,4 +88,23 @@ import "@new-ui/spacings"; gap: var(--spacing-05); padding: var(--spacing-00); } - + .nav { + box-shadow: inset 0px -1px 0px var(--border-muted); + } + .nav .nav__item { + display: inline-block; + text-decoration: none; + border: none; + outline: none; + background: none; + cursor: pointer; + } + .nav .nav__item:hover { + color: var(--text-secondary); + } + .nav .nav__item.is-active { + color: var(--text-primary); + font-weight: 500; + border-bottom: 2px solid var(--icon-primary); + } + \ No newline at end of file