Download components/hero.js from BalC/axiomforge-cognitive-engine: direct link, hf CLI and curl.
- Browser
- Download file 2.79 kB
-
https://huggingface.co/spaces/BalC/axiomforge-cognitive-engine/resolve/main/components/hero.js
- Command line
-
hf download hf://spaces/BalC/axiomforge-cognitive-engine/components/hero.js
-
curl -L -o hero.js https://huggingface.co/spaces/BalC/axiomforge-cognitive-engine/resolve/main/components/hero.js
2.79 kB
| class CustomHero extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| :host { | |
| display: block; | |
| padding: 6rem 1rem; | |
| text-align: center; | |
| background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%); | |
| } | |
| .dark :host { | |
| background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(16, 185, 129, 0.2) 100%); | |
| } | |
| .container { | |
| max-width: 72rem; | |
| margin: 0 auto; | |
| } | |
| h1 { | |
| font-size: 3.75rem; | |
| font-weight: 800; | |
| line-height: 1; | |
| margin-bottom: 1.5rem; | |
| } | |
| .gradient-text { | |
| background-clip: text; | |
| -webkit-background-clip: text; | |
| color: transparent; | |
| background-image: linear-gradient(45deg, #4f46e5, #10b981); | |
| } | |
| p { | |
| font-size: 1.25rem; | |
| max-width: 48rem; | |
| margin: 0 auto 2.5rem; | |
| color: #4b5563; | |
| } | |
| .dark p { | |
| color: #9ca3af; | |
| } | |
| .buttons { | |
| display: flex; | |
| justify-content: center; | |
| gap: 1rem; | |
| } | |
| .btn { | |
| padding: 0.75rem 1.5rem; | |
| border-radius: 0.375rem; | |
| font-weight: 500; | |
| transition: all 0.2s; | |
| } | |
| .btn-primary { | |
| background-color: #4f46e5; | |
| color: white; | |
| } | |
| .btn-primary:hover { | |
| background-color: #4338ca; | |
| transform: translateY(-2px); | |
| } | |
| .btn-secondary { | |
| background-color: #10b981; | |
| color: white; | |
| } | |
| .btn-secondary:hover { | |
| background-color: #059669; | |
| transform: translateY(-2px); | |
| } | |
| @media (max-width: 768px) { | |
| h1 { | |
| font-size: 2.5rem; | |
| } | |
| p { | |
| font-size: 1.125rem; | |
| } | |
| .buttons { | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| } | |
| </style> | |
| <div class="container"> | |
| <h1>Transform Data Into <span class="gradient-text">Strategic Narratives</span></h1> | |
| <p>The Axiomatic Synthesis Engine converts unstructured data into structured, defensible knowledge architectures—mirroring human cognitive patterns at machine speed.</p> | |
| <div class="buttons"> | |
| <a href="#" class="btn btn-primary">Request Demo</a> | |
| <a href="#" class="btn btn-secondary">Learn More</a> | |
| </div> | |
| </div> | |
| `; | |
| } | |
| } | |
| customElements.define('custom-hero', CustomHero); |