Browse Source

Merge branch 'master' of ssh://vvvvvvaria.org:12345/alicestrt/vvvw

master
nglk 4 years ago
parent
commit
4651622cd5
  1. 4
      hello.py
  2. 23
      static/css/style.css
  3. 19
      templates/base.html
  4. 48
      templates/hello.html

4
hello.py

@ -18,10 +18,10 @@ def dated_url_for(endpoint, **values):
@app.route('/')
def hello_world():
return 'VVVW'
return render_template('hello.html')
# @app.route('/hello/<name>')
@app.route('/hello/<name>')
@app.route('/perspectiveB/')
def perspectiveB():
return render_template('perspectiveB.html')

23
static/css/style.css

@ -1,4 +1,27 @@
/* Everything*/
* {
border: 1px black solid;
}
/*Main areas*/
.map_area {
text-align: center;
margin-top: 200px;
}
.image_area {
margin-top: 10px;
padding-right: 20px;
}
.image_area img {
width: 200px;
height: 150px;
}
.iframe_area {
margin-top: 10px;
padding-right: 20px;
}
#video1 {
margin-top: 300px;
}

19
templates/base.html

@ -0,0 +1,19 @@
<!doctype html>
<html>
<head>
{% block head %}
<title>{% block title %}VVVW{% endblock %}</title>
<link rel="stylesheet" href="../static/css/style.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
{% endblock %}
</head>
<body>
<div class="container-fluid">
{% block body %} {% endblock %}
</div>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>

48
templates/hello.html

@ -1,23 +1,29 @@
<!doctype html>
<html>
<style>
#draggable {
position: absolute;
}
</style>
<head>
<title>Hello from Flask</title>
{% if name %}
<h1>Hello {{ name }}!</h1>
{% else %}
<h1>VVVW</h1>
{% endif %}
</head>
{% extends "base.html" %}
{% block title %}Hello{% endblock %}
{% block body %}
<div class="row">
<div class="col-md-9">
<div class="map_area">Map area</div>
</div>
<div class="col-md-3">
<div class="row">
<div class="col-md-10">
<div class="image_area">
<p>image</p>
<img src="../static/images/test_small.jpeg" alt="poem">
</div>
</div>
</div>
<div class="row">
<div class="col-md-10">
<div class="iframe_area">
<p>iframe area</p>
<iframe src="../static/images/abstract.pdf" width="300px" height="500px"></iframe>
</div>
</div>
<body>
<div id="draggable">
<img src="../static/images/test1.jpeg" width='500px' alt="test">
</div>
</div>
<script src="../static/js/draggable.js"></script>
</body>
</html>
</div>
{% endblock %}

Loading…
Cancel
Save