Skip to content

Commit

Permalink
update for fall 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbarnum4 committed Jul 23, 2024
1 parent 7a0b2a3 commit 5679795
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
8 changes: 4 additions & 4 deletions pages/programs/highschool/apply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,20 +55,20 @@ const HighschoolSignup: NextPage<HighschoolSignupProps> = ({ courses }) => {
>
<div className='program-header'>
<div className='header-card'>
<h1 className='dynamic-xl secondary'>Summer 2024</h1>
<h1 className='dynamic-xl secondary'>Fall 2024</h1>
<h2 className='dynamic-h2 secondary'>Coding Camp Application</h2>
<p className='dynamic-txt'>
Open to rising sophomores, juniors, seniors, and 2024 grads
<b> (Graduating classes of 2024, 2025, 2026, and 2027)</b>.
<b> (Graduating classes of 2025, 2026, and 2027)</b>.
</p>
{/* Common meeting time */}
{/* <p className='dynamic-txt'>
Classes meet <b className='secondary'> three hours</b> a day,
<b className='secondary'> Monday</b> through <b className='secondary'>Friday</b>.
</p> */}
<p className='dynamic-txt'>
<b className='secondary'> May 30 to June 28, </b>
Monday-Friday, 3 hours daily.
Fall classes start the week of <b className='secondary'>August 19th</b> and end
the week of <b className='secondary'>December 19th</b>.
</p>
</div>
<Link
Expand Down
15 changes: 6 additions & 9 deletions src/Forms/Form.HighschoolApplication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const getSelectedCourseTimes = (selected: string): { options: TOption[]; note: s
interface HighSchoolApplicationProps {
onSubmitComplete?: () => void;
}
const gradYears = [2024, 2025, 2026, 2027];
const gradYears = [2025, 2026, 2027];

type GetInitSteps = <T>(length: number, cb: (index: number) => T) => Record<number, T>;
const getInitSteps: GetInitSteps = (length, cb) => {
Expand Down Expand Up @@ -108,14 +108,11 @@ const HighSchoolApplication = ({ onSubmitComplete }: HighSchoolApplicationProps)
};

const validateSteps = () => {
const stepErrs = Object.keys(stepFields).reduce(
(errs, stepNum) => {
const n = Number(stepNum);
errs[n] = getStepErrors(Number(n));
return errs;
},
{} as Record<number, string[]>,
);
const stepErrs = Object.keys(stepFields).reduce((errs, stepNum) => {
const n = Number(stepNum);
errs[n] = getStepErrors(Number(n));
return errs;
}, {} as Record<number, string[]>);

setStepErrors(stepErrs);
};
Expand Down
28 changes: 14 additions & 14 deletions src/Forms/formData/highSchoolApplicationData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,37 +31,37 @@ export const courseTimes = {
fundamentals: [
{
course: 'fundamentals',
value: 'fundamentals-onsite-m-f-9-12',
value: 'fundamentals-onsite-w-4-8',
location: 'In Person',
preReq: 'No Prerequisite',
time: 'Monday to Friday | 9:00 AM to 12:00 PM',
name: 'In Person: Monday to Friday | 9:00 AM to 12:00 PM',
time: 'Wednesdays | 4:45 PM → 8:00 PM',
name: 'In Person: Wednesdays | 4:45 PM → 8:00 PM',
},
{
course: 'fundamentals',
value: 'fundamentals-virtual-m-f-1-4',
value: 'fundamentals-virtual-tues+thurs-5-7',
location: 'Virtual',
preReq: 'No Prerequisite',
time: 'Monday to Friday | 1:00 PM to 4:00 PM',
name: 'Virtual: Monday to Friday | 1:00 PM to 4:00 PM',
time: 'Tuesdays + Thursdays | 5:00 PM → 7:00 PM',
name: 'Virtual: Tuesdays + Thursdays | 5:00 PM → 7:00 PM',
},
],
advanced: [
{
course: 'advanced',
value: 'advanced-virtual-m-f-9-12',
location: 'Virtual',
value: 'advanced-onsite-thurs-4-8',
location: 'In Person',
preReq: 'Fundamentals of HTML, CSS, and Javascript',
time: 'Monday to Friday | 9:00 AM to 12:00 PM',
name: 'Virtual: Monday to Friday | 9:00 AM to 12:00 PM',
time: 'Thursdays | 4:45 PM → 8:00 PM',
name: 'In Person: Thursdays | 4:45 PM → 8:00 PM',
},
{
course: 'advanced',
value: 'advanced-onsite-m-f-1-4',
location: 'In Person',
value: 'advanced-virtual-tues+thurs-5-7',
location: 'Virtual',
preReq: 'Fundamentals of HTML, CSS, and Javascript',
time: 'Monday to Friday | 1:00 PM to 4:00 PM',
name: 'In Person: Monday to Friday | 1:00 PM to 4:00 PM',
time: 'Tuesdays + Thursdays | 5:00 PM → 7:00 PM',
name: 'Virtual: Tuesdays + Thursdays | 5:00 PM → 7:00 PM',
},
],
};
Expand Down

0 comments on commit 5679795

Please sign in to comment.