aboutsummaryrefslogtreecommitdiff
path: root/lume/src
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2024-05-24 16:23:34 -0400
committerXe Iaso <me@xeiaso.net>2024-05-24 16:23:34 -0400
commit7c81305288926fc45aa2dcf7c2d905c6d12d9486 (patch)
treed81c52092d5023b4a9498767253130be1d096d1c /lume/src
parent21d75e1fc5be9b06029543304cc2e49ff8b58607 (diff)
downloadxesite-7c81305288926fc45aa2dcf7c2d905c6d12d9486.tar.xz
xesite-7c81305288926fc45aa2dcf7c2d905c6d12d9486.zip
internal/lume: make more robust
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'lume/src')
-rw-r--r--lume/src/events.jsx40
1 files changed, 19 insertions, 21 deletions
diff --git a/lume/src/events.jsx b/lume/src/events.jsx
index 4a313b2..6cc0efd 100644
--- a/lume/src/events.jsx
+++ b/lume/src/events.jsx
@@ -5,27 +5,25 @@ export const layout = "base.njk";
export const date = "2012-12-31";
export const desc = "A list of the upcoming events that I plan to attend and what I'll do there.";
-export default ({ events }) => {
- if (events.events === undefined) {
- return (
- <>
- <h1 className="text-3xl mb-4">Events</h1>
- <p>
- I don't have any events planned right now or my events API is down. Check back later!
- </p>
- </>
- );
- }
-
- return (
- <>
- <h1 className="text-3xl mb-4">Events</h1>
-
- <p className="my-4">Where in the world is Xe Iaso?</p>
-
+export default ({ events }) => (
+ <>
+ <h1 className="text-3xl mb-4">Events</h1>
+ <p className="my-4">Where in the world is Xe Iaso?</p>
+ {events.events === undefined ? (
+ <p className="my-4">
+ I don't have any events planned right now or my events API is down. Check back later or <a href="/contact">let me know</a> if you see this message in error!
+ </p>
+ ) : (
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
{events.events.map((event) => EventCard(event))}
</div>
- </>
- );
-} \ No newline at end of file
+ )}
+
+ <div className="my-4 prose">
+ <p>
+ If you'd like me to speak at an event, please <a href="/contact">contact me</a>! I'm always looking for new opportunities to share my knowledge and experiences. I'm also available for interviews, podcasts, and other media appearances.
+ </p>
+ <p>Please note that all conferences and meetups I attend require a publicly posted code of conduct.</p>
+ </div>
+ </>
+); \ No newline at end of file