From 55828f5f953b599b93a5165601898792db8a0050 Mon Sep 17 00:00:00 2001 From: Fabian Hiller Date: Mon, 4 Mar 2024 22:08:32 -0500 Subject: [PATCH] Add Credits component to blog post layout --- website/src/routes/blog/(posts)/layout.tsx | 35 +++++++++++++++++-- .../should-we-change-valibots-api/index.mdx | 2 ++ 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/website/src/routes/blog/(posts)/layout.tsx b/website/src/routes/blog/(posts)/layout.tsx index 6ab538def..c113f61a0 100644 --- a/website/src/routes/blog/(posts)/layout.tsx +++ b/website/src/routes/blog/(posts)/layout.tsx @@ -1,27 +1,56 @@ import { component$, Slot } from '@builder.io/qwik'; -import { useDocumentHead } from '@builder.io/qwik-city'; -import { PostCover, PostMeta } from '~/components'; +import { useDocumentHead, useLocation } from '@builder.io/qwik-city'; +import { Credits, IconButton, PostCover, PostMeta } from '~/components'; +import { PenIcon } from '~/icons'; export default component$(() => { + // Use document head and location const head = useDocumentHead(); + const location = useLocation(); + return ( -
+
+ {/* Article */}
+ {/* Title */}

{head.title}

+ + {/* Meta */}
+ + {/* Cover */} + + {/* Content */}
+ + {/* Edit page buttton */} + + +
+ + {/* Credits */} +
+ +
); }); diff --git a/website/src/routes/blog/(posts)/should-we-change-valibots-api/index.mdx b/website/src/routes/blog/(posts)/should-we-change-valibots-api/index.mdx index 4b70e7c6b..930ba0f1a 100644 --- a/website/src/routes/blog/(posts)/should-we-change-valibots-api/index.mdx +++ b/website/src/routes/blog/(posts)/should-we-change-valibots-api/index.mdx @@ -8,6 +8,8 @@ authors: - fabian-hiller - Demivan - xcfox +contributors: + - fabian-hiller --- import NpmDownloads from './npm-downloads.jpg?jsx';