tabs
This commit is contained in:
parent
06e67338c6
commit
b894c69cd8
75
index.html
75
index.html
@ -18,16 +18,19 @@ body{font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,s
|
|||||||
.hero h1{font-size:56px;font-weight:800;line-height:1.05;margin-bottom:20px;max-width:800px}
|
.hero h1{font-size:56px;font-weight:800;line-height:1.05;margin-bottom:20px;max-width:800px}
|
||||||
.hero h1 span{color:var(--cyan)}
|
.hero h1 span{color:var(--cyan)}
|
||||||
.hero p{font-size:20px;color:var(--gray-300);max-width:600px;margin-bottom:40px;line-height:1.5}
|
.hero p{font-size:20px;color:var(--gray-300);max-width:600px;margin-bottom:40px;line-height:1.5}
|
||||||
.hero .btns{display:flex;gap:16px;flex-wrap:wrap}
|
|
||||||
.btn-primary{display:inline-flex;align-items:center;gap:8px;background:var(--cyan);color:var(--ink);padding:14px 32px;border-radius:8px;font-weight:700;font-size:16px;text-decoration:none;transition:.2s}
|
/* Tab bar */
|
||||||
.btn-primary:hover{background:#33ebff;transform:translateY(-1px)}
|
.tab-bar{display:flex;gap:4px;flex-wrap:wrap;background:var(--gray-800);border-radius:12px;padding:4px;max-width:720px;border:1px solid var(--gray-600)}
|
||||||
.btn-secondary{display:inline-flex;align-items:center;gap:8px;background:transparent;color:var(--white);padding:14px 32px;border-radius:8px;font-weight:600;font-size:16px;text-decoration:none;border:1px solid var(--gray-600);transition:.2s}
|
.tab-btn{flex:1;min-width:120px;padding:12px 20px;border:none;background:transparent;color:var(--gray-300);font-size:14px;font-weight:600;border-radius:8px;cursor:pointer;transition:.2s;text-align:center}
|
||||||
.btn-secondary:hover{border-color:var(--cyan);color:var(--cyan)}
|
.tab-btn:hover{color:var(--white)}
|
||||||
|
.tab-btn.active{background:var(--cyan);color:var(--ink)}
|
||||||
.scroll-down{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);color:var(--gray-300);font-size:13px;letter-spacing:1px;text-transform:uppercase;animation:bounce 2s infinite}
|
.scroll-down{position:absolute;bottom:40px;left:50%;transform:translateX(-50%);color:var(--gray-300);font-size:13px;letter-spacing:1px;text-transform:uppercase;animation:bounce 2s infinite}
|
||||||
@keyframes bounce{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(8px)}}
|
@keyframes bounce{0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(8px)}}
|
||||||
|
|
||||||
/* Sections */
|
/* Tabs content */
|
||||||
.section{padding:100px 0;border-top:1px solid var(--gray-800)}
|
.tab-content{display:none;padding:80px 0 0}
|
||||||
|
.tab-content.active{display:block}
|
||||||
|
|
||||||
.section-header{text-align:center;margin-bottom:64px}
|
.section-header{text-align:center;margin-bottom:64px}
|
||||||
.section-header .num{display:inline-block;font-size:12px;font-weight:700;color:var(--cyan);letter-spacing:2px;text-transform:uppercase;margin-bottom:12px}
|
.section-header .num{display:inline-block;font-size:12px;font-weight:700;color:var(--cyan);letter-spacing:2px;text-transform:uppercase;margin-bottom:12px}
|
||||||
.section-header h2{font-size:40px;font-weight:800;margin-bottom:16px}
|
.section-header h2{font-size:40px;font-weight:800;margin-bottom:16px}
|
||||||
@ -69,32 +72,36 @@ body{font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,s
|
|||||||
.container{padding:48px 20px}
|
.container{padding:48px 20px}
|
||||||
.hero h1{font-size:36px}
|
.hero h1{font-size:36px}
|
||||||
.hero p{font-size:17px}
|
.hero p{font-size:17px}
|
||||||
.section{padding:60px 0}
|
.tab-content{padding:48px 0 0}
|
||||||
.section-header h2{font-size:30px}
|
.section-header h2{font-size:30px}
|
||||||
.two-col{grid-template-columns:1fr;gap:32px}
|
.two-col{grid-template-columns:1fr;gap:32px}
|
||||||
.two-col.reverse{direction:ltr}
|
.two-col.reverse{direction:ltr}
|
||||||
.cards{grid-template-columns:1fr;gap:16px}
|
.cards{grid-template-columns:1fr;gap:16px}
|
||||||
.hero .btns{flex-direction:column}
|
.tab-btn{min-width:80px;font-size:12px;padding:10px 12px}
|
||||||
.cta h2{font-size:28px}
|
.cta h2{font-size:28px}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<section class="hero">
|
<section class="hero">
|
||||||
<div class="container hero-content">
|
<div class="container hero-content">
|
||||||
<div class="badge">NetAcademy v1.0</div>
|
<div class="badge">NetAcademy v1.0</div>
|
||||||
<h1>Обучение сетевым <span>технологиям</span></h1>
|
<h1>Обучение сетевым <span>технологиям</span></h1>
|
||||||
<p>Программирование, волоконная оптика и сетевое оборудование — от основ до продвинутого уровня. Всё, что нужно для работы в телекоме.</p>
|
<p>Программирование, волоконная оптика и сетевое оборудование — от основ до продвинутого уровня. Всё, что нужно для работы в телекоме.</p>
|
||||||
<div class="btns">
|
<div class="tab-bar" id="tabBar">
|
||||||
<a class="btn-primary" href="#coding">Начать обучение →</a>
|
<button class="tab-btn active" data-tab="coding">💻 Программирование</button>
|
||||||
<a class="btn-secondary" href="#equipment">Оборудование</a>
|
<button class="tab-btn" data-tab="optics">🔬 Оптика</button>
|
||||||
|
<button class="tab-btn" data-tab="equipment">⚙️ Оборудование</button>
|
||||||
|
<button class="tab-btn" data-tab="about">📖 Формат</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="scroll-down">Листай вниз</div>
|
<div class="scroll-down">Выбери вкладку выше</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section id="coding" class="section">
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
|
<div id="tab-coding" class="tab-content active">
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<div class="num">01</div>
|
<div class="num">01</div>
|
||||||
<h2>Программирование</h2>
|
<h2>Программирование</h2>
|
||||||
@ -125,10 +132,8 @@ body{font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,s
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
|
|
||||||
<section id="optics" class="section">
|
<div id="tab-optics" class="tab-content">
|
||||||
<div class="container">
|
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<div class="num">02</div>
|
<div class="num">02</div>
|
||||||
<h2>Волоконная оптика</h2>
|
<h2>Волоконная оптика</h2>
|
||||||
@ -173,10 +178,8 @@ body{font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,s
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
|
|
||||||
<section id="equipment" class="section">
|
<div id="tab-equipment" class="tab-content">
|
||||||
<div class="container">
|
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<div class="num">03</div>
|
<div class="num">03</div>
|
||||||
<h2>Оборудование</h2>
|
<h2>Оборудование</h2>
|
||||||
@ -188,7 +191,7 @@ body{font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,s
|
|||||||
<p>Практические навыки работы с сетевым оборудованием ведущих вендоров от провайдерского класса до корпоративного.</p>
|
<p>Практические навыки работы с сетевым оборудованием ведущих вендоров от провайдерского класса до корпоративного.</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>Juniper MX104</strong> — маршрутизация, MPLS, BGP, firewall filters</li>
|
<li><strong>Juniper MX104</strong> — маршрутизация, MPLS, BGP, firewall filters</li>
|
||||||
<li><strong>Eltex MES/MES</strong> — настройка L2/L3 коммутаторов, VLAN, STP</li>
|
<li><strong>Eltex MES</strong> — настройка L2/L3 коммутаторов, VLAN, STP</li>
|
||||||
<li><strong>Eltex MG</strong> — медиашлюзы, TDM over IP</li>
|
<li><strong>Eltex MG</strong> — медиашлюзы, TDM over IP</li>
|
||||||
<li><strong>D-Link, Cisco</strong> — базовые свитчи</li>
|
<li><strong>D-Link, Cisco</strong> — базовые свитчи</li>
|
||||||
<li><strong>GPON OLT/ONT</strong> — пассивные оптические сети</li>
|
<li><strong>GPON OLT/ONT</strong> — пассивные оптические сети</li>
|
||||||
@ -229,10 +232,8 @@ body{font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,s
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
|
|
||||||
<section id="about" class="section">
|
<div id="tab-about" class="tab-content">
|
||||||
<div class="container">
|
|
||||||
<div class="section-header">
|
<div class="section-header">
|
||||||
<div class="num">04</div>
|
<div class="num">04</div>
|
||||||
<h2>Формат обучения</h2>
|
<h2>Формат обучения</h2>
|
||||||
@ -256,7 +257,8 @@ body{font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,s
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
|
||||||
|
</div>
|
||||||
|
|
||||||
<section class="cta">
|
<section class="cta">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@ -269,5 +271,28 @@ body{font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,s
|
|||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
NetAcademy © 2026 — Обучение сетевым технологиям
|
NetAcademy © 2026 — Обучение сетевым технологиям
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
(function(){
|
||||||
|
const tabs = document.querySelectorAll('.tab-btn');
|
||||||
|
const contents = document.querySelectorAll('.tab-content');
|
||||||
|
|
||||||
|
function openTab(name) {
|
||||||
|
tabs.forEach(b => b.classList.toggle('active', b.dataset.tab === name));
|
||||||
|
contents.forEach(c => c.classList.toggle('active', c.id === 'tab-' + name));
|
||||||
|
history.replaceState(null, '', '#' + name);
|
||||||
|
}
|
||||||
|
|
||||||
|
tabs.forEach(btn => {
|
||||||
|
btn.addEventListener('click', () => openTab(btn.dataset.tab));
|
||||||
|
});
|
||||||
|
|
||||||
|
const hash = location.hash.replace('#', '');
|
||||||
|
if (hash && document.getElementById('tab-' + hash)) {
|
||||||
|
openTab(hash);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user