Backend modules from tastefully 8bd93d15: core-libs, core-session, api-gateway, mobile-api, services-auth, services-system, services-counter, services-member, services-log, services-email. solvway-admin-portal from babyboo f64d096ea, solvway-customer-portal from tastefully 8bd93d15. Copied as tracked files only. Literal secrets replaced with environment placeholders: - services-email: SMTP_PASSWORD, MAILGUN_API_KEY, SENDGRID_API_KEY, MAILJET_API_KEY, MAILJET_SECRET_KEY (optional, empty default) - services-system: JUMIO_TOKEN, JUMIO_SECRET (optional) - services-auth: USER_AUTH_API_SECRET (required); commented JWT secret removed - core-libs: JWT_TOKEN default removed (required), XXL_JOB_TOKEN default removed, ipgeolocation key read from IPGEOLOCATION_API_KEY - services-system EkycAppConfig: commented Jumio credentials removed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
29 lines
3.1 KiB
TypeScript
29 lines
3.1 KiB
TypeScript
"use client";
|
|
|
|
// Default member avatar: the Tastefully chef mark (icon-only crop of the brand
|
|
// logo) in white on the brand orange gradient. Shown when the member has no photo.
|
|
interface MemberAvatarProps {
|
|
className?: string; // size + radius, e.g. "w-14 h-14 rounded-2xl"
|
|
iconClassName?: string;
|
|
style?: React.CSSProperties;
|
|
}
|
|
|
|
export default function MemberAvatar({
|
|
className = "w-14 h-14 rounded-2xl",
|
|
iconClassName = "w-[62%] h-auto",
|
|
style,
|
|
}: MemberAvatarProps) {
|
|
return (
|
|
<div
|
|
className={`${className} flex items-center justify-center flex-shrink-0 overflow-hidden`}
|
|
style={{ background: "linear-gradient(135deg, #C94D00 0%, #A83F00 100%)", ...style }}
|
|
>
|
|
{/* Icon-only crop of the brand logo (viewBox trimmed to the mark). */}
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="552 0 212.35 197.4" className={iconClassName} aria-label="Tastefully member">
|
|
<path fill="#FFFFFF" d="M620.12,122.53c-.18.39-.38.78-.56,1.19-1.03,2.28-2.39,4.33-4.13,6.14-4.12,4.31-9.11,5.7-14.82,4.23-6.42-1.65-11.96-4.96-16.58-9.65-3-3.03-5.67-6.37-8.38-9.67-3.87-4.72-7.62-9.53-11.43-14.31-.12-.14-.23-.28-.34-.43-.87-1.22-.85-1.34.04-2.49,3.97-5.11,7.89-10.27,11.92-15.33,3.66-4.61,7.67-8.91,12.36-12.5,3.82-2.93,7.99-5.21,12.7-6.36,5.2-1.28,9.81-.09,13.81,3.47,1.84,1.64,3.32,3.55,4.54,5.68,2.66,4.71,2.46,9.51.14,14.23-.99,2-2.27,3.87-3.56,5.71s-2.76,3.55-4.14,5.33c-.29.39-.56.81-.88,1.29.48.54.89,1.02,1.33,1.48,3.18,3.3,5.92,6.9,7.55,11.24.49,1.32.82,2.71,1.24,4.07.08.24.18.47.37.97.72-1.16,1.25-2.14,1.92-3.04.66-.88,1.36-1.75,2.19-2.46.86-.74,1.85-1.36,2.85-1.88.96-.49,2.02-.79,3.15-1.22-.17-.26-.28-.45-.41-.6-1.95-2.26-3.97-4.45-5.81-6.79-1.24-1.57-1.87-3.44-1.92-5.49-.05-2.6.95-4.74,2.64-6.6,1.7-1.88,3.59-3.56,5.71-4.97,7.24-4.85,14.48-9.7,21.76-14.49,2.11-1.38,4.36-2.55,6.54-3.81.47-.27.93-.57,1.41-.85-.15-.85-.81-1.17-1.33-1.57-3.11-2.46-5.52-5.5-7.48-8.91-1.94-3.36-3.01-6.97-3.01-10.88,0-4.57,1.87-8.15,5.61-10.75.72-.49,1.49-.9,2.23-1.36.42-.26.84-.53,1.32-.84-.65-1.42-1.24-2.74-1.85-4.06-1.04-2.26-1.96-4.54-2.26-7.04-.82-6.79,2.49-13.23,9.25-15.15,3.09-.87,6.18-.65,9.22.32,3.95,1.25,7.72,2.95,11.23,5.17,9.34,5.92,18.5,12.12,27.08,19.12,10.16,8.3,19.15,17.67,26.27,28.75,7.24,11.25,12.1,23.43,14.5,36.6.88,4.84,1.4,9.7,1.69,14.6.29,4.83.21,9.64-.13,14.45-.57,7.92-1.97,15.68-5.51,22.86-6.44,13.06-15.48,23.81-28.24,31.14-6.4,3.68-13.3,5.9-20.56,7.11-4.13.68-8.29,1.12-12.47,1.05-21.77-.37-39.68-8.77-53.26-25.92-5.38-6.78-9.55-14.24-12.07-22.57-.91-3-1.58-6.03-1.58-9.18,0-1.14.16-2.28.25-3.42.05-.49.12-.98.17-1.48-.1-.04-.2-.08-.31-.12h.03ZM644.28,110.74c.41.38.7.67,1.01.92,1.77,1.41,3.34,3.03,4.6,4.9,1.35,2.02,2.66,4.07,3.84,6.19,1.91,3.42,4.01,6.68,6.57,9.66,4.92,5.73,11.08,8.25,18.53,6.68,9.33-1.96,16.14-7.28,19.87-16.15,2.3-5.47,2.33-11.17.8-16.87-1-3.74-3.07-6.74-6.47-8.71-2.39-1.39-4.92-2.45-7.62-3.09-3.56-.83-7.12-.85-10.57.37-1.89.67-3.75,1.54-5.45,2.6-3.56,2.25-7,4.7-10.52,7.04-4.2,2.8-8.64,5.03-13.63,6.02-.29.06-.55.24-.96.42v.02Z" />
|
|
<path fill="#FFFFFF" d="M569.25,122.18c.18,3-2.41,5.64-5.66,5.61-3.36-.02-5.48-2.61-5.52-5.46-.04-3.21,2.45-5.79,5.59-5.75,3.17.03,5.75,2.73,5.6,5.6h-.01Z" />
|
|
</svg>
|
|
</div>
|
|
);
|
|
}
|