Compare commits

..

2 Commits

Author SHA1 Message Date
906d6df5ae add docker file 2022-12-22 12:52:29 +03:00
ca0afdad2c redesign auth page 2022-11-12 13:53:25 +03:00
3 changed files with 71 additions and 0 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM python:3.11-slim-bullseye
WORKDIR /usr/src/app
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN pip install --upgrade pip
COPY ./requirements.txt /usr/src/app/requirements.txt
RUN pip install -r requirements.txt
# copy project
COPY . /usr/src/app/
CMD ["python","app.py"]

BIN
static/img/Auth.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 MiB

56
templates/adduser.html Normal file
View File

@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">
<link rel="stylesheet" href="{{ url_for('static',filename='css/style.css')}}">
<title>3d Detals</title>
</head>
<body>
<header>
<h1 class="h1header"> Каталог печатных 3д деталей </h1>
</header>
<div class="container">
<div class="row">
<div class="col-md-4 d-flex aligns-items-center mx-auto">
<div class="card card-login mobile-margin">
<img class="card-img-top" src="{{url_for('static', filename='img/Auth.jpg')}}">
<form method="POST" action="/auth">
<div class="col mb-3">
<label for="exampleInputEmail1" class="form-label">Введите логин</label>
<input type="text" class="form-control" name="login">
</div>
<div class="col mb-3">
<label>Введите пароль</label>
<input type="password" class="form-control" name="passwd">
</div>
<button type="submit" class="btn btn-primary">Авторизоваться</button>
</form>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3"
crossorigin="anonymous"></script>
</body>
</html>