mirror of
https://github.com/zen-browser/docs.git
synced 2025-07-08 17:30:03 +02:00
initial
This commit is contained in:
commit
a08a51eea3
241 changed files with 23091 additions and 0 deletions
22
quartz/components/Header.tsx
Normal file
22
quartz/components/Header.tsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue