diff --git a/www/components/DocsTitle.tsx b/www/components/DocsTitle.tsx index 5a08c6b1..aad07ee3 100644 --- a/www/components/DocsTitle.tsx +++ b/www/components/DocsTitle.tsx @@ -4,6 +4,7 @@ export default function DocsTitle(props: { title: string }) { + Fresh logo diff --git a/www/components/gallery/Carousel.tsx b/www/components/gallery/Carousel.tsx index 008250d1..ac5715a4 100644 --- a/www/components/gallery/Carousel.tsx +++ b/www/components/gallery/Carousel.tsx @@ -48,7 +48,7 @@ const Slide = (props: SlideProps) => { class={`${props.class} ${color} h-80 w-full text-center text-black p-5`} > {text} - + {text} ); }; diff --git a/www/components/gallery/Footer.tsx b/www/components/gallery/Footer.tsx index f019a35f..196bf536 100644 --- a/www/components/gallery/Footer.tsx +++ b/www/components/gallery/Footer.tsx @@ -67,6 +67,7 @@ export default function Footer({ children }: Props) { diff --git a/www/routes/components.tsx b/www/routes/components.tsx index f2515dcf..7aeda47a 100644 --- a/www/routes/components.tsx +++ b/www/routes/components.tsx @@ -2,7 +2,7 @@ import PageFooter from "../components/Footer.tsx"; import Header from "../components/Header.tsx"; import ComponentGallery from "../islands/ComponentGallery.tsx"; -import { Head } from "$fresh/runtime.ts"; +import { asset, Head } from "$fresh/runtime.ts"; import { Handlers, PageProps } from "$fresh/server.ts"; function getSource(path: string) { @@ -30,19 +30,29 @@ export const handler: Handlers = { }, }; +const TITLE = "Components | fresh"; +const DESCRIPTION = "A collection of components made for Fresh."; + interface HomeProps { sources: Record; } export default function Home(props: PageProps) { + const ogImageUrl = new URL(asset("/home-og.png"), props.url).href; return (
- Components | fresh + {TITLE} + + + + + +
diff --git a/www/routes/docs/[...slug].tsx b/www/routes/docs/[...slug].tsx index e22e44dc..c612cc3d 100644 --- a/www/routes/docs/[...slug].tsx +++ b/www/routes/docs/[...slug].tsx @@ -51,7 +51,9 @@ export const handler: Handlers = { }; export default function DocsPage(props: PageProps) { - let description; + const ogImageUrl = new URL(asset("/home-og.png"), props.url).href; + const title = `${props.data.page?.title ?? "Not Found"} | fresh docs`; + let description = "Fresh Document"; if (props.data.page.data.description) { description = String(props.data.page.data.description); @@ -60,9 +62,14 @@ export default function DocsPage(props: PageProps) { return ( <> - {props.data.page?.title ?? "Not Found"} | fresh docs + {title} - {description && } + + + + + +
diff --git a/www/routes/showcase.tsx b/www/routes/showcase.tsx index 57c390be..27e54e31 100644 --- a/www/routes/showcase.tsx +++ b/www/routes/showcase.tsx @@ -1,14 +1,25 @@ -import { Head } from "$fresh/runtime.ts"; +import { asset, Head } from "$fresh/runtime.ts"; +import { PageProps } from "$fresh/server.ts"; import Projects, { Project } from "../components/Projects.tsx"; import Header from "../components/Header.tsx"; import Footer from "../components/Footer.tsx"; import projects from "../data/showcase.json" assert { type: "json" }; -export default function ShowcasePage() { +const TITLE = "Showcase | fresh"; +const DESCRIPTION = "Selection of projects that have been built with Fresh."; + +export default function ShowcasePage(props: PageProps) { + const ogImageUrl = new URL(asset("/home-og.png"), props.url).href; return ( <> - Showcase | fresh + {TITLE} + + + + + +