Download components/layout.js from arefamer/codegenius-wizardry-wand: direct link, hf CLI and curl.
- Browser
- Download file 883 Bytes
-
https://huggingface.co/spaces/arefamer/codegenius-wizardry-wand/resolve/main/components/layout.js
- Command line
-
hf download hf://spaces/arefamer/codegenius-wizardry-wand/components/layout.js
-
curl -L -o layout.js https://huggingface.co/spaces/arefamer/codegenius-wizardry-wand/resolve/main/components/layout.js
883 Bytes
| class AppLayout extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| } | |
| main { | |
| flex: 1; | |
| padding-top: 80px; | |
| padding-bottom: 2rem; | |
| } | |
| .content-wrapper { | |
| max-width: 1400px; | |
| margin: 0 auto; | |
| width: 100%; | |
| padding: 0 2rem; | |
| } | |
| @media (max-width: 768px) { | |
| .content-wrapper { | |
| padding: 0 1rem; | |
| } | |
| } | |
| </style> | |
| <custom-navbar></custom-navbar> | |
| <main> | |
| <div class="content-wrapper"> | |
| <slot></slot> | |
| </div> | |
| </main> | |
| <custom-footer></custom-footer> | |
| `; | |
| } | |
| } | |
| customElements.define('app-layout', AppLayout); |