Spaces:
Running
Running
Download components/unity-tips.js from Sedras/unity-boy-creator-3000: direct link, hf CLI and curl.
- Browser
- Download file 1.57 kB
-
https://huggingface.co/spaces/Sedras/unity-boy-creator-3000/resolve/main/components/unity-tips.js
- Command line
-
hf download hf://spaces/Sedras/unity-boy-creator-3000/components/unity-tips.js
-
curl -L -o unity-tips.js https://huggingface.co/spaces/Sedras/unity-boy-creator-3000/resolve/main/components/unity-tips.js
1.57 kB
| 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); |