yespage fixed bugs

This commit is contained in:
danamir
2020-05-10 19:14:24 +03:00
parent 711eb4ac28
commit 6f721b18d7
6 changed files with 48 additions and 54 deletions

View File

@@ -1 +0,0 @@
FROM alpine:latest

2
.gitignore vendored
View File

@@ -1,3 +1,5 @@
__pycache__
.vscode
env
test
t*.css

5
Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM python:3.6-alpine
WORKDIR /project
ADD . /project
RUN pip install -r requirements.txt
CMD ["python","app.py"]

5
app.py
View File

@@ -21,6 +21,11 @@ def yespressed():
def nopressed():
return render_template('nopage.html')
@app.route('test', methods=['GET', 'POST'])
def t():
return render_template('/test/t1.html')
if __name__ == '__main__':
app.jinja_env.auto_reload = True
app.run(debug=False, host='0.0.0.0')

View File

@@ -1,21 +1,30 @@
body, html{
body{
margin: 0;
padding: 0;
background: url(../img/yesback.jpg);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
height: 100vh;
}
container-fluid{
min-width: 500px;
.container-fluid{
padding-right: 0;
padding-left: 0;
margin-right: auto;
margin-left: auto;
text-align: center;
vertical-align: middle;
margin-top: 10vh;
}
div.row{
justify-content:center;
}
div.row h1{
padding: 0;
border: 0;
@@ -24,7 +33,6 @@ div.row h1{
font-size: 50pt;
text-align: center;
border-radius: 100px;
margin-top: 5vh;
}
div.row h2{
@@ -48,23 +56,16 @@ img{
text-transform: uppercase;
border: #fe5f55;
}
.container{
padding-right: 0;
padding-left: 0;
margin-right: auto;
margin-left: auto;
text-align: center;
#mainpage{
vertical-align: middle;
}
/* Small devices (landscape phones, 576px and up) */
/*Small devices (landscape phones, 576px and up) */
@media (max-width: 576px) {
img{
max-width: 200px;
height: auto;
margin-top: 2vh;
}
div.row h1{
@@ -91,29 +92,3 @@ img{
}
/* Medium devices (tablets, 768px and up) The navbar toggle appears at this breakpoint */
@media (max-width: 768px) {
}
/* Large devices (desktops, 992px and up) */
@media (max-width: 992px) {
}
/* Extra large devices (large desktops, 1200px and up) */
@media (max-width: 1200px) {
}
/*
::::::::::::::::::::::::::::::::::::::::::::::::::::
Custom media queries
*/
/* Set width to make card deck cards 100% width */
@media (max-width: 950px) {
}

View File

@@ -11,23 +11,31 @@
</head>
<body>
<div class="container-fluid">
<div class="container">
<div class="row">
<div class="row">
<img src="{{url_for('static', filename='img/love2.jpg')}}">
</div>
<div class="row">
</div></div>
</div>
<div class="row ">
<h1>ТЬМООООООК</h1>
</div>
<div class="row">
</div></div>
</div>
<div class="row ">
<h2>Мы вместе {{days}} дней </h>
</div>
</div></div>
</div>
<div class="row">
<button class="btn btn-primary" id="backbtn" onClick="window.location.href='{{ url_for( 'index' ) }}';">На главную</button>
</div>
</div></div>
</div>
</div>
</body>
</html>