keroosha.cybergulag.today/quartz/components/Header.tsx

24 lines
338 B
TypeScript
Raw Normal View History

2023-06-08 08:27:32 +03:00
import { QuartzComponentProps } from "./types"
2023-06-02 02:05:14 +03:00
2023-06-08 08:27:32 +03:00
export default function Header({ children }: QuartzComponentProps) {
2023-06-02 02:05:14 +03:00
return <header>
2023-06-08 08:27:32 +03:00
{children}
2023-06-02 02:05:14 +03:00
</header>
}
2023-06-03 22:07:19 +03:00
2023-06-10 09:06:02 +03:00
Header.css = `
header {
display: flex;
flex-direction: row;
align-items: center;
margin: 1em 0 2em 0;
& > h1 {
}
}
header > h1 {
margin: 0;
flex: auto;
}
`