Spaces:
Running
Running
Onde esta tudo o que eu pedi? So apareceu um botao enviar dados e alguns textos. O sistemas que quero é um gerador de formularios e nao um formulario apenas
b2363b3 verified Download components/sidebar.js from mapolanski/formforge-geostudio: direct link, hf CLI and curl.
- Browser
- Download file 4.64 kB
-
https://huggingface.co/spaces/mapolanski/formforge-geostudio/resolve/main/components/sidebar.js
- Command line
-
hf download hf://spaces/mapolanski/formforge-geostudio/components/sidebar.js
-
curl -L -o sidebar.js https://huggingface.co/spaces/mapolanski/formforge-geostudio/resolve/main/components/sidebar.js
4.64 kB
| class GeoSidebar extends HTMLElement { | |
| constructor() { | |
| super(); | |
| } | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| width: 280px; | |
| background: white; | |
| border-right: 1px solid #e5e7eb; | |
| height: 100%; | |
| overflow-y: auto; | |
| } | |
| .dark :host { | |
| background: #1f2937; | |
| border-right-color: #374151; | |
| } | |
| .sidebar-header { | |
| padding: 1.5rem; | |
| border-bottom: 1px solid #e5e7eb; | |
| } | |
| .dark .sidebar-header { | |
| border-bottom-color: #374151; | |
| } | |
| h2 { | |
| font-size: 0.875rem; | |
| font-weight: 600; | |
| color: #6b7280; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| margin: 0; | |
| } | |
| .dark h2 { | |
| color: #9ca3af; | |
| } | |
| .menu-list { | |
| list-style: none; | |
| padding: 0; | |
| margin: 0; | |
| } | |
| .menu-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| padding: 0.875rem 1.5rem; | |
| color: #374151; | |
| text-decoration: none; | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| transition: all 0.2s; | |
| border-left: 3px solid transparent; | |
| } | |
| .menu-item:hover { | |
| background: #f9fafb; | |
| color: #6366f1; | |
| border-left-color: #6366f1; | |
| } | |
| .menu-item.active { | |
| background: #eef2ff; | |
| color: #6366f1; | |
| border-left-color: #6366f1; | |
| } | |
| .dark .menu-item { | |
| color: #d1d5db; | |
| } | |
| .dark .menu-item:hover { | |
| background: #374151; | |
| color: #818cf8; | |
| border-left-color: #818cf8; | |
| } | |
| .dark .menu-item.active { | |
| background: rgba(99, 102, 241, 0.1); | |
| color: #818cf8; | |
| border-left-color: #818cf8; | |
| } | |
| .icon { | |
| width: 1.25rem; | |
| height: 1.25rem; | |
| } | |
| .stats { | |
| padding: 1.5rem; | |
| margin-top: auto; | |
| } | |
| .stat-card { | |
| background: linear-gradient(135deg, #6366f1, #8b5cf6); | |
| border-radius: 0.75rem; | |
| padding: 1rem; | |
| color: white; | |
| } | |
| .stat-number { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| margin-bottom: 0.25rem; | |
| } | |
| .stat-label { | |
| font-size: 0.75rem; | |
| opacity: 0.9; | |
| } | |
| </style> | |
| <div style="display: flex; flex-direction: column; height: 100%;"> | |
| <div class="sidebar-header"> | |
| <h2>Menu Principal</h2> | |
| </div> | |
| <nav style="flex: 1;"> | |
| <ul class="menu-list"> | |
| <li> | |
| <a href="index.html" class="menu-item active"> | |
| <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/></svg> | |
| Dashboard | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="menu-item" onclick="alert('Funcionalidade em desenvolvimento')"> | |
| <svg class="icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-line |