feat: various improvements

This commit is contained in:
Dan Finch 2026-05-19 00:19:01 +02:00
parent 6598030888
commit 4999423af4
9 changed files with 42 additions and 23 deletions

View file

@ -86,7 +86,7 @@ function Task({
textAlign.left,
div(
width("100%"),
pad("4px"),
gap("4px"),
display.flex,
justifyContent.flexStart,
img(

View file

@ -12,8 +12,8 @@ export default function Theme() {
),
),
rule("a.button", [
textDecoration("none"),
cursor("default"),
textDecoration.none,
cursor._default,
display.flex,
alignItems.center,
]),
@ -27,14 +27,13 @@ export default function Theme() {
fontSize("14px"),
rule("h1", fontSize("28px")),
rule("h2", fontSize("20px")),
rule(
"aside",
rule(aside,
float.right,
marginLeft("20px"),
paddingBottom(0),
),
rule("p, h1, h2, h3, ul", margin("12px 0")),
),
rule("iframe", border(0)),
rule(iframe, border(0)),
]
}

View file

@ -1,7 +1,7 @@
const DEFAULT_WIDTH = "770px"
export default function Window(
props: { title: string; width?: Content; flat?: boolean },
props: { title: Content; width?: Content; flat?: boolean },
...contents: Content[]
) {
return article.window(

View file

@ -2,12 +2,15 @@ import Layout from "ui/Layout"
import Window from "ui/Layout/Window"
const title = "Dan Finch - Projects"
const sigitex = "https://sigitex.com"
export default function Projects() {
return Layout(
{ title, url: "/projects" },
Window(
{ title },
{
title: span(title, " (", a({ href: sigitex }, color.yellow, "SIGITEX.COM"), ")")
},
backgroundColor.black,
display.flex,
iframe({ src: "https://sigitex.com" },