From 8b9db01a45a2a649684b6c229c428187d4edaf29 Mon Sep 17 00:00:00 2001 From: alicestrt Date: Wed, 9 Sep 2020 17:19:32 +0200 Subject: [PATCH] created third perspective --- hello.py | 5 ++++- static/css/style.css | 26 ++++++++++++++++++++++---- templates/perspectiveA.html | 4 +++- templates/perspectiveC.html | 18 ++++++++++++++++++ 4 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 templates/perspectiveC.html diff --git a/hello.py b/hello.py index 86bb0ff..01e9476 100644 --- a/hello.py +++ b/hello.py @@ -18,7 +18,7 @@ def dated_url_for(endpoint, **values): @app.route('/') def hello_world(): - return 'Hello, World!' + return 'VVVW' # @app.route('/hello/') @@ -28,3 +28,6 @@ def perspectiveB(): @app.route('/perspectiveA/') def perspectiveA(): return render_template('perspectiveA.html') +@app.route('/perspectiveC/') +def perspectiveC(): + return render_template('perspectiveC.html') diff --git a/static/css/style.css b/static/css/style.css index ea92e8d..9264c1c 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -1,7 +1,3 @@ -* { - background-color: gray; -} - #video1 { margin-top: 300px; } @@ -24,3 +20,25 @@ #audio1 { margin-left: 400px; } + +#background_a { + background-image: url("../images/map.png"); + background-repeat: no-repeat; + background-color: silver; +} + + +#poem1 { + width: 40%; + margin-left: 400px; + margin-top: 50px; +} + +#poem1:hover { + background-color: white; +} + +#background_c { + background-image: url("../images/test2_opacity.jpeg"); + +} diff --git a/templates/perspectiveA.html b/templates/perspectiveA.html index 970e678..d4e27ec 100644 --- a/templates/perspectiveA.html +++ b/templates/perspectiveA.html @@ -7,7 +7,8 @@ Perspective A - + +

Perspective A

@@ -19,5 +20,6 @@
+
diff --git a/templates/perspectiveC.html b/templates/perspectiveC.html new file mode 100644 index 0000000..6a06132 --- /dev/null +++ b/templates/perspectiveC.html @@ -0,0 +1,18 @@ + + + + + + + + Perspective A + + +
+

Perspective C

+
+poem +
+
+ +