From c081a3013be5fde60d14a9663d68d97813540858 Mon Sep 17 00:00:00 2001 From: Jasper Mayone Date: Fri, 14 Jun 2024 15:20:16 +0000 Subject: [PATCH] enable temporary waitlist --- components/arcade/join.js | 8 ++++---- pages/api/arcade/slack.js | 32 +++++++++++++++++--------------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/components/arcade/join.js b/components/arcade/join.js index 79ca597d..72bb7bfd 100644 --- a/components/arcade/join.js +++ b/components/arcade/join.js @@ -1,6 +1,6 @@ -import React, { useState, useRef, useEffect } from 'react' -import { Box, Button, Text, Flex, Grid, Card, Label, Checkbox } from 'theme-ui' import JSConfetti from 'js-confetti' +import React, { useEffect, useRef, useState } from 'react' +import { Box, Flex, Text } from 'theme-ui' /** @jsxImportSource theme-ui */ const Join = ({ fold, last, showForm, setForm, formSent, setFormSent }) => { @@ -78,7 +78,7 @@ const Join = ({ fold, last, showForm, setForm, formSent, setFormSent }) => { textAlign: 'center' }} > - Email from Slack
arriving in your inbox! + Email from The Arcade
arriving in your inbox soon! ) : ( { position: 'absolute', width: '150%', top: '-30px', - color: last ? '#FAEFD6':'#FF5C00' + color: last ? '#FAEFD6' : '#FF5C00' }} className="gaegu" > diff --git a/pages/api/arcade/slack.js b/pages/api/arcade/slack.js index d5ddeb4f..33e26798 100644 --- a/pages/api/arcade/slack.js +++ b/pages/api/arcade/slack.js @@ -1,24 +1,26 @@ import AirtablePlus from 'airtable-plus' -async function inviteToArcadius({ email }) { - const response = await fetch('https://arcadius.hackclub.com/slack-invite', { - body: JSON.stringify({ - email - }), - method: 'POST', - headers: { - 'Content-Type': 'application/json', - Authorization: `Bearer ${process.env.SLACK_KEY}` - } - }) +// async function inviteToArcadius({ email }) { +// const response = await fetch('https://arcadius.hackclub.com/slack-invite', { +// body: JSON.stringify({ +// email +// }), +// method: 'POST', +// headers: { +// 'Content-Type': 'application/json', +// Authorization: `Bearer ${process.env.SLACK_KEY}` +// } +// }) - return response -} +// return response +// } async function inviteToAirtable({ email, ip }) { const airtable = new AirtablePlus({ - baseID: 'appaqcJtn33vb59Au', + baseID: 'apponYMK8arNnHTk5' ,// waitlist + // baseID: 'appaqcJtn33vb59Au', // prod apiKey: process.env.AIRTABLE_API_KEY, - tableName: 'Arcade Joins' + // tableName: 'Arcade Joins' // prod + tableName: 'Main' // waitlist }) return await airtable.create({ Email: email, IP: ip }) }