diff --git a/apps/web/src/components/Handle/Handle.tsx b/apps/web/src/components/Handle/Handle.tsx index 57e5d3b5..9b345817 100644 --- a/apps/web/src/components/Handle/Handle.tsx +++ b/apps/web/src/components/Handle/Handle.tsx @@ -14,7 +14,7 @@ import { import Stats from "../Stats"; import NowPlaying from "./NowPlaying"; import { followsAtom } from "../../atoms/follows"; -import { IconCheck, IconPlus } from "@tabler/icons-react"; +import { IconCheck, IconPlus, IconUser } from "@tabler/icons-react"; import { Button } from "baseui/button"; import SignInModal from "../SignInModal"; import { @@ -176,11 +176,18 @@ function Handle(props: HandleProps) {
- + {!profiles[did]?.avatar.endsWith("/@jpeg") && ( + + )} + {profiles[did]?.avatar.endsWith("/@jpeg") && ( +
+ +
+ )}
diff --git a/apps/web/src/index.css b/apps/web/src/index.css index 97a5328e..ba5265fc 100644 --- a/apps/web/src/index.css +++ b/apps/web/src/index.css @@ -92,6 +92,7 @@ body { --color-skeleton-background: #f3f3f3; --color-skeleton-foreground: #ecebeb; --color-genre: #3f03fb; + --color-avatar-background: #8d2dffed; } .dark { @@ -115,6 +116,7 @@ body { --color-skeleton-background: #221538; --color-skeleton-foreground: #2b1a4c; --color-genre: #00f1f3; + --color-avatar-background: #8d2dffed; } ::placeholder { diff --git a/apps/web/src/layouts/Navbar/Navbar.tsx b/apps/web/src/layouts/Navbar/Navbar.tsx index b7409450..1f5c16db 100644 --- a/apps/web/src/layouts/Navbar/Navbar.tsx +++ b/apps/web/src/layouts/Navbar/Navbar.tsx @@ -21,6 +21,7 @@ import { API_URL } from "../../consts"; import { useProfileStatsByDidQuery } from "../../hooks/useProfile"; import LogoDark from "../../assets/rocksky-logo-dark.png"; import LogoLight from "../../assets/rocksky-logo-light.png"; +import { IconUser } from "@tabler/icons-react"; const Container = styled.div` position: fixed; @@ -174,11 +175,18 @@ function Navbar() {
- + {!profile?.avatar?.endsWith("/@jpeg") && ( + + )} + {profile?.avatar?.endsWith("/@jpeg") && ( +
+ +
+ )}
@@ -339,11 +347,18 @@ function Navbar() { )} > )} diff --git a/apps/web/src/layouts/Search/Search.tsx b/apps/web/src/layouts/Search/Search.tsx index 47ffe6af..95fae84b 100644 --- a/apps/web/src/layouts/Search/Search.tsx +++ b/apps/web/src/layouts/Search/Search.tsx @@ -13,6 +13,7 @@ import Artist from "../../components/Icons/Artist"; import Disc from "../../components/Icons/Disc"; import Track from "../../components/Icons/Track"; import { useSearchMutation } from "../../hooks/useSearch"; +import { IconUser } from "@tabler/icons-react"; const Link = styled(DefaultLink)` color: initial; @@ -84,12 +85,19 @@ function Search() { {item._federation.indexUid === "users" && (
- {item.displayName} + {!item.avatar?.endsWith("/@jpeg") && ( + {item.displayName} + )} + {item.avatar?.endsWith("/@jpeg") && ( +
+ +
+ )}
diff --git a/apps/web/src/pages/home/feed/Feed.tsx b/apps/web/src/pages/home/feed/Feed.tsx index 1ee9e6d0..1ff01c6a 100644 --- a/apps/web/src/pages/home/feed/Feed.tsx +++ b/apps/web/src/pages/home/feed/Feed.tsx @@ -22,6 +22,7 @@ import { import FeedGenerators from "./FeedGenerators"; import { consola } from "consola"; import { Link } from "@tanstack/react-router"; +import { IconUser } from "@tabler/icons-react"; dayjs.extend(relativeTime); @@ -219,11 +220,18 @@ function Feed() {
- + {!song.userAvatar.endsWith("/@jpeg") && ( + + )} + {song.userAvatar.endsWith("/@jpeg") && ( +
+ +
+ )}
- + {!item.avatar?.endsWith("/@jpeg") && ( + + )} + {item.avatar?.endsWith("/@jpeg") && ( +
+ +
+ )}
- + {!currentlyPlaying?.avatar?.endsWith("/@jpeg") && ( + + )} + {currentlyPlaying?.avatar?.endsWith("/@jpeg") && ( +
+ +
+ )}
diff --git a/apps/web/src/pages/profile/Profile.tsx b/apps/web/src/pages/profile/Profile.tsx index e36ee90c..e2dc2dcc 100644 --- a/apps/web/src/pages/profile/Profile.tsx +++ b/apps/web/src/pages/profile/Profile.tsx @@ -18,7 +18,7 @@ import LovedTracks from "./lovedtracks"; import Overview from "./overview"; import Playlists from "./playlists"; import { Button } from "baseui/button"; -import { IconPlus, IconCheck } from "@tabler/icons-react"; +import { IconPlus, IconCheck, IconUser } from "@tabler/icons-react"; import { followsAtom } from "../../atoms/follows"; import SignInModal from "../../components/SignInModal"; import { @@ -231,11 +231,18 @@ function Profile(props: ProfileProps) {
- + {!profiles[did]?.avatar?.endsWith("/@jpeg") && ( + + )} + {profiles[did]?.avatar?.endsWith("/@jpeg") && ( +
+ +
+ )}