diff --git a/.env.cloudflare b/.env.cloudflare index 0bc0056..280d3a3 100644 --- a/.env.cloudflare +++ b/.env.cloudflare @@ -1,4 +1,4 @@ VITE_DEPLOY_COMMIT_SHA=$CF_PAGES_COMMIT_SHA VITE_DEPLOY_COMMIT_BRANCH=$CF_PAGES_BRANCH -VITE_APP_VERSION="2.4.0" +VITE_APP_VERSION="2.4.1" diff --git a/content/timeline/bachelors_degree.md b/content/timeline/bachelors_degree.md index 42fcbb9..1315116 100644 --- a/content/timeline/bachelors_degree.md +++ b/content/timeline/bachelors_degree.md @@ -2,7 +2,7 @@ title: 'Bachelor of Software Engineering' company: 'Auburn University' group: 'Education' -dates: '08/01/2018 - 12/31/2022' +dates: 'Aug 2018 - Dec 2022' order: 0 url: 'https://auburn.edu' --- diff --git a/content/timeline/cws.md b/content/timeline/cws.md index 868bdf8..f3b4581 100644 --- a/content/timeline/cws.md +++ b/content/timeline/cws.md @@ -2,7 +2,7 @@ title: 'Associate Systems Engineer' company: 'Campus Web Solutions' group: 'Work' -dates: '01/01/2023 - Present' +dates: 'Jan 2023 - Present' order: 2 url: 'https://cws.auburn.edu/cws' --- diff --git a/content/timeline/cws_coop.md b/content/timeline/cws_coop.md index bee999d..b309556 100644 --- a/content/timeline/cws_coop.md +++ b/content/timeline/cws_coop.md @@ -2,7 +2,7 @@ title: 'Co-op Web Developer' company: 'Campus Web Solutions' group: 'Work' -dates: '01/01/2021 - 05/31/2021, 08/01/2021 - 12/31/2021, 05/01/2022 - 08/31/2022' +dates: 'Jan 2021 - May 2021, Aug 2021 - Dec 2021, May 2022 - Aug 2022' order: 1 url: 'https://cws.auburn.edu/cws' --- diff --git a/content/timeline/masters_degree.md b/content/timeline/masters_degree.md index b9f9326..43087be 100644 --- a/content/timeline/masters_degree.md +++ b/content/timeline/masters_degree.md @@ -2,7 +2,7 @@ title: 'Masters of Science in Computer Science and Software Engineering' company: 'Auburn University' group: 'Education' -dates: '01/01/2024 - Present' +dates: 'Jan 2024 - Present' order: 3 url: 'https://auburn.edu' --- diff --git a/package.json b/package.json index 376e085..f0d7e70 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cadamsmith-web", "private": true, - "version": "2.4.0", + "version": "2.4.1", "type": "module", "scripts": { "dev": "vite dev", diff --git a/src/lib/components/Timeline.svelte b/src/lib/components/Timeline.svelte index c6ed40e..b039703 100644 --- a/src/lib/components/Timeline.svelte +++ b/src/lib/components/Timeline.svelte @@ -5,36 +5,6 @@ let currentGroup = $state('Work'); - // format date range to be in the format of "Jan 2024 - Mar 2025" - function formatDateRange(start: string, end: string) { - const currentDate = new Date(); - const startDate = new Date(start); - const endDate = new Date(end); - - // Set all times to midnight for accurate day comparison - currentDate.setUTCHours(0, 0, 0, 0); - - // Check if endDate is today or in the future - if (endDate >= currentDate) { - return `${formatDate(startDate)} - Present`; - } - return `${formatDate(startDate)} - ${formatDate(endDate)}`; - } - - function formatDate(date: Date) { - return date.toLocaleDateString('en-US', { - month: 'short', - year: 'numeric', - timeZone: 'UTC' - }); - } - - function formatTimelineRange(dateRanges: [string, string][]) { - return dateRanges - .map((dateRange) => formatDateRange(dateRange[0], dateRange[1])) - .join(', '); - } - function handleGroupChange(group: string) { currentGroup = group; } @@ -64,7 +34,7 @@
{formatTimelineRange(timelineItem.dates)}
+{timelineItem.dates}
{timelineItem.title}