Hi, I'm Dustin!
-
+
I'm a senior full stack software engineer from Michigan, currently
working on some cool stuff at Zenimax Online Studios!
diff --git a/src/components/yooperButton.tsx b/src/components/yooperButton.tsx
deleted file mode 100644
index 7a274da..0000000
--- a/src/components/yooperButton.tsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import { useState } from "react"
-
-export function YooperButton() {
-
- const [isPlaying, setIsPlaying] = useState(false);
-
-
- return (
-
-
-
-
- )
-}
diff --git a/src/hooks/use-lastfm.ts b/src/hooks/use-lastfm.ts
new file mode 100644
index 0000000..48a0dd8
--- /dev/null
+++ b/src/hooks/use-lastfm.ts
@@ -0,0 +1,26 @@
+import type { TrackResponse } from "@/types/lastfm";
+import { useEffect, useState } from "react";
+
+export function useLastFm() {
+ const [track, setTrack] = useState
();
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState(null);
+
+ useEffect(() => {
+ fetch('/api/lastfm/recentTracks')
+ .then(res => res.json())
+ .then(data => {
+ setTrack(data);
+ setLoading(false);
+ })
+ .catch(err => {
+ setError(err.message);
+ setLoading(false);
+ })
+ }, [])
+
+
+ return {
+ track, loading, error
+ }
+}
diff --git a/src/pages/work.astro b/src/pages/work.astro
index 2475960..8a76de0 100644
--- a/src/pages/work.astro
+++ b/src/pages/work.astro
@@ -49,7 +49,7 @@ const jobs = [
{job.title}
{job.company}
-
+
{job.startYear} - {job.endYear}