1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 07:45:32 -04:00

Migrate to app router (#2254)

This commit is contained in:
2025-02-07 11:33:38 -05:00
committed by GitHub
parent e97613dda5
commit 8aabb4a66f
179 changed files with 4095 additions and 4951 deletions

View File

@@ -1,15 +1,18 @@
import { styled, css } from "../../lib/styles/stitches.config";
import clsx from "clsx";
import type { ComponentPropsWithoutRef } from "react";
const ListStyles = css({
marginLeft: "1.5em",
paddingLeft: 0,
});
import styles from "./List.module.css";
export const UnorderedList = styled("ul", ListStyles);
export const OrderedList = styled("ol", ListStyles);
export const UnorderedList = ({ className, ...rest }: ComponentPropsWithoutRef<"ul">) => (
<ul className={clsx(styles.list, className)} {...rest} />
);
export const ListItem = styled("li", {
paddingLeft: "0.25em",
});
export const OrderedList = ({ className, ...rest }: ComponentPropsWithoutRef<"ol">) => (
<ol className={clsx(styles.list, className)} {...rest} />
);
export const ListItem = ({ className, ...rest }: ComponentPropsWithoutRef<"li">) => (
<li className={clsx(styles.listItem, className)} {...rest} />
);
export default UnorderedList;