Compare commits
2 commits
11ab56b9b3
...
bf52c02122
Author | SHA1 | Date | |
---|---|---|---|
bf52c02122 | |||
fca71334e9 |
2 changed files with 4 additions and 32 deletions
|
@ -1,25 +0,0 @@
|
||||||
body {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
min-height: 90vh;
|
|
||||||
background: #0e0e10;
|
|
||||||
color: #fff;
|
|
||||||
font-family: system-ui, sans-serif;
|
|
||||||
}
|
|
||||||
.error-container {
|
|
||||||
text-align: center;
|
|
||||||
padding: 2rem;
|
|
||||||
background: #1a1a1d;
|
|
||||||
border-radius: 12px;
|
|
||||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
|
|
||||||
}
|
|
||||||
.error-title {
|
|
||||||
font-size: 2rem;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
color: #ff4e4e;
|
|
||||||
}
|
|
||||||
.error-message {
|
|
||||||
font-size: 1.2rem;
|
|
||||||
opacity: 0.8;
|
|
||||||
}
|
|
|
@ -258,18 +258,15 @@ function buildActivityHTML(activity) {
|
||||||
const activityTypeMap = {
|
const activityTypeMap = {
|
||||||
0: "Playing",
|
0: "Playing",
|
||||||
1: "Streaming",
|
1: "Streaming",
|
||||||
2: "Listening",
|
2: "Listening to",
|
||||||
3: "Watching",
|
3: "Watching",
|
||||||
4: "Custom Status",
|
4: "Custom Status",
|
||||||
5: "Competing",
|
5: "Competing",
|
||||||
};
|
};
|
||||||
|
|
||||||
const activityType =
|
const activityType = activityTypeMap[activity.type]
|
||||||
activity.name === "Spotify"
|
? `${activityTypeMap[activity.type]}${activity.type === 2 ? ` ${activity.name}` : ""}`
|
||||||
? "Listening to Spotify"
|
: "Playing";
|
||||||
: activity.name === "TIDAL"
|
|
||||||
? "Listening to TIDAL"
|
|
||||||
: activityTypeMap[activity.type] || "Playing";
|
|
||||||
|
|
||||||
const activityTimestamp =
|
const activityTimestamp =
|
||||||
start && progress === null
|
start && progress === null
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue