Skip to content

Commit 2515c2e

Browse files
committed
Make it a locale-aware component and add other meetings
1 parent 5d637a2 commit 2515c2e

File tree

2 files changed

+35
-11
lines changed

2 files changed

+35
-11
lines changed

community/minutes.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
# Core team meetings
1+
# Community calls
22

3-
We hold biweekly meetings every second Wednesday from 17:00-18:00 (UTC). Feel free to stop by!
3+
## Meetings
44

5-
Look for the `⚫ [conda-forge] core meeting` events in the calendar below:
5+
We hold a a series of recurring meetings:
66

7-
<iframe
8-
src={ `https://calendar.google.com/calendar/embed?height=500&wkst=1&ctz=${Intl.DateTimeFormat().resolvedOptions().timeZone}&showTitle=0&showTz=1&showPrint=0&src=ODgwNTU3MGE0ZTFjYTIzMTk4NDI5NzFkYjQzODBlZDUxOGM0OTA1NzdjMDY0NTRhZGYyMzAzNzM0NTA2ZjM5N0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29t&color=%2333b679` }
9-
width="100%"
10-
height="500"
11-
frameborder="0"
12-
scrolling="no"
13-
style={{ "margin-bottom": "2em", "margin-top": "1em" }}
14-
></iframe>
7+
- `⚫ [conda-forge] core meeting`: every second Wednesday from 17:00-18:00 (UTC). Despite the name, they are open to everyone. Feel free to stop by!
8+
- `⚫ [conda-forge] bot sync`: first Friday of the month at 15:00 (UTC). These are technical meetings meant for infrastructure and tooling contributors.
9+
10+
Look for the events in the calendar below:
11+
12+
import Calendar from '@site/src/components/Calendar';
13+
14+
<Calendar />
1515

1616
We encourage contributors to join the meetings and learn more about and from the community.
1717

src/components/Calendar/index.jsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { React, useEffect, useState } from "react";
2+
3+
4+
export default function Calendar() {
5+
const [state, setState] = useState({
6+
firstDay: 1,
7+
timezone: 'UTC',
8+
});
9+
useEffect(() => {
10+
const locale = Intl.DateTimeFormat().resolvedOptions().locale;
11+
const firstDay = (new Intl.Locale(locale)).weekInfo.firstDay + 1;
12+
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
13+
setState({firstDay: firstDay, timezone: timezone});
14+
})
15+
return (
16+
<iframe
17+
src={ `https://calendar.google.com/calendar/embed?height=500&wkst=${state.firstDay}&ctz=${state.timezone}&showTitle=0&showTz=1&showPrint=0&src=ODgwNTU3MGE0ZTFjYTIzMTk4NDI5NzFkYjQzODBlZDUxOGM0OTA1NzdjMDY0NTRhZGYyMzAzNzM0NTA2ZjM5N0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29t&color=%2333b679` }
18+
width="100%"
19+
height="500"
20+
frameborder="0"
21+
style={{ "margin-bottom": "2em", "margin-top": "1em" }}
22+
></iframe>
23+
);
24+
}

0 commit comments

Comments
 (0)