chore: concerts + fix modals

This commit is contained in:
Cory Dransfeldt 2024-11-17 16:38:19 -08:00
parent 3345c170fc
commit 463a26defc
No known key found for this signature in database
5 changed files with 144 additions and 27 deletions

View file

@ -1,8 +1,25 @@
---
const { content } = Astro.props;
---
import { md } from "@utils/helpers/general.js";
import { IconCircleX, IconInfoCircle } from "@tabler/icons-react";
<div class="modal">
<button class="close">Close</button>
<div class="content">{content}</div>
</div>
const { content, id } = Astro.props;
---
<>
<input
class="modal-input"
id={id}
type="checkbox"
tabindex="0"
/>
<label class="modal-toggle" for={id}>
<IconInfoCircle size={24} />
</label>
<div class="modal-wrapper">
<div class="modal-body">
<label class="modal-close" for={id}>
<IconCircleX size={24} />
</label>
<div set:html={md(content)}></div>
</div>
</div>
</>