Skip to content

Commit

Permalink
Merge pull request #149 from jerboa88/143-add-education-roles
Browse files Browse the repository at this point in the history
143 add education roles
  • Loading branch information
jerboa88 authored Jun 28, 2024
2 parents 4beccc8 + 5f49647 commit 7912fb0
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/common/config-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ import { colorMappingsConfig } from '../config/color-mappings';
import { externalServicesConfig } from '../config/external-services';
import { pagesMetadataConfig } from '../config/metadata/pages';
import { siteMetadataConfig } from '../config/metadata/site';
import { employmentRolesConfig } from '../config/roles/employment-roles';
import { volunteeringRolesConfig } from '../config/roles/volunteering-roles';
import { educationRolesConfig } from '../config/roles/education';
import { employmentRolesConfig } from '../config/roles/employment';
import { volunteeringRolesConfig } from '../config/roles/volunteering';
import { socialImagesGenerationConfig } from '../config/social-images-generation';
import { themesConfig } from '../config/themes';
import { getOrDefault } from './utilities';
Expand Down Expand Up @@ -154,6 +155,17 @@ export function getEmploymentRoles(): EmploymentRole[] {
.sort((a, b) => b.endDate.getTime() - a.endDate.getTime());
}

// Returns a list of education roles with formatted date objects
export function getEducationRoles(): Role[] {
return educationRolesConfig
.map((role) => ({
...role,
startDate: new Date(role.startDate),
endDate: new Date(role.endDate),
}))
.sort((a, b) => b.endDate.getTime() - a.endDate.getTime());
}

// Returns a list of volunteering roles with formatted date objects
export function getVolunteeringRoles(): Role[] {
return volunteeringRolesConfig
Expand Down
27 changes: 27 additions & 0 deletions src/config/roles/education.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
Education history
-----------------
*/

import type { RoleConfig } from '../../common/types';

export const educationRolesConfig: RoleConfig[] = [
{
title: 'BSc Specialization in Computing Science',
company: 'University of Alberta',
location: 'Edmonton, AB',
startDate: '2017-09-13',
endDate: '2023-11-21',
bullets: [
'Completed my BSc Specialization in Software Practice with Distinction.',
],
},
{
title: 'High School Diploma',
company: 'Eckville Junior/Senior High School',
location: 'Edmonton, AB',
startDate: '2010-09-01',
endDate: '2016-06-01',
bullets: ['Graduated with an overall average of 85%.'],
},
];
File renamed without changes.
File renamed without changes.

0 comments on commit 7912fb0

Please sign in to comment.