first commit
This commit is contained in:
commit
34ea15a54d
246 changed files with 18660 additions and 0 deletions
22
frontend/src/components/event/EventDescription.jsx
Normal file
22
frontend/src/components/event/EventDescription.jsx
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { SectionHeader } from '../ui/Section'
|
||||
import { Text } from '../typography/Text'
|
||||
|
||||
export function EventDescription({ paragraphs = [] }) {
|
||||
if (!paragraphs.length) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<section aria-labelledby="event-description-heading" className="py-10 md:py-12">
|
||||
<SectionHeader eyebrow="About" title="The edition" />
|
||||
<div id="event-description-heading" className="sr-only">About this event</div>
|
||||
<div className="max-w-prose space-y-5">
|
||||
{paragraphs.map((paragraph) => (
|
||||
<Text key={paragraph.slice(0, 32)} className="text-lg text-ink/90">
|
||||
{paragraph}
|
||||
</Text>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue