Skip to content

Commit 471bf5b

Browse files
committed
Fix build errors
1 parent b911de3 commit 471bf5b

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

src/app/page.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import styles from "./page.module.css";
22
import { TwoCol } from "@/components/layout/TwoCol";
33
import { PostGrid } from "@/components/post/PostGrid";
4-
import { ProjectGrid } from "@/components/project/ProjectGrid";
54
import GithubStats from "@/components/visual/GithubStats";
65
import { Hero } from "@/components/visual/Hero";
76
import { Timeline } from "@/components/visual/Timeline";
@@ -26,8 +25,8 @@ export default function HomePage() {
2625
<TwoCol fit="left">
2726
<Image className={styles.portrait} src="/assets/me.jpg" alt="portrait photo of Avery Keuben" width={200} height={200}/>
2827
<section>
29-
<p>Hi! I'm Avery</p>
30-
<p>I'm a software engineer based out of Calgary, Alberta. I have over <YearsSince date={new Date("2013/09/01 00:00:00")} includeSuffix /> years of hobbiest programming experience,
28+
<p>Hi! I&apos;m Avery</p>
29+
<p>I&apos;m a software engineer based out of Calgary, Alberta. I have over <YearsSince date={new Date("2013/09/01 00:00:00")} includeSuffix /> years of hobbiest programming experience,
3130
and just over <YearsSince date={new Date("2023/05/01 00:00:00")} includeSuffix /> of professional experience. Over my programming career, I have learned a variety of languages,
3231
created many personal projects, and have strived to learn as much as possible.</p>
3332
<p>My current areas of interest are game development (especially engine development), low level programming (including operating systems and firmware), and theoretical computer science. However,

src/components/visual/GithubStats.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function GithubStats() {
6363
}
6464

6565
setTimeout(() => animate(repoCount), 100);
66-
}, [displayedTotalContributions, setDisplayedTotalContributions, displayedYearContributions, setDisplayedYearContributions, displayedRepoCount, setDisplayedRepoCount, contributions])
66+
}, [displayedTotalContributions, setDisplayedTotalContributions, displayedYearContributions, setDisplayedYearContributions, displayedRepoCount, setDisplayedRepoCount, contributionsThisYear, totalContributions])
6767

6868
// Animation
6969
useEffect(() => {
@@ -92,7 +92,7 @@ export default function GithubStats() {
9292
}
9393
setAnimationState(AnimationState.WAITIING);
9494
}
95-
}, [ref, ref.current, repoCount, displayedTotalContributions, setDisplayedTotalContributions, displayedYearContributions, setDisplayedYearContributions, displayedRepoCount, setDisplayedRepoCount, contributions, animationState, setAnimationState]);
95+
}, [ref, repoCount, displayedTotalContributions, setDisplayedTotalContributions, displayedYearContributions, setDisplayedYearContributions, displayedRepoCount, setDisplayedRepoCount, contributionsThisYear, totalContributions, contributions, animationState, setAnimationState]);
9696

9797
return <div className={styles.stats} ref={ref}>
9898
<div>

src/components/visual/Timeline.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ export const Timeline = ({events}: {events: TimelineEvent[]}) => {
3434

3535
Object.values(eventsByYear).forEach(eventList => eventList.sort((a, b) => monthNameToIndex(b.start.month) - monthNameToIndex(a.start.month)));
3636

37-
console.dir(eventsByYear);
38-
3937
return <div className={styles.timeline}>
4038
{Object.keys(eventsByYear).toSorted((a, b) => parseInt(b) - parseInt(a)).map((year) =>
4139
<div key={year}>
@@ -68,7 +66,7 @@ const TimelineEventComponent = ({event}: {event: TimelineEvent}) => {
6866
<i className={styles.time}>{makeReadableDate(event)}</i>
6967
<p>{event.description}</p>
7068
{
71-
event.relatedProjects && <p>Projects: {event.relatedProjects.map(project => <Link href={`/project/${project}`}>{project}</Link>)}</p>
69+
event.relatedProjects && <p>Projects: {event.relatedProjects.map(project => <Link key={project} href={`/project/${project}`}>{project}</Link>)}</p>
7270
}
7371
</div>
7472
}

src/lib/client/projects.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import html from 'remark-html';
33
import matter from "gray-matter";
44

55
export async function getProjectData(id: string) {
6-
console.log(id);
76
const data = await fetch(`/projects/${id}`);
87
const text = await data.text();
98

0 commit comments

Comments
 (0)