Spaces:
Running
Running
File size: 1,438 Bytes
ba70a5d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | class CustomHero extends HTMLElement {
connectedCallback() {
this.attachShadow({ mode: 'open' });
this.shadowRoot.innerHTML = `
<style>
:host {
--teal: #009688;
--black: #0A0A0A;
}
.hero {
padding: 120px 0;
text-align: center;
}
h1 {
font-size: 72px;
font-weight: 900;
margin-bottom: 24px;
line-height: 1.2;
}
.subtitle {
font-size: 24px;
margin-bottom: 48px;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
.btn {
background: var(--teal);
color: white;
padding: 16px 32px;
border: none;
font-weight: 900;
font-size: 18px;
transition: all 0.3s ease;
cursor: pointer;
}
.btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
</style>
<section class="hero">
<h1>Образование нового поколения в Minecraft Education</h1>
<p class="subtitle">STEMCraft — платформа, где игра превращается в обучение</p>
<a href="subscription.html" class="btn">Оформить подписку</a>
</section>
`;
}
}
customElements.define('custom-hero', CustomHero); |