65 lines
2.3 KiB
HTML
65 lines
2.3 KiB
HTML
<!doctype html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Что приготовить сегодня</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<main>
|
|
<div id="home">
|
|
<h1 id="title"></h1>
|
|
<section class="add">
|
|
<form id="form" novalidate>
|
|
<label id="nameLabel" for="name">Название блюда</label>
|
|
<div class="row">
|
|
<input id="name" type="text" maxlength="80" autocomplete="off" aria-describedby="nameError">
|
|
<button id="add" type="submit">Добавить</button>
|
|
</div>
|
|
<p id="suggestHint" class="hint"></p>
|
|
<ul id="suggest" class="suggest" aria-labelledby="nameLabel" hidden></ul>
|
|
<p id="nameError" class="error" role="alert" hidden></p>
|
|
</form>
|
|
</section>
|
|
<section class="result" aria-live="polite">
|
|
<p id="today" class="today" hidden></p>
|
|
<p id="dish" class="dish" hidden></p>
|
|
<button id="recipeToday" type="button" class="recipe-btn" hidden>Рецепт</button>
|
|
<p id="noRecipeToday" class="no-recipe" hidden></p>
|
|
<p id="level" class="level" hidden></p>
|
|
<div id="tune" class="tune" hidden>
|
|
<button id="easier" type="button">Полегче</button>
|
|
<button id="harder" type="button">Посложнее</button>
|
|
</div>
|
|
<p id="tuneError" class="error" role="alert" hidden></p>
|
|
<button id="pick" type="button" class="primary">Что приготовить?</button>
|
|
<p id="pickInfo" class="hint"></p>
|
|
<p id="hint" class="hint"></p>
|
|
</section>
|
|
<section>
|
|
<h2 id="listTitle"></h2>
|
|
<p id="empty" class="hint" hidden></p>
|
|
<p id="recipesHint" class="hint" hidden></p>
|
|
<div id="recipeExample" class="example" hidden>
|
|
<p id="recipeExampleHint" class="hint"></p>
|
|
<div id="examples" class="examples"></div>
|
|
<p id="examplesNote" class="hint"></p>
|
|
</div>
|
|
<ul id="list"></ul>
|
|
<p id="noRecipeHint" class="hint" hidden></p>
|
|
</section>
|
|
</div>
|
|
<article id="recipe" class="recipe" hidden tabindex="-1">
|
|
<button id="back" type="button">Назад</button>
|
|
<h1 id="recipeTitle"></h1>
|
|
<h2 id="ingTitle"></h2>
|
|
<ul id="ingredients" class="plain"></ul>
|
|
<h2 id="stepsTitle"></h2>
|
|
<ol id="steps"></ol>
|
|
</article>
|
|
</main>
|
|
<script type="module" src="app.js"></script>
|
|
</body>
|
|
</html>
|