Create a website for a 501c3 named Clean Start Initiative located in the Big Bend Area of North Florida with a focus on the Counties of Leon, Madison, Jefferson, Gadsden, and Wakulla
2460793 verified Download components/program-step.js from Alexanderken/second-chance-symphony: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/spaces/Alexanderken/second-chance-symphony/resolve/main/components/program-step.js
- Command line
-
hf download hf://spaces/Alexanderken/second-chance-symphony/components/program-step.js
-
curl -L -o program-step.js https://huggingface.co/spaces/Alexanderken/second-chance-symphony/resolve/main/components/program-step.js
1.44 kB
| class ProgramStep extends HTMLElement { | |
| connectedCallback() { | |
| const week = this.getAttribute('week') || ''; | |
| const title = this.getAttribute('title') || ''; | |
| const description = this.getAttribute('description') || ''; | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .step-card { | |
| background: white; | |
| border-radius: 0.5rem; | |
| padding: 1.5rem; | |
| border-left: 4px solid #10b981; | |
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | |
| height: 100%; | |
| transition: transform 0.2s; | |
| } | |
| .step-card:hover { | |
| transform: translateY(-2px); | |
| } | |
| .week { | |
| display: inline-block; | |
| background-color: #10b981; | |
| color: white; | |
| font-weight: 600; | |
| padding: 0.25rem 0.75rem; | |
| border-radius: 9999px; | |
| margin-bottom: 0.75rem; | |
| font-size: 0.875rem; | |
| } | |
| .title { | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| color: #1f2937; | |
| margin-bottom: 0.5rem; | |
| } | |
| .description { | |
| color: #6b7280; | |
| line-height: 1.5; | |
| } | |
| </style> | |
| <div class="step-card"> | |
| <div class="week">Week ${week}</div> | |
| <h3 class="title">${title}</h3> | |
| <p class="description">${description}</p> | |
| </div> | |
| `; | |
| } | |
| } | |
| customElements.define('program-step', ProgramStep); |