File size: 2,141 Bytes
477329e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | class CustomDeepsight extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
.deepsight-container {
max-width: 800px;
margin: 2rem auto;
padding: 2rem;
background: white;
border-radius: 12px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.deepsight-header {
display: flex;
align-items: center;
margin-bottom: 1.5rem;
}
.deepsight-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
object-fit: cover;
margin-right: 1rem;
}
.deepsight-video {
width: 100%;
border-radius: 8px;
margin-top: 1rem;
}
.deepsight-controls {
display: flex;
gap: 1rem;
margin-top: 1.5rem;
}
.deepsight-btn {
padding: 0.5rem 1rem;
border-radius: 6px;
border: none;
cursor: pointer;
font-weight: 500;
}
.deepsight-primary {
background: #6366f1;
color: white;
}
.deepsight-secondary {
background: #f3f4f6;
color: #4b5563;
}
</style>
<div class="deepsight-container">
<div class="deepsight-header">
<img src="http://static.photos/technology/200x200/42" alt="AI Avatar" class="deepsight-avatar">
<div>
<h3>PixelPulse AI Assistant</h3>
<p>Powered by DeepSight Technology</p>
</div>
</div>
<div class="aspect-w-16 aspect-h-9">
<iframe class="deepsight-video" src="https://www.youtube.com/embed/vCJ6U7mQmYw" frameborder="0" allowfullscreen></iframe>
</div>
<div class="deepsight-controls">
<button class="deepsight-btn deepsight-primary">Generate New Video</button>
<button class="deepsight-btn deepsight-secondary">Customize Avatar</button>
</div>
</div>
`;
}
}
customElements.define('custom-deepsight', CustomDeepsight); |