Spaces:
Running
Running
make clone this website https://huggingface.co/spaces/mithunparambath/nanomatter.tech
be5e7e9
verified
| class HeroSection extends HTMLElement { | |
| connectedCallback() { | |
| this.attachShadow({ mode: 'open' }); | |
| this.shadowRoot.innerHTML = ` | |
| <style> | |
| .hero-section { | |
| min-height: 100vh; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .hero-video { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| } | |
| .video-overlay { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4); | |
| } | |
| .hero-content { | |
| position: relative; | |
| z-index: 10; | |
| text-align: center; | |
| color: white; | |
| max-width: 800px; | |
| margin: 0 auto; | |
| padding: 0 1rem; | |
| } | |
| .hero-title { | |
| font-size: 3.5rem; | |
| font-weight: 700; | |
| margin-bottom: 1.5rem; | |
| line-height: 1.2; | |
| } | |
| .hero-subtitle { | |
| font-size: 1.5rem; | |
| margin-bottom: 2rem; | |
| opacity: 0.9; | |
| } | |
| .hero-buttons { | |
| display: flex; | |
| gap: 1rem; | |
| justify-content: center; | |
| flex-wrap: wrap; | |
| } | |
| .btn-primary { | |
| background: #ff6600; | |
| color: white; | |
| padding: 1rem 2rem; | |
| border-radius: 0.5rem; | |
| font-weight: 600; | |
| transition: all 0.3s ease; | |
| border: none; | |
| cursor: pointer; | |
| text-decoration: none; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .btn-primary:hover { | |
| background: #e55b00; | |
| transform: scale(1.05); | |
| } | |
| .btn-secondary { | |
| background: transparent; | |
| color: #ff6600; | |
| padding: 1rem 2rem; | |
| border: 2px solid #ff6600; | |
| border-radius: 0.5rem; | |
| font-weight: 600; | |
| transition: all 0.3s ease; | |
| text-decoration: none; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .btn-secondary:hover { | |
| background: #ff6600; | |
| color: white; | |
| } | |
| @media (max-width: 768px) { | |
| .hero-title { | |
| font-size: 2.5rem; | |
| } | |
| .hero-subtitle { | |
| font-size: 1.25rem; | |
| } | |
| } | |
| </style> | |
| <section class="hero-section"> | |
| <video class="hero-video" autoplay muted loop playsinline> | |
| <source src="https://huggingface.co/spaces/mithunparambath/nanomatter.tech/resolve/main/videos/Untitled%20design%20(1).mp4" type="video/mp4"> | |
| Your browser does not support the video tag. | |
| </video> | |
| <div class="video-overlay"></div> | |
| <div class="hero-content"> | |
| <h1 class="hero-title">Enabling Next-Generation<br>Semiconductor Innovation</h1> | |
| <p class="hero-subtitle">Advanced deposition tools for FEOL and BEOL</p> | |
| <div class="hero-buttons"> | |
| <a href="#technologies" class="btn-primary"> | |
| <i data-feather="layers"></i> | |
| Explore Technologies | |
| </a> | |
| <a href="#contact" class="btn-secondary"> | |
| <i data-feather="mail"></i> | |
| Get in Touch | |
| </a> | |
| </div> | |
| </div> | |
| </section> | |
| `; | |
| } | |
| } | |
| customElements.define('hero-section', HeroSection); |