diff --git a/www/components/DocsHeader.tsx b/www/components/DocsHeader.tsx new file mode 100644 index 00000000..9e5fd45f --- /dev/null +++ b/www/components/DocsHeader.tsx @@ -0,0 +1,48 @@ +import DocsTitle from "./DocsTitle.tsx"; + +export default function DocsHeader() { + return ( +
+
+
+ +
+ +
+
+ +
+
+ ); +} + +function Logo() { + return ( + + Fresh logo + + ); +} diff --git a/www/components/DocsTitle.tsx b/www/components/DocsTitle.tsx new file mode 100644 index 00000000..cc419673 --- /dev/null +++ b/www/components/DocsTitle.tsx @@ -0,0 +1,26 @@ +export default function DocsTitle() { + return ( + <> + + + + + docs + +

The next-gen web framework.

+ + ); +} diff --git a/www/components/Icons.tsx b/www/components/Icons.tsx index 99fac5df..12a55574 100644 --- a/www/components/Icons.tsx +++ b/www/components/Icons.tsx @@ -126,3 +126,20 @@ export function GitHub(props: { class?: string }) { ); } + +export function ArrowRight() { + return ( + + + + ); +} diff --git a/www/components/NavigationBar.tsx b/www/components/NavigationBar.tsx index 70ef512e..685b072c 100644 --- a/www/components/NavigationBar.tsx +++ b/www/components/NavigationBar.tsx @@ -8,6 +8,10 @@ export default function NavigationBar(props: { active: string }) { name: "Docs", href: "/docs", }, + { + name: "Showcase", + href: "/showcase", + }, ]; return ( diff --git a/www/components/Projects.tsx b/www/components/Projects.tsx new file mode 100644 index 00000000..55332f7e --- /dev/null +++ b/www/components/Projects.tsx @@ -0,0 +1,53 @@ +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 ( +
+ {props.items.map((project) => ( +
+ + {project.title} + +
+ + {project.github && ( + + GitHub + + + )} +
+
+ ))} +
+ ); +} diff --git a/www/fresh.gen.ts b/www/fresh.gen.ts index 5d92199b..8e093e88 100644 --- a/www/fresh.gen.ts +++ b/www/fresh.gen.ts @@ -9,6 +9,7 @@ import * as $2 from "./routes/docs/[...slug].tsx"; import * as $3 from "./routes/gfm.css.ts"; import * as $4 from "./routes/index.tsx"; import * as $5 from "./routes/raw.ts"; +import * as $6 from "./routes/showcase.tsx"; import * as $$0 from "./islands/CopyArea.tsx"; import * as $$1 from "./islands/Counter.tsx"; import * as $$2 from "./islands/LemonDrop.tsx"; @@ -21,6 +22,7 @@ const manifest = { "./routes/gfm.css.ts": $3, "./routes/index.tsx": $4, "./routes/raw.ts": $5, + "./routes/showcase.tsx": $6, }, islands: { "./islands/CopyArea.tsx": $$0, diff --git a/www/routes/docs/[...slug].tsx b/www/routes/docs/[...slug].tsx index 26f0b301..bb5cdd6f 100644 --- a/www/routes/docs/[...slug].tsx +++ b/www/routes/docs/[...slug].tsx @@ -2,6 +2,8 @@ import { Head } from "$fresh/runtime.ts"; import { Handlers, PageProps } from "$fresh/server.ts"; import { frontMatter, gfm } from "../../utils/markdown.ts"; +import DocsTitle from "../../components/DocsTitle.tsx"; +import DocsHeader from "../../components/DocsHeader.tsx"; import DocsSidebar from "../../components/DocsSidebar.tsx"; import Footer from "../../components/Footer.tsx"; import NavigationBar from "../../components/NavigationBar.tsx"; @@ -57,7 +59,7 @@ export default function DocsPage(props: PageProps) { {description && }
-
+