Skip to content

Commit cf49a08

Browse files
committed
fix(site): remove topic and vendor filter strip pending UI/UX redesign
1 parent 1e97467 commit cf49a08

2 files changed

Lines changed: 2 additions & 109 deletions

File tree

Lines changed: 2 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,12 @@
11
---
22
/**
3-
* `TopicFilterStrip.astro` | Clickable Vendor & Topic Pills with Official Light/Dark Logos.
4-
*
5-
* Supports two modes:
6-
* 1. In-Page Filter Mode (`basePath="/podcasts"` or `basePath="/blog"`):
7-
* Filters the current listing feed in-place without losing above-the-fold context,
8-
* while preserving shareable `?topic=[slug]` URLs and infinite scroll.
9-
* 2. Hub Navigation Mode (default when `basePath` is omitted):
10-
* Navigates directly to `/topics` and `/topic/[slug]`.
3+
* `TopicFilterStrip.astro`
4+
* Temporarily disabled pending UI/UX redesign.
115
*/
12-
import { TOPICS } from "@/lib/topics";
13-
146
interface Props {
157
activeSlug?: string;
168
label?: string;
17-
/** When set (e.g. "/podcasts" or "/blog"), pills filter the current listing page in-place. */
189
basePath?: string;
1910
allLabel?: string;
2011
}
21-
22-
const {
23-
activeSlug = "",
24-
label = "Browse by Topic & Vendor:",
25-
basePath,
26-
allLabel = basePath ? "All" : "All Topics",
27-
} = Astro.props;
28-
29-
const allHref = basePath ?? "/topics";
3012
---
31-
32-
<nav
33-
class="my-6 flex flex-wrap items-center gap-2.5"
34-
aria-label="Topics and Vendor Filter"
35-
data-topic-filter-strip={basePath ? "in-page" : "hub"}
36-
data-base-path={basePath}
37-
>
38-
<span class="mr-1 font-mono text-xs font-extrabold uppercase tracking-wider text-[#2A1155]/70 dark:text-slate-400">
39-
{label}
40-
</span>
41-
<a
42-
href={allHref}
43-
data-topic-pill={basePath ? "" : undefined}
44-
data-topic-title={basePath ? allLabel : undefined}
45-
aria-current={!activeSlug ? "true" : undefined}
46-
class:list={[
47-
"topic-filter-pill inline-flex items-center gap-2 rounded-full border-2 border-[#2A1155] px-3.5 py-1.5 font-display text-xs font-black transition-all hover:-translate-y-0.5 shadow-sketch-sm",
48-
!activeSlug
49-
? "bg-[#7C3AED] text-white dark:border-white/50"
50-
: "bg-white text-[#2A1155] hover:bg-[#EDE9FE] hover:text-[#7C3AED] dark:border-white/25 dark:bg-[#131B2E] dark:text-slate-100 dark:hover:bg-purple-950/60",
51-
]}
52-
>
53-
<span>{allLabel}</span>
54-
</a>
55-
{
56-
TOPICS.map((topic) => {
57-
const isActive = activeSlug === topic.slug;
58-
const pillHref = basePath
59-
? `${basePath}?topic=${topic.slug}`
60-
: `/topic/${topic.slug}`;
61-
return (
62-
<a
63-
href={pillHref}
64-
data-topic-pill={basePath ? topic.slug : undefined}
65-
data-topic-title={basePath ? topic.title : undefined}
66-
data-topic-hub={`/topic/${topic.slug}`}
67-
aria-current={isActive ? "true" : undefined}
68-
class:list={[
69-
"topic-filter-pill inline-flex items-center gap-2 rounded-full border-2 border-[#2A1155] px-3.5 py-1.5 font-display text-xs font-black transition-all hover:-translate-y-0.5 shadow-sketch-sm",
70-
isActive
71-
? "bg-[#7C3AED] text-white dark:border-white/50"
72-
: "bg-white text-[#2A1155] hover:bg-[#EDE9FE] hover:text-[#7C3AED] dark:border-white/25 dark:bg-[#131B2E] dark:text-slate-100 dark:hover:bg-purple-950/60",
73-
]}
74-
>
75-
{topic.symbolLight && (
76-
<img
77-
src={topic.symbolLight}
78-
data-src-light={topic.symbolLight}
79-
data-src-dark={topic.symbolDark ?? topic.symbolLight}
80-
alt=""
81-
aria-hidden="true"
82-
class="h-3.5 w-auto object-contain dark:hidden"
83-
loading="lazy"
84-
decoding="async"
85-
/>
86-
)}
87-
{topic.symbolDark && (
88-
<img
89-
src={topic.symbolDark}
90-
alt=""
91-
aria-hidden="true"
92-
class="hidden h-3.5 w-auto object-contain dark:block"
93-
loading="lazy"
94-
decoding="async"
95-
/>
96-
)}
97-
<span>{topic.title}</span>
98-
</a>
99-
);
100-
})
101-
}
102-
{
103-
basePath && (
104-
<a
105-
href="/topics"
106-
class="ml-auto inline-flex items-center gap-1 rounded-full border border-dashed border-[#2A1155]/40 bg-[#EDE9FE]/60 px-3 py-1 font-mono text-[11px] font-extrabold text-[#7C3AED] transition-colors hover:bg-[#EDE9FE] dark:border-purple-400/40 dark:bg-purple-950/40 dark:text-purple-200"
107-
>
108-
<span>Topic Hubs</span>
109-
<span>&rarr;</span>
110-
</a>
111-
)
112-
}
113-
</nav>

‎apps/site/src/pages/index.astro‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import AjYarnTrail from "@/components/AjYarnTrail.astro";
33
import AnimatedHero from "@/components/AnimatedHero.astro";
44
import CoverImage from "@/components/CoverImage.astro";
55
import HomeSection from "@/components/HomeSection.astro";
6-
import TopicFilterStrip from "@/components/TopicFilterStrip.astro";
76
import BaseLayout from "@/layouts/BaseLayout.astro";
87
import type { ContentListItem } from "@/lib/content";
98
import { coursesQuery, homePageQuery } from "@/lib/sanity/queries";
@@ -49,11 +48,6 @@ const spotlightHref = spotlightPodcast
4948
{/* Section 1: Dual-Theme Video-First Chalkboard Hero ("free. fun. purrfect.") */}
5049
<AnimatedHero />
5150

52-
{/* Official Vendor & Topic Hub Strip */}
53-
<div class="mx-auto max-w-7xl px-4 pb-4 sm:px-6">
54-
<TopicFilterStrip label="Explore Official Vendor & Topic Hubs:" />
55-
</div>
56-
5751
<AjYarnTrail variant="left-to-right" />
5852

5953
{/* Section 2: "learn by building." Dual Layout (System Flow Diagram + Featured Podcast Episode) */}

0 commit comments

Comments
 (0)