mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
Add fields to user profile
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
import { Org } from '@app/base/orgs/Org';
|
||||
import Message from '@app/Message.svelte';
|
||||
import Project from '@app/base/projects/Widget.svelte';
|
||||
import Link from '@app/Link.svelte';
|
||||
import { parseEnsLabel } from '@app/utils';
|
||||
|
||||
export let address: string;
|
||||
export let config: Config;
|
||||
@@ -36,6 +38,17 @@
|
||||
.info a {
|
||||
border: none;
|
||||
}
|
||||
.fields {
|
||||
display: grid;
|
||||
grid-template-columns: 5rem 4fr 2fr;
|
||||
grid-gap: 1rem 2rem;
|
||||
}
|
||||
.fields > div {
|
||||
justify-self: start;
|
||||
align-self: center;
|
||||
height: 2rem;
|
||||
line-height: 2rem;
|
||||
}
|
||||
.avatar {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
@@ -86,6 +99,21 @@
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<div class="fields">
|
||||
<!-- Address -->
|
||||
<div class="label">Address</div>
|
||||
<div><Address noAvatar {config} address={address} /></div>
|
||||
<div></div>
|
||||
<!-- Profile -->
|
||||
<div class="label">Profile</div>
|
||||
<div>
|
||||
{#if profile.name}
|
||||
<Link to={`/registrations/${parseEnsLabel(profile.name, config)}`}>{profile.name}</Link>
|
||||
{:else}
|
||||
<span class="subtle">Not set</span>
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<div class="projects">
|
||||
{#await Org.getOrgsByOwner(address, config)}
|
||||
<Loading center fadeIn />
|
||||
|
||||
Reference in New Issue
Block a user