Skip to content

Commit

Permalink
Update RSVP form
Browse files Browse the repository at this point in the history
  • Loading branch information
VictiniX888 committed Oct 24, 2024
1 parent ea60540 commit 1a8e63a
Show file tree
Hide file tree
Showing 7 changed files with 504 additions and 136 deletions.
115 changes: 80 additions & 35 deletions apps/dashboard/components/hacker-portal/confirmed-placeholder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,40 +6,36 @@ import { useEffect, useState } from 'react';
import styled from 'styled-components';
import { getEnv } from '@hibiscus/env';
import { Button } from '@hibiscus/ui-kit-2023';
import HackSCGuy from '../svg/hacksc-guy';

export const ConfirmedPlaceholder = () => {
const [discordToken, setDiscordToken] = useState<string | null>(null);
// const [discordToken, setDiscordToken] = useState<string | null>(null);
const { user } = useHibiscusUser();

const discordInvite = getEnv().Hibiscus.Discord.InviteUrl;

useEffect(() => {
const fetchData = async () => {
if (user != null) {
try {
const token = await axios.get(`/api/discord/${user.id}`);
setDiscordToken(token.data.token);
} catch {
setDiscordToken('ERROR');
}
}
};
// useEffect(() => {
// const fetchData = async () => {
// if (user != null) {
// try {
// const token = await axios.get(`/api/discord/${user.id}`);
// setDiscordToken(token.data.token);
// } catch {
// setDiscordToken('ERROR');
// }
// }
// };

fetchData();
}, [user]);
// fetchData();
// }, [user]);

return (
<Container>
<Image
alt="Airplane postcard illustration"
src="/hackform-illustrations/postcard-plane.svg"
width={200}
height={200}
/>
<H1>You have confirmed your spot for HackSC X!</H1>
<H3>We look forward to seeing you 🌺</H3>
<HackSCGuy />
<Heading>You have confirmed your spot for SoCal Tech Week!</Heading>
<TextBody>We look forward to seeing you 🌺</TextBody>
<br />
<H3>
{/* <TextBody>
If you haven&apos;t already, please complete and sign the{' '}
<a
href={getEnv().Hibiscus.RSVPForm.WaiverURL}
Expand All @@ -53,11 +49,11 @@ export const ConfirmedPlaceholder = () => {
HackSC waiver
</a>{' '}
as soon as possible!
</H3>
<br />
<H3>
If you haven&apos;t already, join our official HackSC X Discord server
at{' '}
</TextBody>
<br /> */}
<TextBody>
If you haven&apos;t already, join our official SoCal Tech Week Discord
server at{' '}
<a
href={`https://discord.gg/${discordInvite}`}
target="_blank"
Expand All @@ -69,23 +65,22 @@ export const ConfirmedPlaceholder = () => {
>
discord.gg/{discordInvite}
</a>{' '}
and verify your account by following the provided instructions!
</H3>
<H3>
</TextBody>
{/* <H3>
Your Discord verification token is{' '}
{discordToken ? discordToken : '...Loading...'}
</H3>
</H3> */}
<br />

<H3>Review the Hacker Welcome Packet below!</H3>
<TextBody>Review the Hacker Welcome Packet below!</TextBody>
<a
href={getEnv().Hibiscus.RSVPForm.HackerPacketURL}
target="_blank"
rel="noreferrer"
>
<Button color="black" style={{ marginTop: '10px' }}>
<RedButton color="black" style={{ marginTop: '10px' }}>
Hacker Welcome Packet
</Button>
</RedButton>
</a>
</Container>
);
Expand All @@ -94,3 +89,53 @@ export const ConfirmedPlaceholder = () => {
export default ConfirmedPlaceholder;

const Container = styled.div``;

const Heading = styled.h1`
font-family: Inter;
font-size: 40px;
font-weight: 500;
letter-spacing: -0.05em;
text-align: left;
color: #ff6347;
margin: 0 0 1rem 0;
`;

const TextBody = styled.p`
font-family: Inter;
font-size: 25px;
font-weight: 400;
line-height: 30.26px;
color: #ffb1a3;
`;

const RedButton = styled.button`
padding: 12px 40px 12px 40px;
border-radius: 8px;
border: 1px solid black;
width: fit-content;
height: 45px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
gap: 10px;
background: #ffb1a3;
//fonts
font-family: Inter;
font-style: normal;
font-weight: 500;
font-size: 13px;
line-height: 36px;
text-align: center;
color: black;
:hover {
background: #ffded9;
box-shadow: 0px 0px 5px rgba(239, 118, 118, 0.5);
cursor: pointer;
transition: 0.1s;
}
:active {
background: #ffb1a3;
}
`;
62 changes: 39 additions & 23 deletions apps/dashboard/components/hacker-portal/congrats-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,37 @@ import Image from 'next/image';
import { H3, Text, Link } from '@hibiscus/ui';
import { GlowSpan } from '@hibiscus/ui-kit-2023';
import { Colors2023 } from '@hibiscus/styles';
import HackSCGuy from '../svg/hacksc-guy';
import styled from 'styled-components';
import { Colors } from '@hacksc/sctw-ui-kit';

export const CongratsMessage = () => {
return (
<div style={{ display: 'flex', flexDirection: 'column', gap: '10px' }}>
<Image
src="/hackform-illustrations/heart.svg"
width={100}
height={100}
priority
alt="Heart character"
/>
<H3>Congratulations on being accepted to HackSC X!</H3>
<Text>
<div
style={{
display: 'flex',
flexDirection: 'column',
gap: '10px',
textAlign: 'left',
}}
>
<HackSCGuy />
<Heading3>Congratulations on being accepted to SoCal Tech Week!</Heading3>
<TextBody>
We are so excited to welcome you to our event this year, and hope that
you will be able to attend. It’s going to be an amazing weekend with
plenty of workshops, speakers, games, and of course, project building!
</Text>
<Text>
</TextBody>
<TextBody>
Please complete this RSVP form{' '}
<GlowSpan style={{ fontWeight: 'bold' }}>
<span style={{ fontWeight: 'bold' }}>
within 4 days of your acceptance notification
</GlowSpan>{' '}
to secure your spot at HackSC X. By submitting, you are committing to
attending the event. If you do not submit this form by the posted
deadline, your spot will be given to another hacker.
</Text>
<Text>
</span>{' '}
to secure your spot at SoCal Tech Week. By submitting, you are
committing to attending the event. If you do not submit this form by the
posted deadline, your spot will be given to another hacker.
</TextBody>
<TextBody>
We kindly remind you that no-shows after RSVPing mean that you are
taking someone else’s opportunity to attend this event. If you are no
longer able to attend the event after RSVPing, please email{' '}
Expand All @@ -37,18 +41,30 @@ export const CongratsMessage = () => {
passHref
underline
anchortagpropsoverride={{
style: { color: Colors2023.BLUE.STANDARD },
style: { color: '#ff6347' },
}}
>
[email protected]
</Link>{' '}
at least 12 hours prior to the start of the event.
</Text>
<Text>
</TextBody>
<TextBody>
HackSC is committed to providing participants with the best experience
possible. If there’s anything we can do to improve your time at our
event, please let us know!
</Text>
</TextBody>
</div>
);
};

const Heading3 = styled(H3)`
color: #ff6347;
`;

const TextBody = styled.p`
font-family: Inter;
font-size: 25px;
font-weight: 400;
line-height: 30.26px;
color: #ffb1a3;
`;
34 changes: 24 additions & 10 deletions apps/dashboard/components/hacker-portal/declined-placeholder.tsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,45 @@
import { H1, H3, Link } from '@hibiscus/ui';
import Image from 'next/image';
import styled from 'styled-components';
import HackSCGuy from '../svg/hacksc-guy';

export const DeclinedPlaceholder = () => {
return (
<Container>
<Image
alt="Airplane postcard illustration"
src="/hackform-illustrations/postcard-plane.svg"
width={200}
height={200}
/>
<H1>You have declined your spot for HackSC X</H1>
<H3>
<HackSCGuy />
<Heading>You have declined your spot for SoCal Tech Week</Heading>
<TextBody>
Bummer 😞 Welp, there{"'"}s always another chance to build something
cool 😄 Make sure to stay up to date with HackSC through our{' '}
<Link href="https://instagram.com/hackscofficial/" passHref underline>
social media
</Link>{' '}
for other upcoming events!
</H3>
</TextBody>
<br />
<H3>We look forward to seeing you again 🌺</H3>
<TextBody>We look forward to seeing you again 🌺</TextBody>
</Container>
);
};

export default DeclinedPlaceholder;

const Container = styled.div``;

const Heading = styled.h1`
font-family: Inter;
font-size: 40px;
font-weight: 500;
letter-spacing: -0.05em;
text-align: left;
color: #ff6347;
margin: 0 0 1rem 0;
`;

const TextBody = styled.p`
font-family: Inter;
font-size: 25px;
font-weight: 400;
line-height: 30.26px;
color: #ffb1a3;
`;
Loading

0 comments on commit 1a8e63a

Please sign in to comment.