Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
steps:
- uses: actions/first-interaction@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: "Gracias por tu interes en Fullstack Nights y por hacer este GitHub Issue! Pronto estaremos en contacto."
pr-message: "Gracias por tu interes en Fullstack Nights y por hacer este Pull Request! Pronto estaremos en contacto."
repo_token: ${{ secrets.GITHUB_TOKEN }}
issue_message: "Gracias por tu interes en Fullstack Nights y por hacer este GitHub Issue! Pronto estaremos en contacto."
pr_message: "Gracias por tu interes en Fullstack Nights y por hacer este Pull Request! Pronto estaremos en contacto."
2 changes: 2 additions & 0 deletions src/components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import FAQList from "./faq";
import GradientBackground from "./gradient-background";
import Image from "./image";
import Layout from "./layout";
import LumaEvents from "./luma-events";
import PageHighlight from "./page-highlight";
import PageSection from "./page-section";
import ProfileCard from "./profile-card";
Expand All @@ -23,6 +24,7 @@ export {
GradientBackground,
Image,
Layout,
LumaEvents,
PageHighlight,
PageSection,
ProfileCard,
Expand Down
35 changes: 35 additions & 0 deletions src/components/luma-events.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from "react";
import { useTranslation } from "react-i18next";

const LUMA_CALENDAR_ID = "cal-xorZLhCJO1uKH5s";

function LumaEvents() {
const { t, i18n } = useTranslation();
const lang = i18n.language?.startsWith("es") ? "es" : "en";
const src = `https://luma.com/embed/calendar/${LUMA_CALENDAR_ID}/events?lang=${lang}`;

return (
<section className="mb-20 px-4">
<div className="max-w-2xl mx-auto text-center">
<h3 className="text-h3 font-extrabold mb-6">
{t("upcoming-event.upcoming-events")}
</h3>
<iframe
key={lang}
title="Fullstack Nights events on Luma"
src={src}
width="600"
height="450"
frameBorder="0"
allowFullScreen
aria-hidden="false"
tabIndex="0"
className="w-full max-w-full mx-auto"
style={{ border: "1px solid #bfcbda88", borderRadius: "4px" }}
/>
</div>
</section>
);
}

export default LumaEvents;
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
},
"upcoming-event": {
"upcoming-event": "Upcoming event",
"upcoming-events": "Upcoming events",
"at": "at",
"venue": "Venue",
"get-tickets": "Get tickets",
Expand Down
1 change: 1 addition & 0 deletions src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
},
"upcoming-event": {
"upcoming-event": "Próximo evento",
"upcoming-events": "Próximos eventos",
"at": "a las",
"venue": "Sitio",
"get-tickets": "Obtén tu boleto",
Expand Down
5 changes: 4 additions & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { useTranslation } from "react-i18next";
import {
SEO,
Layout,
LumaEvents,
PageSection,
CallToAction,
PageHighlight,
Expand Down Expand Up @@ -46,7 +47,9 @@ function IndexPage() {
venue={event.venue}
participants={event.participants}
/>
) : null}
) : (
<LumaEvents />
)}
<PageSection
title={t("main-page.be-a-part-of-our-events")}
description={t("main-page.our-events-are-done-by-the-community")}
Expand Down
Loading