UserProfileCard
DomainProfil kartı: kapak banner, avatar, görünen ad, kullanıcı adı, biyografi, rol ve durum rozetleri ve isteğe bağlı actions slotu.
JD
Jane Doe
@janedoe
Full-stack engineer. Loves design systems and coffee.
Admin
Active
admin@acme.com
<%- include('modules/domain/common/user/UserProfileCard', {
name: user.name,
email: user.email,
role: user.role,
status: user.status,
username: user.username,
biography: user.biography,
src: user.profilePicture
}) %>
U
user@acme.com
User
Inactive
user@acme.com
<%- include('modules/domain/common/user/UserProfileCard', {
email: user.email,
role: user.role,
status: user.status
}) %>
<%
var _name = locals.name || locals.email || 'Unknown User';
var _email = locals.email || '';
var _username = locals.username || null;
var _bio = locals.biography || null;
var _role = locals.role || locals.userRole || 'USER';
var _status = locals.status || locals.userStatus || 'ACTIVE';
var _src = locals.src || locals.profilePicture || null;
var sizeMap = { xs: 'h-6 w-6 text-xs', sm: 'h-8 w-8 text-xs', md: 'h-10 w-10 text-sm', lg: 'h-12 w-12 text-base', xl: 'h-16 w-16 text-lg' };
var szClass = sizeMap['xl'];
var initials = _name.trim().split(/\s+/).map(function(w) { return w[0] || ''; }).slice(0, 2).join('').toUpperCase() || '?';
%>
<% if (_src) { %>
<% } else { %>
<%= initials %>
<% } %>
<% if (locals.actionsHtml) { %>
<%- locals.actionsHtml %>
<% } %>
<%= _name %>
<% if (_username) { %>@<%= _username %>
<% } %>
<% if (_bio) { %><%= _bio %>
<% } %>
<%- include('../user/UserRoleBadge', { role: _role }) %>
<%- include('../user/UserStatusBadge', { status: _status }) %>
<%= _email %>