starting fresh

This commit is contained in:
Chris Kruining 2025-03-31 00:34:55 +02:00
parent 85fa9aff4a
commit 3a762d2343
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
111 changed files with 1939 additions and 2961 deletions

View file

@ -1,18 +1,29 @@
import { Title } from "@solidjs/meta";
import { Title } from '@solidjs/meta';
import { createAsync } from '@solidjs/router';
import { Overview } from '~/features/overview';
import { listCategories, getEntry } from '~/features/content';
import { Show } from 'solid-js';
export const route = {
load: () => ({
highlight: getEntry(14),
categories: listCategories(),
}),
};
export default function Home() {
return (
<main>
<Title>Hello World</Title>
const highlight = createAsync(() => getEntry(14));
const categories = createAsync(() => listCategories());
<h1>Hello world!</h1>
<p>
Visit{" "}
<a href="https://start.solidjs.com" target="_blank">
start.solidjs.com
</a>{" "}
to learn how to build SolidStart apps.
</p>
</main>
console.log('page', highlight()?.id, categories?.length);
return (
<>
<Title>Home</Title>
<Show when={highlight() && categories()}>
<Overview highlight={highlight()} categories={categories()} />
</Show>
</>
);
}

View file

@ -1,9 +0,0 @@
import { Title } from "@solidjs/meta";
export default function Index() {
const title = 'Movies';
return <>
<Title>{ title }</Title>
<h1>{title}</h1>
</>;
}

View file

@ -1,20 +0,0 @@
import { Title } from "@solidjs/meta";
import { createAsync } from "@solidjs/router";
import { createEffect } from "solid-js";
import { Overview } from '~/features/overview';
import { listCategories, getEntry } from "~/features/content";
export const route = {
load: () => listCategories(),
};
export default function Index() {
const highlight = createAsync(() => getEntry(14));
const categories = createAsync(() => listCategories());
const title = 'Shows';
return <>
<Title>{ title }</Title>
<Overview highlight={highlight()} categories={categories()}></Overview>
</>;
}