Ligonier Code Challenge.
This commit is contained in:
commit
86fa02eec9
21 changed files with 4912 additions and 0 deletions
25
app/routes/home.tsx
Normal file
25
app/routes/home.tsx
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import type { Route } from "./+types/home";
|
||||
import { getPicsumData } from "../api/picsum";
|
||||
import { PhotoGallery } from "../ligonier/photo_gallery";
|
||||
|
||||
export function meta({}: Route.MetaArgs) {
|
||||
return [
|
||||
{ title: "Ligonier Code Challenge" },
|
||||
{ name: "description", content: "Welcome to React Router!" },
|
||||
];
|
||||
}
|
||||
|
||||
export async function loader(
|
||||
{request,
|
||||
}: Route.LoaderArgs) {
|
||||
const data = await getPicsumData();
|
||||
return data;
|
||||
}
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<PhotoGallery
|
||||
numColumns={5}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue