Skip to content

Commit 90a4b1e

Browse files
authored
feat: embed luma calendar on home (#79)
1 parent 7a1c4c8 commit 90a4b1e

6 files changed

Lines changed: 46 additions & 4 deletions

File tree

.github/workflows/greetings.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
steps:
1616
- uses: actions/first-interaction@v3
1717
with:
18-
repo-token: ${{ secrets.GITHUB_TOKEN }}
19-
issue-message: "Gracias por tu interes en Fullstack Nights y por hacer este GitHub Issue! Pronto estaremos en contacto."
20-
pr-message: "Gracias por tu interes en Fullstack Nights y por hacer este Pull Request! Pronto estaremos en contacto."
18+
repo_token: ${{ secrets.GITHUB_TOKEN }}
19+
issue_message: "Gracias por tu interes en Fullstack Nights y por hacer este GitHub Issue! Pronto estaremos en contacto."
20+
pr_message: "Gracias por tu interes en Fullstack Nights y por hacer este Pull Request! Pronto estaremos en contacto."

src/components/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import FAQList from "./faq";
55
import GradientBackground from "./gradient-background";
66
import Image from "./image";
77
import Layout from "./layout";
8+
import LumaEvents from "./luma-events";
89
import PageHighlight from "./page-highlight";
910
import PageSection from "./page-section";
1011
import ProfileCard from "./profile-card";
@@ -23,6 +24,7 @@ export {
2324
GradientBackground,
2425
Image,
2526
Layout,
27+
LumaEvents,
2628
PageHighlight,
2729
PageSection,
2830
ProfileCard,

src/components/luma-events.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import React from "react";
2+
import { useTranslation } from "react-i18next";
3+
4+
const LUMA_CALENDAR_ID = "cal-xorZLhCJO1uKH5s";
5+
6+
function LumaEvents() {
7+
const { t, i18n } = useTranslation();
8+
const lang = i18n.language?.startsWith("es") ? "es" : "en";
9+
const src = `https://luma.com/embed/calendar/${LUMA_CALENDAR_ID}/events?lang=${lang}`;
10+
11+
return (
12+
<section className="mb-20 px-4">
13+
<div className="max-w-2xl mx-auto text-center">
14+
<h3 className="text-h3 font-extrabold mb-6">
15+
{t("upcoming-event.upcoming-events")}
16+
</h3>
17+
<iframe
18+
key={lang}
19+
title="Fullstack Nights events on Luma"
20+
src={src}
21+
width="600"
22+
height="450"
23+
frameBorder="0"
24+
allowFullScreen
25+
aria-hidden="false"
26+
tabIndex="0"
27+
className="w-full max-w-full mx-auto"
28+
style={{ border: "1px solid #bfcbda88", borderRadius: "4px" }}
29+
/>
30+
</div>
31+
</section>
32+
);
33+
}
34+
35+
export default LumaEvents;

src/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
},
145145
"upcoming-event": {
146146
"upcoming-event": "Upcoming event",
147+
"upcoming-events": "Upcoming events",
147148
"at": "at",
148149
"venue": "Venue",
149150
"get-tickets": "Get tickets",

src/locales/es.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
},
145145
"upcoming-event": {
146146
"upcoming-event": "Próximo evento",
147+
"upcoming-events": "Próximos eventos",
147148
"at": "a las",
148149
"venue": "Sitio",
149150
"get-tickets": "Obtén tu boleto",

src/pages/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";
44
import {
55
SEO,
66
Layout,
7+
LumaEvents,
78
PageSection,
89
CallToAction,
910
PageHighlight,
@@ -46,7 +47,9 @@ function IndexPage() {
4647
venue={event.venue}
4748
participants={event.participants}
4849
/>
49-
) : null}
50+
) : (
51+
<LumaEvents />
52+
)}
5053
<PageSection
5154
title={t("main-page.be-a-part-of-our-events")}
5255
description={t("main-page.our-events-are-done-by-the-community")}

0 commit comments

Comments
 (0)