mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 09:56:57 +00:00
import lichess pgn viewer as a react component
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
import LichessButton from "#/components/LichessButton.tsx";
|
||||
import PgnViewerComponent from "#/components/LichessPgnViewerComponent.tsx";
|
||||
import Section from "#/components/Section.tsx";
|
||||
|
||||
const Chessboard = () => (
|
||||
<main className="px-4 pb-8 place-self-center min-h-[calc(100vh-226px)]">
|
||||
<Section title="Convert PGN to PDF">
|
||||
<LichessButton /> or{" "}
|
||||
<input type="file" id="file-input" className="file-input max-w-xs" />
|
||||
</Section>
|
||||
</main>
|
||||
);
|
||||
const Chessboard = () => {
|
||||
return (
|
||||
<main className="px-4 pb-8 place-self-center min-h-[calc(100vh-226px)]">
|
||||
<Section title="Convert PGN to PDF">
|
||||
<LichessButton /> or{" "}
|
||||
<input type="file" id="file-input" className="file-input max-w-xs" />
|
||||
</Section>
|
||||
|
||||
<PgnViewerComponent pgn="" />
|
||||
</main>
|
||||
);
|
||||
};
|
||||
|
||||
export default Chessboard;
|
||||
|
||||
Reference in New Issue
Block a user