Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Phone Input Filter #95

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6f12848
task: Added vaccination check to form
fpunny Nov 24, 2021
666dde4
task: Fixed sponsor image resizing, added description to inputs
fpunny Dec 10, 2021
d3cde98
Close Apps
fpunny Jan 7, 2022
44de21d
Update index.jsx
fpunny Feb 15, 2022
e555b0c
toggle sponsors (#55)
amanda849 Apr 20, 2022
1d7be94
fix: Disable airtable until data exist
fpunny Jun 9, 2022
656ac10
Merge branch 'master' of https://github.com/hackthevalley/hack-the-fr…
amanda849 Jun 17, 2022
77fff4f
changed date to oct. 14-16, 2022 (#56)
BenjaminSao Jun 17, 2022
f16cf13
Change FAQ ('What will I need to bring?' & 'Where is it?') (#58)
BenjaminSao Jun 17, 2022
752d899
changed footer's twitter link and header (#57)
BenjaminSao Jun 17, 2022
cecc36c
toggle MLH flag
amanda849 Jul 23, 2022
b1719f5
Sticky Header (#61)
Nish7 Jul 23, 2022
5a76127
open registration, added covid section to hacker application (#63)
BenjaminSao Aug 11, 2022
e002dbf
change apply to register (#64)
BenjaminSao Aug 12, 2022
6738917
updated packages
fpunny Aug 31, 2022
3363523
Merge branch 'master' of https://github.com/hackthevalley/hack-the-fr…
BenjaminSao Aug 31, 2022
dc42ed3
Fix navbar (#69)
BenjaminSao Sep 6, 2022
8aa4690
Merge branch 'master' into develop
fpunny Sep 6, 2022
d81ddcb
Fix school names (#72)
Nish7 Sep 12, 2022
128be9c
Fix explore factions (#73)
Nish7 Sep 13, 2022
aada606
Merge branch 'develop' of https://github.com/hackthevalley/hack-the-f…
BenjaminSao Sep 13, 2022
8887df4
Add sponsorship (#76)
BenjaminSao Sep 21, 2022
904b7a6
fixed dashboard UI on mobile (#75)
BenjaminSao Sep 21, 2022
e91eb06
Merge branch 'develop' of https://github.com/hackthevalley/hack-the-f…
BenjaminSao Sep 21, 2022
ea8382b
remove labels from sponsors (#79)
BenjaminSao Sep 24, 2022
0fc29f8
Merge branch 'develop' of https://github.com/hackthevalley/hack-the-f…
BenjaminSao Sep 25, 2022
54a2954
Merge branch 'master' of https://github.com/hackthevalley/hack-the-fr…
BenjaminSao Sep 25, 2022
4188009
Live-Schedule (#81)
Nish7 Oct 9, 2022
65093a7
closed RVSP (#84)
BenjaminSao Oct 11, 2022
6c130e5
Fix Schedule (#83)
Nish7 Oct 11, 2022
b00df2a
bug event-card (#86)
Nish7 Oct 12, 2022
e0c3247
Merge branch 'master' of https://github.com/hackthevalley/hack-the-fr…
BenjaminSao Oct 12, 2022
d3e6824
removed newlines
BenjaminSao Oct 12, 2022
d1c1ed6
bugfix safari compatibility (#88)
Nish7 Oct 12, 2022
6c9963e
Name, Date, Theme changes (#90)
rkwan05 Jul 1, 2023
c3e4c77
Merge branch 'master' into develop
Cptmoomoo Jul 1, 2023
c49b1b4
open application: rsvp
Cptmoomoo Jul 1, 2023
f950a32
Added Sexuality + Disability + skills questions, updated MLH banner, …
Cptmoomoo Jul 3, 2023
b2c9bcb
Merge branch 'master' into develop
BenjaminSao Jul 3, 2023
574fbb6
validator function
rkwan05 Jul 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = {
open: true,
discord: false,
rsvp: true,
schedule: true,
schedule: false,
sponsors: false,
},
},
Expand Down
6 changes: 3 additions & 3 deletions src/components/Navigation/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ export default function Navigation({ noNav }) {
</Button>
{site.siteMetadata.featureFlags.mlh && (
<a
href='https://mlh.io/na?utm_source=na-hackathon&utm_medium=TrustBadge&utm_campaign=2023-season&utm_content=white'
href='https://mlh.io/na?utm_source=na-hackathon&utm_medium=TrustBadge&utm_campaign=2024-season&utm_content=white'
className={styles.bannerContainer}
rel='noreferrer noopenner'
target='_blank'
{...srProps}
>
<img
src='https://s3.amazonaws.com/logged-assets/trust-badge/2023/mlh-trust-badge-2023-white.svg'
alt='Major League Hacking 2023 Hackathon Season'
src='https://s3.amazonaws.com/logged-assets/trust-badge/2024/mlh-trust-badge-2024-white.svg'
alt='Major League Hacking 2024 Hackathon Season'
className={styles.banner}
/>
</a>
Expand Down
2 changes: 2 additions & 0 deletions src/sections/Application/Demography/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export default function Demography() {
<FormField index='10' />
</div>
<FormField index='11' />
<FormField index='19' />
<FormField index='20' />
</div>
</fieldset>
);
Expand Down
1 change: 0 additions & 1 deletion src/sections/Application/Form/FormContext.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ export function FormProvider({ children }) {
mlh_share: false,
mlh_email: false,
htv_consent: false,
htv_vaccination: false,
},
});

Expand Down
9 changes: 7 additions & 2 deletions src/sections/Application/Personal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import './Personal.module.scss';
export default function Personal({ userInfo }) {
const { formInfo, setFormState } = useForm();

const validator = (value) => {
return /[0-9]{3}[- ]?[0-9]{3}[- ]?[0-9]{4}/.test(value)
}

useEffect(() => {
const [fn, sn, email] = formInfo.questions.slice(0, 3);
setFormState(_ => ({
Expand All @@ -19,7 +23,7 @@ export default function Personal({ userInfo }) {
[email.id]: userInfo.email,
},
}));
}, [ formInfo.questions, userInfo, setFormState ]);
}, [formInfo.questions, userInfo, setFormState]);

return (
<fieldset className={fieldset}>
Expand All @@ -44,12 +48,13 @@ export default function Personal({ userInfo }) {
<FormField
index='2'
fieldProps={{
description: 'For any institutional email, do check your spam for the confirmation',
description: 'For institutional emails, please check your spam for the confirmation email',
disabled: true,
readOnly: true,
}}
/>
<FormField
validator={validator}
fieldProps={{
placeholder: 'e.g. +1-4162878872',
}}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.upload {
padding-top: 2rem;
}

.upload__layout {
& label {
font-size: 0.9rem;
right: 0;
left: 0;
top: 0;
}
}
33 changes: 33 additions & 0 deletions src/sections/Application/SkillConfidence/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import Text from '@htv/ui-kit/components/Text';

import { fieldset, legend, layout, two_col } from '../Application.module.scss';
import { FormField } from '../Form/FormContext';

export default function SkillConfidence() {
return (
<fieldset className={fieldset}>
<Text className={legend} type='body1' font='secondary' as='legend' >
Rate Your Confidence in the Following
</Text>

<div className={layout}>
<div className={two_col}>
<FormField index='25' />
<FormField index='26' />
</div>
<div className={two_col}>
<FormField index='27' />
<FormField index='28' />
</div>
<div className={two_col}>
<FormField index='21' />
<FormField index='22' />
</div>
<div className={two_col}>
<FormField index='23' />
<FormField index='24' />
</div>
</div>
</fieldset>
);
}
4 changes: 2 additions & 2 deletions src/sections/Application/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Mlh from './Mlh';
import Personal from './Personal';
import School from './School';
import General from './General';
import Covid from './Covid';
import SkillConfidence from './SkillConfidence';
import { useGet } from 'restful-react';

export default function ApplicationForm() {
Expand All @@ -23,8 +23,8 @@ export default function ApplicationForm() {
<School />
<Demography />
<Experience />
<SkillConfidence />
<General />
<Covid />
<Mlh />
<Consent />
</Form>
Expand Down