119 lines
5.7 KiB
HTML
119 lines
5.7 KiB
HTML
<html lang="ru">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>Моя страница</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<script type="module" src="./node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
|
|
<link href="./node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet" />
|
|
<link href="./node_modules/bootstrap-icons/font/bootstrap-icons.min.css" rel="stylesheet" />
|
|
<link rel="stylesheet" href="./css/style.css" />
|
|
</head>
|
|
|
|
<body class="h-100 d-flex flex-column">
|
|
<header>
|
|
<nav class="navbar navbar-expand-md navbar-dark">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="/">
|
|
<i class="bi bi-app"></i>
|
|
Мой сайт
|
|
</a>
|
|
<button
|
|
class="navbar-toggler"
|
|
type="button"
|
|
data-bs-toggle="collapse"
|
|
data-bs-target="#navbarNav"
|
|
aria-controls="navbarNav"
|
|
aria-expanded="false"
|
|
aria-label="Toggle navigation"
|
|
>
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="navbar-collapse collapse justify-content-end" id="navbarNav">
|
|
<div class="navbar-nav">
|
|
<a class="nav-link active" href="./index.html">Главная страница</a>
|
|
<a class="nav-link" href="./page2.html">Вторая страница</a>
|
|
<a class="nav-link" href="./page3.html">Третья страница</a>
|
|
<a class="nav-link" href="./page-js.html">JavaScript</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
<div id="banner" class="carousel carousel-dark slide">
|
|
<div class="carousel-indicators">
|
|
<button
|
|
type="button"
|
|
data-bs-target="#banner"
|
|
data-bs-slide-to="0"
|
|
aria-current="true"
|
|
aria-label="Slide 1"
|
|
></button>
|
|
<button type="button" data-bs-target="#banner" data-bs-slide-to="1" aria-label="Slide 2"></button>
|
|
<button type="button" data-bs-target="#banner" data-bs-slide-to="2" aria-label="Slide 3"></button>
|
|
</div>
|
|
<div class="carousel-inner">
|
|
<div class="carousel-item" data-interval="10000">
|
|
<img class="d-block w-100" src="/assets/banner1.png" alt="banner1" />
|
|
<div class="carousel-caption d-none d-md-block">
|
|
<h5>First slide label</h5>
|
|
<p>Some representative placeholder content for the first slide.</p>
|
|
</div>
|
|
</div>
|
|
<div class="carousel-item" data-dark="true">
|
|
<img class="d-block w-100" src="/assets/banner2.png" alt="banner2" />
|
|
<div class="carousel-caption d-none d-md-block">
|
|
<h5>Second slide label</h5>
|
|
<p>Some representative placeholder content for the second slide.</p>
|
|
</div>
|
|
</div>
|
|
<div class="carousel-item" data-dark="true">
|
|
<img class="d-block w-100" src="/assets/banner3.png" alt="banner3" />
|
|
<div class="carousel-caption d-none d-md-block">
|
|
<h5>Third slide label</h5>
|
|
<p>Some representative placeholder content for the third slide.</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<button class="carousel-control-prev" type="button" data-bs-target="#banner" data-bs-slide="prev">
|
|
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
|
<span class="visually-hidden">Previous</span>
|
|
</button>
|
|
<button class="carousel-control-next" type="button" data-bs-target="#banner" data-bs-slide="next">
|
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
|
<span class="visually-hidden">Next</span>
|
|
</button>
|
|
</div>
|
|
<main class="container-fluid p-3">
|
|
<h1>Пример web-страницы.</h1>
|
|
<h2>1. Структурные элементы</h2>
|
|
<p>
|
|
<b>Полужирное начертание <i>курсив</i></b>
|
|
</p>
|
|
<p>Абзац 2 <a href="page2.html">Ссылка</a></p>
|
|
<h3>1.1. Списки</h3>
|
|
<p>Список маркированный:</p>
|
|
<ul>
|
|
<li><a href="page2.html" target="_blank">Элемент списка 1</a></li>
|
|
<li>Элемент списка 2</li>
|
|
<li>...</li>
|
|
</ul>
|
|
<p>Список нумерованный:</p>
|
|
<ol>
|
|
<li>Элемент списка 1</li>
|
|
<li>Элемент списка 2</li>
|
|
<li>...</li>
|
|
</ol>
|
|
</main>
|
|
<footer class="footer mt-auto d-flex flex-shrink-0 justify-content-center align-items-center">
|
|
Автор, 2022
|
|
</footer>
|
|
<script type="module">
|
|
import myBanner from "./js/banner";
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
myBanner("#banner");
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|