chore: remove showcase page (#3703)
## 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>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
b11d1d98f2
commit
93356c80c4
@@ -3,8 +3,6 @@ import NavigationBar from "./NavigationBar.tsx";
|
||||
export default function Header(props: { title: string; active: string }) {
|
||||
const isHome = props.active == "/";
|
||||
const isDocs = props.active == "/docs";
|
||||
const isShowcase = props.active == "/showcase";
|
||||
|
||||
return (
|
||||
<header
|
||||
class={[
|
||||
@@ -13,7 +11,6 @@ export default function Header(props: { title: string; active: string }) {
|
||||
isDocs
|
||||
? "h-20 max-w-screen-2xl w-full sticky top-0 bg-background-primary z-50 backdrop-blur-xs"
|
||||
: "",
|
||||
isShowcase ? "max-w-screen-xl w-full" : "",
|
||||
].join(" ")}
|
||||
f-client-nav={false}
|
||||
>
|
||||
|
||||
@@ -9,10 +9,6 @@ export default function NavigationBar(
|
||||
name: "Docs",
|
||||
href: "/docs",
|
||||
},
|
||||
{
|
||||
name: "Showcase",
|
||||
href: "/showcase",
|
||||
},
|
||||
{
|
||||
name: "Blog",
|
||||
href: "https://deno.com/blog?tag=fresh",
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
import * as Icons from "../components/Icons.tsx";
|
||||
export interface Project {
|
||||
image: string;
|
||||
title: string;
|
||||
link: string;
|
||||
github?: string;
|
||||
}
|
||||
|
||||
interface ProjectProps {
|
||||
items: Project[];
|
||||
class?: string;
|
||||
}
|
||||
|
||||
export default function Projects(props: ProjectProps) {
|
||||
return (
|
||||
<div
|
||||
class={`pt-8 grid grid-cols-1 sm:grid-cols-3 items-center ${
|
||||
props.class ?? ""
|
||||
}`}
|
||||
>
|
||||
{props.items.filter((item) => item.link.length > 0).map((project) => (
|
||||
<div class="w-full max-w-sm mx-auto group">
|
||||
<a href={project.link} tabIndex={-1}>
|
||||
<img
|
||||
loading="lazy"
|
||||
src={`/showcase/${project.image}1x.jpg`}
|
||||
srcset={`/showcase/${project.image}2x.jpg 2x, /showcase/${project.image}1x.jpg 1x`}
|
||||
alt={project.title}
|
||||
width={600}
|
||||
height={337}
|
||||
style={{ aspectRatio: "16/9" }}
|
||||
class="object-cover shadow-lg group-hover:shadow-xl group-hover:opacity-70 rounded-lg"
|
||||
/>
|
||||
</a>
|
||||
<div class="mt-4 flex items-center">
|
||||
<div class="text-lg text-gray-600 flex-1 group-hover:text-underline">
|
||||
<a href={project.link}>{project.title}</a>
|
||||
</div>
|
||||
{project.github && (
|
||||
<a
|
||||
href={`https://github.com/${project.github}`}
|
||||
class="ml-2 text-gray-500 hover:text-gray-700"
|
||||
>
|
||||
<span class="sr-only">GitHub</span>
|
||||
<Icons.GitHub class="inline float-right h-6 w-6" />
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user