Homepage and started styling

This commit is contained in:
Felix Kaspar
2024-08-10 00:17:38 +02:00
parent d449ccf624
commit f7f6d40eee
15 changed files with 301 additions and 508 deletions

View File

@@ -1,11 +1,31 @@
import { Link } from "react-router-dom";
import { getOperatorByName, getSchemaByName, listOperatorNames } from "@stirling-pdf/shared-operations/src/workflow/operatorAccessor";
import styles from './home.module.css';
function Home() {
const operators = listOperatorNames();
return (
<div>
<h2>Home</h2>
<Link to="/about">About</Link><br />
<Link to="/dashboard">Dashboard</Link><br />
<h1>
Stirling PDF
</h1>
<h2>
Your locally hosted one-stop-shop for all your PDF needs
</h2>
{/**TODO: Search bar */}
<div className={styles.operator_container}>
{
operators.map((operator) => {
return (<a key={operator} href={"/operators/" + operator}><div className={styles.operator_card}>{operator}</div></a>)
})
}
</div>
<Link to="/dynamic">Dynamic</Link>
</div>
);