make histori page

This commit is contained in:
Muhammad Izza Alfiansyah 2024-04-10 18:04:22 +07:00
parent 613371861a
commit e5a9e22f7b
2 changed files with 42 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import { Route, Router } from "@solidjs/router"; import { Route, Router } from "@solidjs/router";
import Index from "./pages/Index"; import Index from "./pages/Index";
import Pengujian from "./pages/Pengujian"; import Pengujian from "./pages/Pengujian";
import Histori from "./pages/Histori";
interface Props { interface Props {
root: any; root: any;
@ -11,6 +12,7 @@ export default function (props: Props) {
<Router root={props.root}> <Router root={props.root}>
<Route path="/" component={Index}></Route> <Route path="/" component={Index}></Route>
<Route path="/pengujian" component={Pengujian}></Route> <Route path="/pengujian" component={Pengujian}></Route>
<Route path="/histori" component={Histori}></Route>
</Router> </Router>
); );
} }

View File

@ -0,0 +1,40 @@
import Table from "../components/Table";
export default function () {
return (
<div class="space-y-5">
<div class="bg-white rounded p-5 shadow">
<Table
headers={["Tanggal", "Lama Fermentasi", "Rentang Suhu", "Status"]}
items={[
[
"24 Maret 2024",
"32 Jam",
"35 - 40 C",
<span class="uppercase text-green-500">SUKSES</span>,
],
[
"23 Maret 2024",
"6 Jam",
"25- 35 C",
<span class="uppercase text-red-500">GAGAL</span>,
],
[
"22 Maret 2024",
"24 Jam",
"30 - 40 C",
<span class="uppercase text-green-500">SUKSES</span>,
],
[
"24 Maret 2024",
"24 Jam",
"30 - 40 C",
<span class="uppercase text-green-500">SUKSES</span>,
],
]}
class="my-5"
></Table>
</div>
</div>
);
}