diff --git a/components/App.tsx b/components/App.tsx index 0f5e3da..b3b305f 100644 --- a/components/App.tsx +++ b/components/App.tsx @@ -79,17 +79,19 @@ export default function App() { } return ( -
-
- -
- - +
+
+
+ +
+ + +
+
-
) diff --git a/components/Button.tsx b/components/Button.tsx index 255b8e1..465bfff 100644 --- a/components/Button.tsx +++ b/components/Button.tsx @@ -1,11 +1,17 @@ -import React from 'react' +import React, { PointerEvent } from 'react' -export default function Button({ children, onClick }: { children: React.ReactNode; onClick: () => void }) { +export default function Button({ + children, + onClick, +}: { + children: React.ReactNode + onClick: (event: PointerEvent) => void +}) { return ( diff --git a/components/Header.tsx b/components/Header.tsx index 7934264..a8f7f38 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -2,8 +2,8 @@ import React from 'react' export default function Header() { return ( -
-

PDFer

+
+

PDFer

) } diff --git a/components/Input.tsx b/components/Input.tsx index 0a1632e..fb6c0e9 100644 --- a/components/Input.tsx +++ b/components/Input.tsx @@ -14,7 +14,7 @@ export default function Input({ onchange: (name: string, event: ChangeEvent<{ value: string }>) => void }) { return ( -
+ <> @@ -28,6 +28,6 @@ export default function Input({ onChange={onchange.bind(null, name)} />
-
+ ) } diff --git a/components/Layout.tsx b/components/Layout.tsx index a3dca81..2ae43b7 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -4,9 +4,9 @@ import Header from './Header' export default function Layout({ children }: { children: React.ReactNode }) { return ( -
+ <>
{children}
-
+ ) } diff --git a/components/LetterOptions.tsx b/components/LetterOptions.tsx index c7b6a63..be01f9e 100644 --- a/components/LetterOptions.tsx +++ b/components/LetterOptions.tsx @@ -35,56 +35,73 @@ export default function LetterOptions(props: IProps) { ] return ( -
- - - - - - - - - - - - +
+ +
+ - - +
+
+ +
+
+ +
+
+ + + + + + + +
+
+ + + + + + +
) } diff --git a/components/Preview.tsx b/components/Preview.tsx index 681a755..a99c22d 100644 --- a/components/Preview.tsx +++ b/components/Preview.tsx @@ -6,16 +6,9 @@ export default function Preview({ pdfIsLoading, pdfError, pdfUrl }: IPdfProps) { return
Lade…
} - const errorStyles = { - padding: '6px 12px', - color: 'white', - backgroundColor: '#d81e1e', - borderRadius: '3px', - } - if (pdfError) { return ( -
+
😢 {' '} @@ -25,13 +18,8 @@ export default function Preview({ pdfIsLoading, pdfError, pdfUrl }: IPdfProps) { } if (!pdfUrl) { - return
Knopf drücken dann gibts hier was zu sehen!
+ return null } - const styles = { - width: '700px', - height: '1050px', - } - - return + return } diff --git a/components/Select.tsx b/components/Select.tsx index 48b0ea4..8b4f8db 100644 --- a/components/Select.tsx +++ b/components/Select.tsx @@ -14,7 +14,7 @@ export default function Select({ options: { name: string; value: string }[] }) { return ( -
+ <> @@ -30,6 +30,6 @@ export default function Select({ ))} -
+ ) } diff --git a/components/TextAreaInput.tsx b/components/TextAreaInput.tsx index 448082d..ae1bd72 100644 --- a/components/TextAreaInput.tsx +++ b/components/TextAreaInput.tsx @@ -16,7 +16,7 @@ export default function TextAreaInput({ styles?: string }) { return ( -
+ <> @@ -31,6 +31,6 @@ export default function TextAreaInput({ value={value} >
-
+ ) }