Frontend update
This commit is contained in:
14
client/src/components/PageHeader.jsx
Normal file
14
client/src/components/PageHeader.jsx
Normal file
@@ -0,0 +1,14 @@
|
||||
// The eyebrow + title + lead block at the top of most pages.
|
||||
export default function PageHeader({ eyebrow, title, lead, center = false }) {
|
||||
return (
|
||||
<section style={{ marginBottom: 40, textAlign: center ? 'center' : 'left' }}>
|
||||
{eyebrow && <p className="eyebrow">{eyebrow}</p>}
|
||||
<h1 className="h1">{title}</h1>
|
||||
{lead && (
|
||||
<p className="lead" style={{ maxWidth: 680, marginLeft: center ? 'auto' : undefined, marginRight: center ? 'auto' : undefined }}>
|
||||
{lead}
|
||||
</p>
|
||||
)}
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user