diff --git a/lab2/public/python.jpg b/lab2/public/python.jpg new file mode 100644 index 0000000..3eff43a Binary files /dev/null and b/lab2/public/python.jpg differ diff --git a/lab2/public/style.css b/lab2/public/style.css index 68204d5..5b330d0 100644 --- a/lab2/public/style.css +++ b/lab2/public/style.css @@ -14,9 +14,10 @@ header { } header #header-image { - height: 180px; + height: 250px; background: url('./images/maestrul.jpg'); background-size: cover; + background-position: center top; /* or "center center" */ padding: 1rem 2rem; text-align: right; } @@ -44,7 +45,10 @@ header #header-image h1 { border-radius: 15px; } .site-header .navbar-nav .nav-link.active { - font-weight: 500; + font-weight: bold; + background-color: #610; + color: #ffffff !important; + border-radius: 15px; } main { diff --git a/lab2/server.py b/lab2/server.py index 20073ab..c3f8fe0 100644 --- a/lab2/server.py +++ b/lab2/server.py @@ -1,6 +1,6 @@ from flask import Flask, request, render_template, redirect -app = Flask(__name__, static_folder="public") +app = Flask(__name__, static_url_path="/public", static_folder="public") @app.route("/") diff --git a/lab2/templates/404.html b/lab2/templates/404.html index f6a8743..7caaea1 100644 --- a/lab2/templates/404.html +++ b/lab2/templates/404.html @@ -1,7 +1,9 @@ - - Hello World - - -

404 NOT FOUND

- \ No newline at end of file + + + Hello World + + +

404 NOT FOUND

+ + \ No newline at end of file diff --git a/lab2/templates/second.html b/lab2/templates/second.html index 26e9fdf..a14000d 100644 --- a/lab2/templates/second.html +++ b/lab2/templates/second.html @@ -52,7 +52,6 @@

Homepage

{{mycontent}} -

Lorem ipsum dolor sit amet consectetur adipiscing elit. Adipiscing elit quisque faucibus ex sapien vitae pellentesque. Vitae pellentesque sem placerat in id cursus mi. Cursus mi pretium tellus duis convallis tempus leo. Tempus leo eu aenean sed diam urna tempor. Urna tempor pulvinar vivamus fringilla lacus nec metus.