@@ -170,39 +144,6 @@
.profile {
padding: $unit-2x 0;
}
- .header {
- display: flex;
- align-items: center;
- gap: $unit-2x;
- margin-bottom: $unit-2x;
- }
- .avatar {
- width: 64px;
- height: 64px;
- border-radius: 50%;
- background: $grey-80;
- border: 1px solid $grey-75;
- object-fit: cover;
- }
- .sub {
- color: $grey-55;
- margin: 0;
- }
- .tabs {
- display: flex;
- gap: $unit-2x;
- margin-top: $unit-half;
- }
- .tabs a {
- text-decoration: none;
- color: inherit;
- padding-bottom: 2px;
- border-bottom: 2px solid transparent;
- }
- .tabs a.active {
- border-color: #3366ff;
- color: #3366ff;
- }
.empty,
.end,
diff --git a/src/routes/(app)/[username]/collection/+layout.svelte b/src/routes/(app)/[username]/collection/+layout.svelte
index 7f8fda54..4bd997f9 100644
--- a/src/routes/(app)/[username]/collection/+layout.svelte
+++ b/src/routes/(app)/[username]/collection/+layout.svelte
@@ -2,18 +2,14 @@
import type { LayoutData } from './$types'
import { page } from '$app/stores'
import { goto } from '$app/navigation'
- import { getAvatarSrc, getAvatarSrcSet } from '$lib/utils/avatar'
+ import ProfileHeader from '$lib/components/profile/ProfileHeader.svelte'
import SegmentedControl from '$lib/components/ui/segmented-control/SegmentedControl.svelte'
import Segment from '$lib/components/ui/segmented-control/Segment.svelte'
let { data, children }: { data: LayoutData; children: any } = $props()
- const avatarFile = $derived(data.user?.avatar?.picture || '')
- const avatarSrc = $derived(getAvatarSrc(avatarFile))
- const avatarSrcSet = $derived(getAvatarSrcSet(avatarFile))
-
- // Determine active tab from URL path
- const activeTab = $derived.by(() => {
+ // Determine active entity type from URL path
+ const activeEntityType = $derived.by(() => {
const path = $page.url.pathname
if (path.includes('/weapons')) return 'weapons'
if (path.includes('/summons')) return 'summons'
@@ -32,31 +28,17 @@
-
+