## Summary - Remove the Showcase page route, data, component, and all 175 showcase images - Remove "Showcase" from the navigation bar - Keep the fresh-badge SVGs (still linked from external READMEs) Also closed 12 open showcase PRs: #2691, #2861, #2846, #2720, #2282, #2667, #2585, #1842, #2784, #1697, #2260, #2841. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
66 lines
1.7 KiB
TypeScript
66 lines
1.7 KiB
TypeScript
import ThemeToggle from "../islands/ThemeToggle.tsx";
|
|
import * as Icons from "./Icons.tsx";
|
|
|
|
export default function NavigationBar(
|
|
props: { active: string; class?: string },
|
|
) {
|
|
const items = [
|
|
{
|
|
name: "Docs",
|
|
href: "/docs",
|
|
},
|
|
{
|
|
name: "Blog",
|
|
href: "https://deno.com/blog?tag=fresh",
|
|
},
|
|
];
|
|
const isHome = props.active == "/";
|
|
const isDocs = props.active == "/docs";
|
|
return (
|
|
<nav class={"flex " + (props.class ?? "")} f-client-nav={false}>
|
|
<ul class="flex items-center gap-x-2 sm:gap-4 mx-4 my-2 sm:my-6 flex-wrap lg:mx-8 2xl:mr-1">
|
|
{items.map((item) => (
|
|
<li key={item.name}>
|
|
<a
|
|
href={item.href}
|
|
class={`p-1 sm:p-2 ${
|
|
isHome
|
|
? "text-green-900"
|
|
: isDocs
|
|
? "text-foreground-secondary"
|
|
: "text-gray-600"
|
|
} hover:underline aria-[current]:font-bold`}
|
|
>
|
|
{item.name}
|
|
</a>
|
|
</li>
|
|
))}
|
|
|
|
<li class="flex items-center">
|
|
<a
|
|
href="https://github.com/denoland/fresh"
|
|
class="hover:text-green-600 inline-block transition"
|
|
aria-label="GitHub"
|
|
>
|
|
<Icons.GitHub />
|
|
</a>
|
|
</li>
|
|
<li class="flex items-center">
|
|
<a
|
|
href="https://discord.com/invite/deno"
|
|
class="hover:text-green-600 inline-block transition"
|
|
aria-label="Discord"
|
|
>
|
|
<Icons.Discord />
|
|
</a>
|
|
</li>
|
|
{isDocs && (
|
|
<li class="flex items-center">
|
|
<ThemeToggle />
|
|
</li>
|
|
)}
|
|
</ul>
|
|
</nav>
|
|
);
|
|
}
|