diff --git a/website/src/Layout.tsx b/website/src/Layout.tsx index 618db31baffd..752f75eca33e 100644 --- a/website/src/Layout.tsx +++ b/website/src/Layout.tsx @@ -51,10 +51,12 @@ import { } from '@edgeandnode/gds/icons' import { + CalendarIcon, Callout, CodeBlock, DocSearch, Heading, + HourglassIcon, Image, Link, type LinkProps, @@ -710,32 +712,18 @@ function MDXContent({ toc: headings, children }: ComponentPropsWithoutRef + {readingTime ? ( + // TODO: Use space-600 from the new colors when GDS is updated + + +

+ {Math.ceil(readingTime.minutes)} {t('global.page.readingTime.minutes')} +

+
+ ) : null} {frontMatter.title ? (

{frontMatter.title}

) : null} - {/* TODO: Design "last updated" and "reading time" */} - {lastUpdated ? ( -

- {t('global.page.lastUpdated')}:{' '} - -

- ) : null} - {readingTime ? ( -

- {t('global.page.readingTime.title')}: {Math.ceil(readingTime.minutes)}{' '} - {t('global.page.readingTime.minutes')} -

- ) : null} ) : null}
{children}
-
+
+ {lastUpdated ? ( + + + {/* TODO: Use space-600 from the new colors when GDS is updated */} +

+ +

+
+ ) : null} {/* TODO: Use `ExperimentalLink` */} @@ -837,11 +844,6 @@ function MDXContent({ toc: headings, children }: ComponentPropsWithoutRef
{t('global.page.onThisPage')}
- {/* TODO: Use `ExperimentalLink` */} - - - {t('global.page.edit')} -
{headings.length > 0 ? (