Skip to content
Merged
6 changes: 2 additions & 4 deletions src/data/ApplyData/allApps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ import Engagement from './engagement';
import Hardware from './hardware';
import Operations from './operations';
import Software from './software';
import type { Position } from './types';
import type { ApplicationGroup, Position } from './types';

type Team = 'clients' | 'hardware' | 'software' | 'operations' | 'management' | 'engagement';

type ApplicationsByTeams = Record<Team, Position[]>;
type ApplicationsByTeams = Record<ApplicationGroup, Position[]>;

const applicationsByTeams: ApplicationsByTeams = {
clients: Clients,
Expand Down
6 changes: 5 additions & 1 deletion src/data/ApplyData/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
type Category = 'Clients' | 'Engagement' | 'Hardware' | 'Operations' | 'Software';
import type { Team } from '../teams';

export type ApplicationGroup = Team | 'clients';

type Category = Capitalize<ApplicationGroup>;

export type Position = {
positionTitle: string;
Expand Down
11 changes: 10 additions & 1 deletion src/data/teamPageDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ import OperationsLargePicture from '../assets/images/TeamsPageImages/TeamsPagePH
import SoftwareLargePicture from '../assets/images/TeamsPageImages/TeamsPagePH3.png';
import HardwareLargePicture from '../assets/images/TeamsPageImages/TeamsPagePH4.png';
import EngagementLargePicture from '../assets/images/TeamsPageImages/TeamsPagePH5.png';
import type { Team } from './teams';

// yellow - "#FFBF3C"
const TeamPageDetails = [
type TeamPageDetail = {
name: Capitalize<Team>;
color: string;
activeIcon: string;
inactiveIcon: string;
largePic: string;
};

const TeamPageDetails: TeamPageDetail[] = [
{
name: 'Management',
color: '#187DFF',
Expand Down
6 changes: 6 additions & 0 deletions src/data/teams.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// The order of these is how they appear on the management expanded teams page
export const TEAMS = ['management', 'hardware', 'software', 'operations', 'engagement'] as const;

export type Team = (typeof TEAMS)[number];

export const isTeam = (value: string | undefined): value is Team => TEAMS.some(team => team === value);
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import Management2 from '../../../../../assets/images/TeamsPageImages/management
import Operations1 from '../../../../../assets/images/TeamsPageImages/operations1.jpg';
import Operations2 from '../../../../../assets/images/TeamsPageImages/operations2.jpg';
import TeamsStock from '../../../../../assets/images/TeamsPageImages/TeamsStockPhoto.svg';
import type { Team } from '../../../../../data/teams';
import type { ExpandedTeam } from './types';

// What Youll learn could probably be added here?
export const ExpandedTeamsJSON = {
export const ExpandedTeamsJSON: Record<Team, ExpandedTeam> = {
management: {
abbv: 'MNGMNT',
color: '#187DFF',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// The Order of these is how it will appear on the management expanded teams page
export const Teams = ['management', 'hardware', 'software', 'operations', 'engagement'] as const;
import type { Team } from '../../../../../data/teams';
import type { TeamRoles } from './types';

export const RolesJSON = {
export const RolesJSON: Record<Team, TeamRoles> = {
management: {
Director: {
header: 'Executive Director',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import TeamsStock from '../../../../../assets/images/TeamsPageImages/TeamsStockPhoto.svg';
import type { Team } from '../../../../../data/teams';
import type { WhatYouLearnTeam } from './types';

export const WhatYouLearnJSON = {
export const WhatYouLearnJSON: Partial<Record<Team, WhatYouLearnTeam>> = {
software: {
about: [
{
Expand Down
46 changes: 46 additions & 0 deletions src/pages/TeamsPage/ExpandedTeams/CommonTeam/JSONFiles/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
export type TeamSection = {
header: string;
body: string;
image: string;
invert?: boolean;
};

export type FeaturedItem = {
description: string;
image: string;
invert: boolean;
button: string;
};

export type ExpandedTeam = {
abbv: string;
color: string;
about: TeamSection[];
featured?: {
header: string;
items: FeaturedItem[];
};
};

export type MemberRole = {
subheader: string;
desc: string;
};

export type RoleGroup = {
header: string;
lead?: MemberRole;
members: MemberRole[];
};

export type TeamRoles = {
Director: {
header: string;
desc: string;
};
Roles?: RoleGroup[];
};

export type WhatYouLearnTeam = {
about: TeamSection[];
};
163 changes: 0 additions & 163 deletions src/pages/TeamsPage/ExpandedTeams/CommonTeam/OurRoles.jsx

This file was deleted.

Loading
Loading