2023-06-12 06:46:38 +00:00
|
|
|
import { QuartzComponentConstructor, QuartzComponentProps } from "./types"
|
2023-06-01 23:05:14 +00:00
|
|
|
|
2023-06-12 06:46:38 +00:00
|
|
|
function Header({ children }: QuartzComponentProps) {
|
2023-07-23 00:27:41 +00:00
|
|
|
return children.length > 0 ? <header>{children}</header> : null
|
2023-06-01 23:05:14 +00:00
|
|
|
}
|
2023-06-03 19:07:19 +00:00
|
|
|
|
2023-06-10 06:06:02 +00:00
|
|
|
Header.css = `
|
|
|
|
header {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
2023-06-18 17:47:07 +00:00
|
|
|
margin: 2em 0;
|
2023-07-02 20:08:29 +00:00
|
|
|
gap: 1.5rem;
|
2023-06-10 06:06:02 +00:00
|
|
|
}
|
|
|
|
|
2023-06-18 17:47:07 +00:00
|
|
|
header h1 {
|
2023-06-10 06:06:02 +00:00
|
|
|
margin: 0;
|
|
|
|
flex: auto;
|
|
|
|
}
|
|
|
|
`
|
2023-06-12 06:46:38 +00:00
|
|
|
|
|
|
|
export default (() => Header) satisfies QuartzComponentConstructor
|