- Introduced `PageSeo` component for managing page metadata for social sharing. - Created Open Graph image templates using SVG and static fonts for better visual representation. - Implemented service alert management with functions to check active alerts and format route numbers. - Added utility functions for generating and watching alert validity. - Developed a script to generate Open Graph images dynamically based on page content. - Included tests for service alert functionalities to ensure correctness and reliability.
16 lines
372 B
TypeScript
16 lines
372 B
TypeScript
import { Html, Head, Main, NextScript, DocumentProps } from 'next/document';
|
|
|
|
export default function Document(props: DocumentProps) {
|
|
return (
|
|
<Html lang={props.locale || 'en'}>
|
|
<Head>
|
|
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
|
|
</Head>
|
|
<body>
|
|
<Main />
|
|
<NextScript />
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|