Spaces:
Running
Running
File size: 1,572 Bytes
9b9ed61 | 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 | class UnityTips extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
.tips-container {
background: #f8fafc;
border-left: 4px solid #f59e0b;
padding: 1rem;
margin: 1rem 0;
border-radius: 0 0.5rem 0.5rem 0;
}
.tips-title {
font-weight: 600;
color: #1e293b;
margin-bottom: 0.5rem;
}
.tip-item {
display: flex;
align-items: flex-start;
margin-bottom: 0.5rem;
}
.tip-icon {
margin-right: 0.5rem;
color: #f59e0b;
flex-shrink: 0;
}
.tip-text {
color: #475569;
font-size: 0.875rem;
}
</style>
<div class="tips-container">
<div class="tips-title">Unity Pro Tips</div>
<div class="tip-item">
<i data-feather="zap" class="tip-icon w-4 h-4"></i>
<div class="tip-text">For best results, use Unity 2020 LTS or newer</div>
</div>
<div class="tip-item">
<i data-feather="cpu" class="tip-icon w-4 h-4"></i>
<div class="tip-text">Character uses Humanoid rig for animation compatibility</div>
</div>
<div class="tip-item">
<i data-feather="layers" class="tip-icon w-4 h-4"></i>
<div class="tip-text">Materials are included in the package with PBR shaders</div>
</div>
</div>
`;
}
}
customElements.define('unity-tips', UnityTips); |