diff --git a/src/assets/main.css b/src/assets/main.css index d44fb93..f42533a 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -1,9 +1,5 @@ @import "tailwindcss"; -@theme { - --breakpoint-xs: 400px; -} - body { font-family: 'Pathway Gothic One', sans-serif; background-color: black; @@ -18,27 +14,4 @@ body { background-color:gray; border-radius: var(--radius-lg); } -} - -.marquee { - overflow: hidden; - white-space: nowrap; -} - -.marquee-content { - display: inline-block; - animation: scroll 10s linear infinite; -} - -.marquee-content span { - display: inline-block; -} - -@keyframes scroll { - 0% { - transform: translateX(0); - } - 100% { - transform: translateX(-50%); - } } \ No newline at end of file diff --git a/src/components/ErrorState.tsx b/src/components/ErrorState.tsx new file mode 100644 index 0000000..ae0d88b --- /dev/null +++ b/src/components/ErrorState.tsx @@ -0,0 +1,34 @@ +export default function ErrorState({ + type = "error", +}: { + type: "error" | "loading" | "unavailable"; +}) { + if (type === "error") { + return ( +
something went wrong loading this stat
+hang tight..
+no game launched recently
+
-
+
+
{game.currentlyPlaying.game}
- {" "}
- since{" "}
- {new Date(
- game.currentlyPlaying.startedPlayingAt
- ).toLocaleTimeString()}
- {v.game} {dateOrTime(v)}
+ {" "}
+ since{" "}
+ {new Date(
+ game.currentlyPlaying.startedPlayingAt,
+ ).toLocaleTimeString()}
+ {music.artist}
+ {music.title}
+ {music.artist} powered by last.fm failed to get music :( loading artist..
+ // {music.title}
+ // {music.artist} failed to get music :( loading artist..
- qa @{" "}
-
- medal.tv
-
- , game, code
- dexter, tlou, twd Something went wrong loading this stat
- {" "}
- {v?.finished
- ? "finished"
- : v?.paused
- ? "paused"
- : v.startedOn
- ? "started"
- : "not started"}
-
+ {data?.title}
+
+ {" "}
+ {data?.finished
+ ? "finished"
+ : data?.paused
+ ? "paused"
+ : data?.startedOn
+ ? "started"
+ : "not started"}
+
+ i do QA stuff at{" "}
+
+ Medal.tv{" "}
+
+ and write mediocre code sometimes
+
+
+ twt
+
+ •
+
+ instagram
+
+ •
+
+ tiktok
+
+
+ born & raised western new yorker. i've been doing QA work
+ for the past 4 years and learning software engineering in
+ between. i also play acoustic guitar, am really into gaming
+ and love travelling to NYC. i am also incredibly awkward,
+ but that's besides the point
+ previously played
-
-
{music.title}
- )}
-
-
+
uh oh!
- loading music..
-
+ //
uh oh!
+ // loading music..
+ //
+ {clock}
+
+ );
+}
diff --git a/src/components/modules/InfoModule.tsx b/src/components/modules/InfoModule.tsx
deleted file mode 100644
index 84a4b99..0000000
--- a/src/components/modules/InfoModule.tsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import MusicComponent from "../info/MusicComponent";
-
-export default function InfoModule() {
- return (
- alex, 18
-
- what i do
- navigator.clipboard.writeText("alex@vierfrantz.com")}
- >
- alex@vierfrantz.com
-
-
-
-
- obsessed with
- pictures
-
+ );
})}
diff --git a/src/components/modules/StatModule.tsx b/src/components/modules/StatModule.tsx
index 52b93d6..0fd20e0 100644
--- a/src/components/modules/StatModule.tsx
+++ b/src/components/modules/StatModule.tsx
@@ -1,4 +1,5 @@
import { useState, useEffect } from "react";
+import ErrorState from "../ErrorState";
type ContentObject = {
id: number;
@@ -17,19 +18,9 @@ type ContentObject = {
};
export default function StatModule() {
- const [data, setData] = useState
Uh oh :(
- recent watches
-
-
-
{v?.title}
-
+
welcome to my site !
- welcome
+ let it rip
+
+
+
+ hi, i'm alex!
+
+ about me
+ setTab("home")}
+ className={`border-r-1 border-t-1 border-black hover:cursor-pointer ${tab === "home" && "underline"}`}
+ >
+ home
+
+ setTab("fantasy")}
+ className={`border-r-1 border-t-1 border-black hover:cursor-pointer ${tab === "fantasy" && "underline"}`}
+ >
+ fantasy
+
+ setTab("pictures")}
+ className={`border-r-1 border-t-1 border-black hover:cursor-pointer ${tab === "pictures" && "underline"}`}
+ >
+ pictures
+
+ setTab("scores")}
+ className={`border-r-1 border-t-1 border-black hover:cursor-pointer ${tab === "scores" && "underline"}`}
+ >
+ scores
+
+
-
-