starting fresh
This commit is contained in:
parent
85fa9aff4a
commit
3a762d2343
111 changed files with 1939 additions and 2961 deletions
|
@ -1,10 +1,9 @@
|
|||
import { ParentComponent, Index, mergeProps, Component } from 'solid-js';
|
||||
import { Hero } from '~/common/components/hero';
|
||||
import { List } from '~/common/components/list';
|
||||
import { emptyEntry } from '../content';
|
||||
import type { Entry, Category } from '../content';
|
||||
import { ListItem } from './list-item';
|
||||
import { css } from 'styled-system/css';
|
||||
import { Component, Index } from "solid-js";
|
||||
import type { Entry, Category } from "../content";
|
||||
import { ListItem } from "./list-item";
|
||||
import { List } from "~/components/list";
|
||||
import { Hero } from "~/components/hero";
|
||||
import css from "./overview.module.css";
|
||||
|
||||
type OverviewProps = {
|
||||
highlight: Entry;
|
||||
|
@ -12,19 +11,11 @@ type OverviewProps = {
|
|||
};
|
||||
|
||||
export function Overview(props: OverviewProps) {
|
||||
const finalProps = mergeProps(
|
||||
{
|
||||
highlight: emptyEntry,
|
||||
categories: [],
|
||||
},
|
||||
props,
|
||||
);
|
||||
|
||||
return (
|
||||
<div class={container}>
|
||||
<Hero entry={finalProps.highlight}></Hero>
|
||||
<div class={css.container}>
|
||||
<Hero entry={props.highlight}></Hero>
|
||||
|
||||
<Index each={finalProps.categories}>
|
||||
<Index each={props.categories}>
|
||||
{(category) => (
|
||||
<List label={category().label} items={category().entries}>
|
||||
{(entry) => <ListItem entry={entry()} />}
|
||||
|
@ -34,5 +25,3 @@ export function Overview(props: OverviewProps) {
|
|||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
const container = css({ display: 'grid', gridAutoFlow: 'row', gap: '2em' });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue