Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 3x 24x 23x 20x 19x 19x | import { LazyMotion, MotionConfig, domAnimation } from 'motion/react';
import { headers } from 'next/headers';
import { connection } from 'next/server';
import type { JSX } from 'react';
import type { Metadata } from 'next';
import { Main, statement } from './home';
export const generateMetadata = async (): Promise<Metadata> => {
// Defer to request time: statement() derives the years figure from the clock,
// which cache components forbid during build-time prerendering.
await connection();
return {
description: statement(),
title: 'Joshua L Geschwendt—Software Engineer',
};
};
export default async function Page(): Promise<JSX.Element> {
const requestHeaders = await headers();
const nonce = requestHeaders.get('x-nonce');
return (
<MotionConfig nonce={nonce ?? undefined} reducedMotion="user">
<LazyMotion features={domAnimation} strict>
{/* <Background /> parked: the fluid sim is incomplete — remount when it ships. */}
<Main />
</LazyMotion>
</MotionConfig>
);
}
|