mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
Resolve https://projekte.kosit.org/kosit/validator/-/issues/97 "Replace docsify from UI"
This commit is contained in:
parent
a10cc14d06
commit
219aeaa1b7
100 changed files with 27369 additions and 1072 deletions
30
server/ui/src/components/PageLayout/PageLayout.tsx
Normal file
30
server/ui/src/components/PageLayout/PageLayout.tsx
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
import type { ReactNode } from "react";
|
||||
import React from "react";
|
||||
import Layout from "@theme/Layout";
|
||||
import styles from "./PageLayout.module.css";
|
||||
|
||||
function PageLayout({
|
||||
children,
|
||||
layoutDescription,
|
||||
description,
|
||||
title,
|
||||
headline,
|
||||
}: {
|
||||
children: ReactNode;
|
||||
layoutDescription: string;
|
||||
description: string;
|
||||
headline: string;
|
||||
title?: string;
|
||||
}): JSX.Element {
|
||||
return (
|
||||
<Layout description={layoutDescription} title={title}>
|
||||
<main className="container padding-top--md padding-bottom--lg">
|
||||
<h1 className={styles.headline}>{headline}</h1>
|
||||
<p>{description}</p>
|
||||
{children}
|
||||
</main>
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
export default PageLayout;
|
||||
Loading…
Add table
Add a link
Reference in a new issue