mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-06-10 09:10:03 +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
|
|
@ -0,0 +1,16 @@
|
|||
.errorDisplay {
|
||||
background-color: var(--red-3);
|
||||
color: var(--text-accent-bg-0);
|
||||
padding: 0.75em 1.25em;
|
||||
border-radius: var(--ifm-global-radius);
|
||||
box-shadow: var(--ifm-global-shadow-lw);
|
||||
margin: 1em 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75em;
|
||||
}
|
||||
|
||||
.title {
|
||||
display: block;
|
||||
line-height: 1;
|
||||
}
|
||||
20
server/ui/src/components/ErrorDisplay/ErrorDisplay.tsx
Normal file
20
server/ui/src/components/ErrorDisplay/ErrorDisplay.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import type { ReactNode } from "react";
|
||||
import React from "react";
|
||||
import styles from "./ErrorDisplay.module.css";
|
||||
|
||||
function ErrorDisplay({
|
||||
title,
|
||||
children,
|
||||
}: {
|
||||
title: string;
|
||||
children?: ReactNode;
|
||||
}): JSX.Element {
|
||||
return (
|
||||
<div role="alert" className={styles.errorDisplay}>
|
||||
<strong className={styles.title}>{title}</strong>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default ErrorDisplay;
|
||||
3
server/ui/src/components/ErrorDisplay/index.ts
Normal file
3
server/ui/src/components/ErrorDisplay/index.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import ErrorDisplay from "./ErrorDisplay";
|
||||
|
||||
export default ErrorDisplay;
|
||||
Loading…
Add table
Add a link
Reference in a new issue