Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

103 changes: 101 additions & 2 deletions static/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,115 @@
<!DOCTYPE html>
<html lang="en">
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Форма выбора питомца</title>
<link rel="stylesheet" href="styles.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">

</head>
<body>
<main>
<h1>Найди себе друга!</h1>
<div class="container">
<form method="POST" action="/pets/orders" class="px-5 py-5">

<!--Форму размещай тут-->
<!--<input type="" name="name" class="form-control">Имя</input>-->
<!--<input type="" name="name" class="form-control">Имя</input>-->
<!--<input type="" name="name" class="form-control">Имя</input>-->

<div class="mb-3">
<label for="email" class="form-label">Email</label>
<input id="email" name="email" type="email" class="form-control" placeholder="mail@someth.com" required>
</div>

<div class="mb-3">
<label for="name" class="form-label">Имя</label>
<input id="name" name="name" type="text" class="form-control" placeholder="Петр Петровец" required>
</div>

<div class="mb-3">
<label for="phone" class="form-label">Номер телефона</label>
<input id="phone" name="phone" type="tel" class="form-control" placeholder="+7 (324) 131-56-34" required>
</div>

<hr/>

<h3 class="text-center lead">Ваш желаемый питомец</h3>
<select class="form-select" name="petType" aria-label="Default select example">
<option selected>Ваш новый друг</option>
<option value="cat">Красная панда</option>
<option value="dog">Ящерица</option>
<option value="tiger">Енот</option>
<!--<option value="Parrot">Папугайч</option>-->
</select>

<select class="form-select" name="gender" aria-label="Default select example">
<option selected>Пол</option>
<option value="boy">Мальчик</option>
<option value="girl">Девочка</option>
<option value="none">Другое</option>
</select>

<div class="row">
<div class="col-4">
<div class="form-group">
<label for="inputDate" >Цвет глаз</label>
<input type="color" name="eyeColor" class="form-control w-5" value="#000000">
</div>
</div>

<div class="col-4">
<div class="form-group">
<label for="inputDate">Длина хвоста</label>
<input type="number" name="tailLength" class="form-control w-5" min="7" max="120">
</div>
</div>

<div class="col-4">
<div class="form-group">
<label for="inputDate">Дата рождения:</label>
<input type="date" name="dateOfBirth" class="form-control">
</div>
</div>
<!--Длина хвоста
<input type="number" name="tailLength" class="form-control">-->
</div>
<div class="clearfix"></div>


<div class="mb-3 form-check">
<input type="checkbox" name="rules" value="true" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1" required>Принимаю <a href="https://youtu.be/dQw4w9WgXcQ">политику конфиденциальности</a></label>
</div>
<fieldset class="my-4">
<button type="submit" class="btn btn-primary">отправить</button>
<button type="reset" name="reset" class="btn btn-danger">Сбросить</button>
</fieldset>
</form>
</div>

<!--
Доп. Баллы:

TODO: Доделать табличку
- Добавить стиль
- Перевести значения
- Цвет глаз в чита
- Длина хвоста в единицах измерения
- ...
-->

<!--
petType*
gender*
eyeColor*
tailLength*
name*
dateOfBirth*
email*
phone*
rules*
-->
</main>
</body>
</html>
29 changes: 25 additions & 4 deletions static/styles.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body {
background-color: #F2F2F2;
background-color: #c1dee8;
}

main {
Expand All @@ -8,7 +8,7 @@ main {
max-width: 1000px;
margin: 30px auto;
padding: 30px;
background: white;
background: #fff2ed;
min-height: calc(100vh - 60px);
border-radius: 20px;
}
Expand All @@ -19,7 +19,8 @@ h1 {
margin-top: 0;
font-size: 50px;
text-align: center;
color: rgba(173,38,164,0.67);
color: #d63900;
-webkit-text-stroke: 1px rgb(235, 47, 0);
}

.error {
Expand All @@ -28,4 +29,24 @@ h1 {

.orders {
margin: 20px 0;
}
}

input[type=text],
input[type=email],
input[type=tel]{
background-color: #fd9877;
color:#130500;
}

input[type=text]::-webkit-input-placeholder,
input[type=email]::-webkit-input-placeholder,
input[type=tel]::-webkit-input-placeholder{
color: #fff2ed;
}


.text-center{
color: #d63900;
-webkit-text-stroke: 1px rgb(235, 47, 0);
}