feat: some shit
This commit is contained in:
@ -6,6 +6,7 @@ import { getAllSeries, Series } from "@lib/resource/series.ts";
|
||||
import { Card } from "@components/Card.tsx";
|
||||
import { RedirectSearchHandler } from "@islands/Search.tsx";
|
||||
import { KMenu } from "@islands/KMenu.tsx";
|
||||
import { SeriesCard } from "@components/MovieCard.tsx";
|
||||
|
||||
export const handler: Handlers<Series[] | null> = {
|
||||
async GET(_, ctx) {
|
||||
@ -32,13 +33,7 @@ export default function Greet(props: PageProps<Series[] | null>) {
|
||||
</header>
|
||||
<Grid>
|
||||
{props.data?.map((doc) => {
|
||||
return (
|
||||
<Card
|
||||
image={doc?.meta?.image || "/placeholder.svg"}
|
||||
link={`/series/${doc.id}`}
|
||||
title={doc.name}
|
||||
/>
|
||||
);
|
||||
return <SeriesCard series={doc} />;
|
||||
})}
|
||||
</Grid>
|
||||
</MainLayout>
|
||||
|
Reference in New Issue
Block a user