141 lines
6.9 KiB
HTML
141 lines
6.9 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ru" class="h-100">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<title>Моя страница</title>
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<script 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/@fortawesome/fontawesome-free/css/all.min.css"
|
||
rel="stylesheet" />
|
||
<link rel="stylesheet" href="styles/style.css">
|
||
</head>
|
||
<body class="d-flex flex-column h-100">
|
||
<header class="bg-white">
|
||
<nav class="navbar navbar-expand-lg navbar-light mb-4">
|
||
<div class="container">
|
||
<a class="navbar-brand text-dark" href="/">
|
||
<img src="img/logo_header.png" alt="Мой логотип" width="280" height="60">
|
||
</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="collapse navbar-collapse align-items-center" id="navbarNav">
|
||
<ul class="d-flex justify-content-between align-items-center list-unstyled w-100 m-0 mx-auto">
|
||
<li class="nav-item">
|
||
<a class="nav-link" href="second.html">Об университете</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a class="nav-link ms-2" href="third.html">Студенческая жизнь</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a class="nav-link ms-2" href="fourth.html">Мир спорта</a>
|
||
</li>
|
||
<li class="nav-item">
|
||
<a class="btn btn-purple text-center ms-2" href="fifth.html">Личный кабинет</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
</header>
|
||
|
||
<main class="container-fluid p-2">
|
||
<div class="btn-group" role="group">
|
||
<button id="items-add" class="btn btn-info">Добавить новость (диалог)</button>
|
||
|
||
</div>
|
||
<div>
|
||
<table id="items-table" class="table table-striped">
|
||
<thead>
|
||
<th scope="col">№</th>
|
||
<th scope="col" class="w-25">Тип</th>
|
||
<th scope="col" class="w-25">Заголовок</th>
|
||
<th scope="col" class="w-25">Текст</th>
|
||
<th scope="col" class="w-25">Дата</th>
|
||
</thead>
|
||
<tbody></tbody>
|
||
</table>
|
||
</div>
|
||
</main>
|
||
<footer class="footer mt-auto text-white py-1">
|
||
<div class="container">
|
||
<div class="row align-items-center">
|
||
<div class="col-md-4">
|
||
<a class="navbar-brand text-dark" href="/">
|
||
<img src="img/logo_footer.png" width="240" height="60" alt="Мой логотип в футере">
|
||
</a>
|
||
|
||
</div>
|
||
<div class="col-md-4">
|
||
<p class="mb-1 mt-0">Адрес и контакты</p>
|
||
<p class="mb-1 mt-0">432027, г. Ульяновск, ул. Северный Венец, д. 32</p>
|
||
<p class="mb-1 mt-0">Приёмная ректора: +7 (8422) 43-06-43,
|
||
<a href="mailto:rector@ulstu.ru" class="footer-contacts__mail">rector@ulstu.ru</a>
|
||
</p>
|
||
<p class="mb-1 mt-0">Вопросы по сайту:
|
||
<a href="mailto:web@ulstu.ru" class="footer-contacts__mail">web@ulstu.ru</a>
|
||
</p>
|
||
</div>
|
||
<div class="col-md-4 text-md-center">
|
||
<a class="nav-link" href="second.html">Об университете</a>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
<div id="items-update" class="modal fade" tabindex="-1" data-bs-backdrop="static" data-bs-keyboard="false">
|
||
<div class="modal-dialog">
|
||
<form id="items-form" class="needs-validation" novalidate>
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h1 class="modal-title fs-5" id="items-update-title"></h1>
|
||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div class="text-center">
|
||
<img id="image-preview" src="https://via.placeholder.com/200" class="rounded rounded-circle"
|
||
alt="placeholder">
|
||
</div>
|
||
<input id="items-line-id" type="number" hidden>
|
||
<div class="mb-2">
|
||
<label for="item" class="form-label">Тип</label>
|
||
<select id="item" class="form-select" name="selected" required>
|
||
</select>
|
||
</div>
|
||
<div class="mb-2">
|
||
<label class="form-label" for="title">Заголовок</label>
|
||
<input class = "form-control" id="title" class="title" required>
|
||
</div>
|
||
<div class="mb-2">
|
||
<label class="form-label" for="text">Текст</label>
|
||
<textarea class = "form-control" id="text" name="text" rows="21" cols="53"></textarea>
|
||
</div>
|
||
|
||
<div class="mb-2">
|
||
<label class="form-label" for="image">Изображение</label>
|
||
<input id="image" type="file" name="image" class="form-control" accept="image/*">
|
||
</div>
|
||
</div>
|
||
<div class="modal-footer">
|
||
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Закрыть</button>
|
||
<button type="submit" class="btn btn-primary">Сохранить</button>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
<script type="module">
|
||
import validation from "./js/validation";
|
||
import { linesForm } from "./js/lines";
|
||
|
||
document.addEventListener('DOMContentLoaded', () => {
|
||
validation();
|
||
linesForm();
|
||
});
|
||
</script>
|
||
</body>
|
||
</html> |