mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-09 21:13:09 +00:00
ux: dedupe user profile cards via ui-card
This commit is contained in:
parent
1c2da581e6
commit
96e53c44ac
1 changed files with 3 additions and 10 deletions
|
|
@ -34,7 +34,7 @@ const { username } = Astro.params;
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="stats">
|
<div class="stats ui-card ui-card-pad-lg">
|
||||||
<div class="stat">
|
<div class="stat">
|
||||||
<span class="stat-value">${profile.communities.length}</span>
|
<span class="stat-value">${profile.communities.length}</span>
|
||||||
<span class="stat-label">Communities</span>
|
<span class="stat-label">Communities</span>
|
||||||
|
|
@ -55,7 +55,7 @@ const { username } = Astro.params;
|
||||||
? '<p class="empty">Not a member of any communities yet</p>'
|
? '<p class="empty">Not a member of any communities yet</p>'
|
||||||
: `<div class="communities-list">
|
: `<div class="communities-list">
|
||||||
${profile.communities.map(c => `
|
${profile.communities.map(c => `
|
||||||
<a href="/communities/${c.slug}" class="community-item">
|
<a href="/communities/${c.slug}" class="community-item ui-card ui-card-soft">
|
||||||
<span class="community-name">${c.name}</span>
|
<span class="community-name">${c.name}</span>
|
||||||
<span class="community-role role-${c.role}">${c.role}</span>
|
<span class="community-role role-${c.role}">${c.role}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
@ -93,7 +93,7 @@ const { username } = Astro.params;
|
||||||
}
|
}
|
||||||
|
|
||||||
container.innerHTML = votes.map(v => `
|
container.innerHTML = votes.map(v => `
|
||||||
<a href="/proposals/${v.proposal_id}" class="vote-item">
|
<a href="/proposals/${v.proposal_id}" class="vote-item ui-card ui-card-soft">
|
||||||
<div class="vote-info">
|
<div class="vote-info">
|
||||||
<span class="vote-proposal">${v.proposal_title}</span>
|
<span class="vote-proposal">${v.proposal_title}</span>
|
||||||
<span class="vote-community">in ${v.community_name}</span>
|
<span class="vote-community">in ${v.community_name}</span>
|
||||||
|
|
@ -154,9 +154,6 @@ const { username } = Astro.params;
|
||||||
.stats {
|
.stats {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 2rem;
|
gap: 2rem;
|
||||||
padding: 1.5rem;
|
|
||||||
background: var(--color-surface);
|
|
||||||
border: 1px solid var(--color-border);
|
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
}
|
}
|
||||||
|
|
@ -197,8 +194,6 @@ const { username } = Astro.params;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0.75rem 1rem;
|
padding: 0.75rem 1rem;
|
||||||
background: var(--color-surface);
|
|
||||||
border: 1px solid var(--color-border);
|
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
|
|
@ -246,8 +241,6 @@ const { username } = Astro.params;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 0.75rem 1rem;
|
padding: 0.75rem 1rem;
|
||||||
background: var(--color-surface);
|
|
||||||
border: 1px solid var(--color-border);
|
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--color-text);
|
color: var(--color-text);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue