PIbd-22.-Stroev-V.M.-Intern.../Lab3/index.html
2023-12-06 18:57:32 +04:00

106 lines
5.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="./style.css">
</head>
<body class="h-100 d-flex flex-column" background = "./images/BackGr.png">
<header>
<nav class = "headStyleNavBar navbar-text navbar-dark w-100">
<div class = "text-center">
<img src = "./images/logo2.png" alt = "logo2" width="70">
<span class = "headStyle">
<b>Ульяновский Государственный Политехнический Университет</b>
</span>
</div>
</nav>
<nav class="headStyleNavBar2 navbar navbar-expand-md">
<div class="container-fluid">
<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-start" id="navbarNav">
<div class="navbar-nav">
<a class="heasdStyle nav-link" href="./index.html"><span class = "headStyle">Новости</span></a>
<a class="heasdStyle nav-link active" href="./page2.html"><span class = "headStyle">Об университете</span></a>
<a class="heasdStyle nav-link" href="./page3.html"><span class = "headStyle">Абитуриенту</span></a>
<a class = "heasdStyle nav-link" href = "./page4.html"><span class = "headStyle">Вход</span></a>
<a class = "nav-link" href = "./page5.html"><span class = "headStyle">Контакты</span></a>
</div>
</div>
</div>
</nav>
<div class = "container col text-center">
<span class = "mainSt">Новости</span>
<div class="text-center d-flex justify-content-end">
</div>
</div>
</header>
<main>
<div class = "container-fluid d-flex justify-content-center">
<div class="btn-group text-center" role="group">
<button id="items-add" class="btn btn-info">
Добавить новость</button>
</div>
</div>
</main>
<div class = "row">
<footer class="headStyleNavBar mt-5 d-flex flex-shrink-0 justify-content-center align-items-center">
Адреса: ул. Северный Венец, 32; ул. Андрея Блаженного, 3
</footer>
</div>
<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"
alt="placeholder">
</div>
<input id="items-line-id" type="number" hidden>
<div class="mb-2">
<label class="form-label" for="name">Название</label>
<input id="name" name="name" class="form-control" type = "text"
required>
</div>
<div class="mb-2">
<label class="form-label" for="description">Описание</label>
<input id="description" name="description" class="form-control" type="text"
required>
</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 { UpdateNews, linesForm } from "./js/lines";
document.addEventListener('DOMContentLoaded', () => {
validation();
linesForm();
UpdateNews();
});
</script>
</body>
</html>