templates/vitekit/tabs.html
2026-04-12 21:03:18 +03:00

40 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tabs Component Demo</title>
</head>
<body>
<header class="header">
<nav>
<a href="/">Home</a>
<a href="#">About</a>
<a href="#">Contact</a>
</nav>
</header>
<h1>Tabs Component Demo</h1>
<div class="tabs-container">
<div class="tabs-nav">
<button class="tab-button active" data-tab="tab1">Tab 1</button>
<button class="tab-button" data-tab="tab2">Tab 2</button>
<button class="tab-button" data-tab="tab3">Tab 3</button>
</div>
<div class="tabs-content">
<div id="tab1" class="tab-pane active">
<h3>Content for Tab 1</h3>
<p>This is the content for the first tab.</p>
</div>
<div id="tab2" class="tab-pane">
<h3>Content for Tab 2</h3>
<p>This is the content for the second tab.</p>
</div>
<div id="tab3" class="tab-pane">
<h3>Content for Tab 3</h3>
<p>This is the content for the third tab.</p>
</div>
</div>
</div>
<script type="module" src="/src/main.js"></script>
</body>
</html>