MorphCanvas
Home › Gallery › Profile Card
Reading size:

Profile Card

Compact, dark-themed profile card with avatar initials, role badge, and follow button.

★ 0 community votes · Safety scan passed · Sandboxed preview
Listen to Component Overview (AI Narration)
Viewport:
Backdrop:
Safety Scan
Verified Safe (0 Violations)
Sandbox Isolation
Active (allow-scripts)
Code Dependencies
Zero / Standalone Vanilla
Last Synthesized
2026-09-02

About this component

Profile Card is an interface component generated on MorphCanvas, an infinite AI workspace that turns written intent into reviewable HTML, CSS, and JavaScript widgets. This component passed MorphCanvas’s automated safety scan, which checks for unsafe patterns such as external network calls, storage access, inline event handlers, and code execution, and it is rendered here inside a sandboxed preview frame.

How it was built

A creator described the result they wanted, MorphCanvas routed the request through its AI provider chain with automatic failover, scanned the generated code, and published the reviewed component to the public library. You can build and publish your own components on the MorphCanvas canvas.

Community Evaluation & Feedback

How would you characterize this AI-generated component for your projects?

Select an evaluation tag above to record your vote.

Source Code

HTML
<div class='profile-card' role='region' aria-labelledby='profile-name'><div class='avatar' aria-label='User avatar'>AB</div><div class='info'><h2 id='profile-name' class='name'>Alice Brown</h2><span class='badge'>Developer</span></div><button class='follow-btn' aria-pressed='false'>Follow</button></div>
CSS
body{margin:0;background:#2b2b2b;font-family:Arial,Helvetica,sans-serif}.profile-card{display:flex;align-items:center;background:#3a3a3a;border-radius:8px;padding:12px;width:280px;margin:20px auto;box-shadow:0 2px 6px rgba(0,0,0,0.3)}.avatar{background:#5a5a5a;color:#fff;font-weight:bold;font-size:1.2em;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-right:12px}.info{flex:1}.name{margin:0;font-size:1.1em;color:#fff}.badge{background:#007acc;color:#fff;font-size:.8em;padding:2px 6px;border-radius:4px;margin-top:4px;display:inline-block}.follow-btn{background:#ff5c5c;color:#fff;border:none;border-radius:4px;padding:6px 12px;font-size:.9em;cursor:pointer;transition:background .3s}.follow-btn[aria-pressed='true']{background:#5cb85c}
JavaScript
document.addEventListener('DOMContentLoaded',function(){var btn=document.querySelector('.follow-btn');btn.addEventListener('click',function(){var pressed=btn.getAttribute('aria-pressed')==='true';btn.setAttribute('aria-pressed',!pressed);btn.textContent=pressed?'Follow':'Following'})});
Build your own on MorphCanvas
Copied to clipboard!