mirror of
https://github.com/System-End/site.git
synced 2026-04-19 19:45:07 +00:00
enable temporary waitlist
This commit is contained in:
parent
aa1ccab355
commit
c081a3013b
2 changed files with 21 additions and 19 deletions
|
|
@ -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 <br /> arriving in your inbox!
|
||||
Email from The Arcade <br /> arriving in your inbox soon!
|
||||
</Box>
|
||||
) : (
|
||||
<Flex
|
||||
|
|
@ -138,7 +138,7 @@ const Join = ({ fold, last, showForm, setForm, formSent, setFormSent }) => {
|
|||
position: 'absolute',
|
||||
width: '150%',
|
||||
top: '-30px',
|
||||
color: last ? '#FAEFD6':'#FF5C00'
|
||||
color: last ? '#FAEFD6' : '#FF5C00'
|
||||
}}
|
||||
className="gaegu"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -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 })
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue