87 lines
3.6 KiB
HTML
87 lines
3.6 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/@fortawesome/fontawesome-free/css/all.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="fa-solid fa-camera"></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" >
|
|
<div class="row" style="flex-wrap: nowrap; margin: 5px 20px 5px 0px">
|
|
<input class="form-control me-1 nav-link" type="search" style="width: 90%" placeholder="Search" aria-label="Search">
|
|
<button class="back" type="submit" onclick="document.location='/search.html'">
|
|
<i class="fa-solid fa-search"> </i>
|
|
</button>
|
|
</div>
|
|
<div class="row" style="flex-wrap: nowrap; margin: 5px 20px 5px 0px">
|
|
<button class="login nav-link me-1" style="width: 90%" onclick="document.location='/login.html'">Войти/Зарегистрироватся</button>
|
|
<button class="user nav-link" type="submit" onclick="document.location='/chanel.html'">
|
|
<i class="fa-solid fa-user"> </i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
<main class="container-fluid p-2">
|
|
<div class="text-center">
|
|
<img id="image-preview" src="https://via.placeholder.com/200" class="rounded rounded-circle"
|
|
alt="placeholder">
|
|
</div>
|
|
<form id="items-form" class="needs-validation" novalidate>
|
|
<div class="mb-2">
|
|
<label for="item" class="form-label">Канал</label>
|
|
<select id="item" class="form-select" name="chanel" required>
|
|
</select>
|
|
</div>
|
|
<div class="mb-2">
|
|
<label class="form-label" for="title">Название</label>
|
|
<input id="title" name="title" 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 class="mb-2">
|
|
<label class="form-label" for="video">Видео</label>
|
|
<input id="video" type="file" name="video" class="form-control" accept="video/*">
|
|
</div>
|
|
<a href="/adminchanel.html" class="btn btn-secondary">Назад</a>
|
|
<button type="submit" class="btn btn-primary">Сохранить</button>
|
|
</form>
|
|
</main>
|
|
<script type="module">
|
|
import validation from "./js/validation";
|
|
import { linesPageForm } from "./js/lines"
|
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
validation();
|
|
linesPageForm();
|
|
});
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|