Stock/routes/pages/[name].tsx

26 lines
726 B
TypeScript
Raw Normal View History

2023-07-23 00:32:54 +09:00
import { PageProps } from "$fresh/server.ts";
import { Head } from "$fresh/runtime.ts";
import StockList from "../../islands/StockList.tsx";
export default function Pages(props: PageProps) {
return <>
<Head>
<title>Stock: {props.params.name}</title>
</Head>
<div class="px-4 py-8 mx-auto bg-[#86efac]">
<div class="max-w-screen-md mx-auto flex flex-col items-center justify-center">
<img
class="my-6"
src="/stockgraph.svg"
width="128"
height="128"
alt="stock graph"
/>
2023-07-24 09:10:32 +09:00
<h1 class="text-4xl">{props.params.name}</h1>
2023-07-23 00:32:54 +09:00
<StockList pageName={props.params.name}></StockList>
</div>
</div>
</>
}