AetheriaLore/quartz-site/quartz/components/Header.tsx
Meta Vens 6127440e57 Static Wiki Site via Quartz
Included the static site generator Quartz and customized it to generate a wiki using the contents of the Obsidian Vault
2026-04-19 09:47:46 +01:00

22 lines
470 B
TypeScript

import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
const Header: QuartzComponent = ({ children }: QuartzComponentProps) => {
return children.length > 0 ? <header>{children}</header> : null
}
Header.css = `
header {
display: flex;
flex-direction: row;
align-items: center;
margin: 2rem 0;
gap: 1.5rem;
}
header h1 {
margin: 0;
flex: auto;
}
`
export default (() => Header) satisfies QuartzComponentConstructor