diff --git a/.gitignore b/.gitignore index 8f322f0..cdf945b 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,6 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts + +#env +.env \ No newline at end of file diff --git a/README.md b/README.md index d7f3159..6d84897 100644 --- a/README.md +++ b/README.md @@ -6,3 +6,13 @@ First, run the development server: npm i next npm run dev ``` +Create an .env file and add these variables: + +MEETUP_API_BASE_URL=https://www.meetup.com + +SETTINGS_BASE_URL=https://raw.githubusercontent.com/CodeandCoffeeCommunity/Code-and-Coffee-Website-Service-Settings/production/settings + + +Reach out to Website Team to get these keys +NOTION_API_KEY = secret... +NOTION_API_DATABASE = \ No newline at end of file diff --git a/app/(routes)/organizers/page.tsx b/app/(routes)/organizers/page.tsx index 768f937..53e2e36 100644 --- a/app/(routes)/organizers/page.tsx +++ b/app/(routes)/organizers/page.tsx @@ -1,193 +1,24 @@ + import "@/app/globals.css"; import Wrapper from "@/components/layout/Wrapper"; -const team = [ - { - name: "Daniel Kapper", - role: "Co-Organizer", - linkedinUrl: "https://www.linkedin.com/in/kapper/", - // teamLead: 'Team Lead:', - imageUrl: - "https://res.cloudinary.com/danielkapper-com/image/upload/v1584983915/49256474_10218714097030554_1619941130089005056_o.jpg_szwvwp.jpg", - }, - { - name: "Brian Towne", - role: "Co-Organizer", - linkedinUrl: "https://www.linkedin.com/in/bjtowne/", - // teamLead: 'Team Lead:', - - imageUrl: - "https://media.licdn.com/dms/image/C5603AQF4XNgseUCHyQ/profile-displayphoto-shrink_400_400/0/1655003018441?e=1694044800&v=beta&t=PCruuX2t6f9IkQ92e_z-OdSDIR2Qpf5WOuM7eOQ7KbM" - }, - { - name: "Anton Shelkovnikov", - role: "Co-Organizer", - linkedinUrl: "https://www.linkedin.com/in/antonxdev/", - // teamLead: 'Team Lead:', - team: 'Volunteer Onboarding', - imageUrl: - "https://media.licdn.com/dms/image/C4E03AQHKGkWJ9knk4A/profile-displayphoto-shrink_400_400/0/1652227805550?e=1694044800&v=beta&t=FxfNvYBDkdkeTIl2SlBYJK4UWvhcY3GWBrzxbA64hsE" - }, - { - name: "Alex Pereira", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/alexpereira7/", - // teamLead: 'Team Lead:', - team: 'Website', - imageUrl: - "https://media.licdn.com/dms/image/C4D03AQEQyicXIvVy7A/profile-displayphoto-shrink_200_200/0/1598730872972?e=1695254400&v=beta&t=ahPUkwrpSxlZJVKnDH-zfXAN_ckCHuIMrGDq9dPlD5Y" - }, - { - name: "Cedric Jean-Philippe", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/cedric-jean-philippe/", - // teamLead: 'Team Lead:', - team: 'Website', - imageUrl: - "https://media.discordapp.net/attachments/1129423864502427748/1137149639762657321/IMG_8182.jpg" - }, - { - name: "David Venegas", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/david-venegas-m/", - // teamLead: 'Team Lead:', - team: '', - imageUrl: - "https://media.licdn.com/dms/image/D4E03AQFads4XHD4SUw/profile-displayphoto-shrink_200_200/0/1688920899517?e=1695254400&v=beta&t=uzUkKWBZnDz1f86sIkYN_9VRAXaXWP4gHTyV1miJKNU" - }, - { - name: "Dhruv Parthasarathy", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/parthasarathydhruv/", - // teamLead: 'Team Lead:', - team: '', - imageUrl: - "https://media.licdn.com/dms/image/C5603AQEotDJSBtAHjw/profile-displayphoto-shrink_200_200/0/1599589394348?e=1695254400&v=beta&t=RDeglWmH9uNW72xR1JgZyoaSHAF5OhJ_qsRFGteeZOQ" - }, - { - name: "Hitomi Abiko", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/hitomiabiko/", - // teamLead: 'Team Lead:', - team: '', - imageUrl: - "https://media.licdn.com/dms/image/D4E03AQHQ9HHXm8xKXQ/profile-displayphoto-shrink_200_200/0/1687606492253?e=1695254400&v=beta&t=RS2kaDkP2IU2gHdZfKLHhWlqrhj7RhMbc9DKBf3AK-M" - }, - { - name: "Jarrod Kohl", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/jarrodkohl/", - // teamLead: 'Team Lead:', - team: 'Features', - imageUrl: - "https://media.licdn.com/dms/image/D4E03AQHQ8rT5p0b8hQ/profile-displayphoto-shrink_200_200/0/1687527128902?e=1695254400&v=beta&t=2m2jtGGibeFC64K2HGRLp98QZYm8q7iWrooMPZSz69U" - }, - { - name: "Jingying Huang", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/jingyinghuang/", - // teamLead: 'Team Lead:', - team: 'Social Media', - imageUrl: - "https://media.licdn.com/dms/image/C4E03AQFuDEdSgOJPBw/profile-displayphoto-shrink_200_200/0/1571248783675?e=1695254400&v=beta&t=n2dFY1bI2U2iGFcItLaB3C8-4YcaCNQJ9X1ttYNoHJA" - }, - { - name: "Nicole Lyu", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/nicole-lyu/", - // teamLead: 'Team Lead:', - team: 'Social Media', - imageUrl: - "https://media.licdn.com/dms/image/D5603AQHCSgPsJzXklg/profile-displayphoto-shrink_200_200/0/1691679645025?e=1698278400&v=beta&t=3h8qyd9yj2wpiCtnIlAwKUPoGsRUgVrD28FzQI2BzfA" - }, - { - name: "Sergio Terrero", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/sergio-terrero-34045a11b/", - // teamLead: 'Team Lead:', - team: '', - imageUrl: - "https://media.licdn.com/dms/image/D4E03AQH2PwcKtDoGAg/profile-displayphoto-shrink_200_200/0/1670726619198?e=1695254400&v=beta&t=pbrUCiZcFNtqf6pavxPvcCiYmAezxWbYABuOCnTrymQ" - }, - { - name: "Shirly Spikes", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/shirly-spikes-725a413b/", - // teamLead: 'Team Lead:', - team: 'Features', - imageUrl: - "https://media.licdn.com/dms/image/C4D03AQF3qK7KUlfxHQ/profile-displayphoto-shrink_200_200/0/1609945840249?e=1695254400&v=beta&t=0WlFasb-0atWKFhlY4_XqyYP2W7CE1zAuE7z0WnK2h0" - }, - { - name: "Sai Dutt", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/dutt-sai/", - // teamLead: 'Team Lead:', - team: '', - imageUrl: - "https://media.discordapp.net/attachments/1130964544706056303/1133814348565975050/PXL_20230101_190254075_2.jpg?width=756&height=920" - }, - { - name: "Sean Daly", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/seancdaly/", - // teamLead: 'Team Lead:', - team: '', - imageUrl: - "https://media.licdn.com/dms/image/D5603AQEo8O0zmNabkA/profile-displayphoto-shrink_200_200/0/1689400196234?e=1695254400&v=beta&t=CIQJ7UX5cwpPA0mMQ7WyzsQ3TMKzbZ00CVNX59I--Z8" - }, - { - name: "Claudio Olmedo", - role: "Volunteer", - linkedinUrl: "https://www.linkedin.com/in/claudioolmedo-com/", - // teamLead: 'Team Lead:', - team: '', - imageUrl: - "https://media.licdn.com/dms/image/D4E03AQE6q5fDJj5zcA/profile-displayphoto-shrink_200_200/0/1685118707659?e=1695254400&v=beta&t=MTVN3lH51OFLr27bpGGep401OW3RffbA8vNeANqZGZY" - }, - +//import the function that fetches data from Notion +import fetchDataFromNotion from "@/app/service/notion/NotionService" -]; -export default function Organizers() { - const organizers = team.filter(person => person.role === 'Co-Organizer'); - const volunteers = team.filter(person => person.role !== 'Co-Organizer'); +export default async function Organizers() { + const teamMembers = await fetchDataFromNotion() return ( - -

Meet Our Organizers!

- - - -

Meet Our Volunteers!

+