yespage fixed bugs
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
FROM alpine:latest
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
__pycache__
|
__pycache__
|
||||||
.vscode
|
.vscode
|
||||||
env
|
env
|
||||||
|
test
|
||||||
|
t*.css
|
||||||
|
|||||||
5
Dockerfile
Normal file
5
Dockerfile
Normal 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
5
app.py
@@ -21,6 +21,11 @@ def yespressed():
|
|||||||
def nopressed():
|
def nopressed():
|
||||||
return render_template('nopage.html')
|
return render_template('nopage.html')
|
||||||
|
|
||||||
|
|
||||||
|
@app.route('test', methods=['GET', 'POST'])
|
||||||
|
def t():
|
||||||
|
return render_template('/test/t1.html')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.jinja_env.auto_reload = True
|
app.jinja_env.auto_reload = True
|
||||||
app.run(debug=False, host='0.0.0.0')
|
app.run(debug=False, host='0.0.0.0')
|
||||||
@@ -1,21 +1,30 @@
|
|||||||
body, html{
|
body{
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: url(../img/yesback.jpg);
|
background: url(../img/yesback.jpg);
|
||||||
|
background-position: center;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
container-fluid{
|
.container-fluid{
|
||||||
min-width: 500px;
|
padding-right: 0;
|
||||||
|
padding-left: 0;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-left: auto;
|
||||||
|
text-align: center;
|
||||||
|
vertical-align: middle;
|
||||||
|
margin-top: 10vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
div.row{
|
div.row{
|
||||||
justify-content:center;
|
justify-content:center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
div.row h1{
|
div.row h1{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
@@ -24,7 +33,6 @@ div.row h1{
|
|||||||
font-size: 50pt;
|
font-size: 50pt;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border-radius: 100px;
|
border-radius: 100px;
|
||||||
margin-top: 5vh;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.row h2{
|
div.row h2{
|
||||||
@@ -48,23 +56,16 @@ img{
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
border: #fe5f55;
|
border: #fe5f55;
|
||||||
}
|
}
|
||||||
|
#mainpage{
|
||||||
|
vertical-align: middle;
|
||||||
.container{
|
|
||||||
padding-right: 0;
|
|
||||||
padding-left: 0;
|
|
||||||
margin-right: auto;
|
|
||||||
margin-left: auto;
|
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*Small devices (landscape phones, 576px and up) */
|
||||||
/* Small devices (landscape phones, 576px and up) */
|
|
||||||
@media (max-width: 576px) {
|
@media (max-width: 576px) {
|
||||||
|
|
||||||
img{
|
img{
|
||||||
max-width: 200px;
|
max-width: 200px;
|
||||||
height: auto;
|
height: auto;
|
||||||
margin-top: 2vh;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.row h1{
|
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) {
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -11,23 +11,31 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container-fluid">
|
<div class="container-fluid">
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<img src="{{url_for('static', filename='img/love2.jpg')}}">
|
<img src="{{url_for('static', filename='img/love2.jpg')}}">
|
||||||
</div>
|
</div></div>
|
||||||
<div class="row">
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="row ">
|
||||||
|
|
||||||
<h1>ТЬМООООООК</h1>
|
<h1>ТЬМООООООК</h1>
|
||||||
</div>
|
</div></div>
|
||||||
<div class="row">
|
</div>
|
||||||
|
<div class="row ">
|
||||||
|
|
||||||
<h2>Мы вместе {{days}} дней </h>
|
<h2>Мы вместе {{days}} дней </h>
|
||||||
</div>
|
</div></div>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<button class="btn btn-primary" id="backbtn" onClick="window.location.href='{{ url_for( 'index' ) }}';">На главную</button>
|
<button class="btn btn-primary" id="backbtn" onClick="window.location.href='{{ url_for( 'index' ) }}';">На главную</button>
|
||||||
</div>
|
</div>
|
||||||
|
</div></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user