diff --git a/.nfs0000000001aa066600000010 b/.nfs0000000001aa066600000010 new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 7244e12..e3d3995 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[](https://classroom.github.com/online_ide?assignment_repo_id=8703051&assignment_repo_type=AssignmentRepo) +[](https://classroom.github.com/online_ide?assignment_repo_id=8703049&assignment_repo_type=AssignmentRepo) Flask Start OneFile ========================= diff --git a/data.db b/data.db new file mode 100644 index 0000000..72ae65d Binary files /dev/null and b/data.db differ diff --git "a/static/ban\303\241n.jpeg" "b/static/ban\303\241n.jpeg" new file mode 100644 index 0000000..eeb9f93 Binary files /dev/null and "b/static/ban\303\241n.jpeg" differ diff --git a/static/styles.css b/static/styles.css index b83f830..07ad138 100644 --- a/static/styles.css +++ b/static/styles.css @@ -1,5 +1,5 @@ body { - background-color: #e6ab09; + background-color: #ea0079; padding-left: 1em; padding-right: 1em; margin-left: 90px; @@ -8,11 +8,11 @@ body { h1, h2, h3 { clear: both; margin-top: 3em; - color: violet; + color: #0aec0a; } h1 a { - color: #bb8800; + color: #0aec0a; } nav ul { @@ -27,12 +27,12 @@ nav ul { } nav ul li a { display: block; - color: white; - background-color: #324b79; + color: rgb(0, 30, 255); + background-color: #7bff00; border-radius: 25px 50px 0px; padding: 1ex 2ex; } nav ul li a:hover { - color: #324b72; + color: #5e12a6; background-color: white; } nav img { @@ -46,6 +46,7 @@ footer { background-color: #ecc8f0; } .login { + display: block; float: right; width: 30%; border: orange solid 2px; @@ -59,21 +60,19 @@ footer { background-color: lightblue; } -.flash { +.flash{ display: block; - position: absolute; + position: absolute; + left: 30%; + top: 1ex; width: 40%; - border: 2px orangered solid; - border-radius: 20px; + border: 2px orange solid; padding: 2ex; - left: 30%; - top: 0; - + border-radius: 20px; + font-weight: bold; } - .error{ - background-color: red; - color: black; - + background-color: white; + color: red; } /*# sourceMappingURL=styles.css.map */ diff --git a/templates/banan.html b/templates/banan.html new file mode 100644 index 0000000..38ec8a9 --- /dev/null +++ b/templates/banan.html @@ -0,0 +1,28 @@ + +{% extends 'base.html' %} + +{%block title%}Informace{%endblock%} + +{% block obsah %} + +
BMI={{bmi}}
+ + + + + + + + +{% endblock obsah %} diff --git a/templates/base.html b/templates/base.html index 90358c8..4eae675 100644 --- a/templates/base.html +++ b/templates/base.html @@ -16,38 +16,33 @@- -
- -{% if 'uzivatel' in session %} - jsi prihlaseny jako {{session ['uzivatel']}} odhlasit se - +{% if 'uživatel' in session %} +jsi přihlášen jako Najvetší lupič {% else %} -nejsi prihlaseny Prihlas se +Jaaaaj!!! Nejsi přihlášen Přihlas se! {% endif %}
- - - - +{% for category,message in get_flashed_messages(with_categories=true) %} ++ +{{message}} +
+{% endfor %} - -{% for category, message in get_flashed_messages(with_categories=true) %} -{{message}}
-{% endfor %} {% block obsah %} @@ -79,6 +74,7 @@ {#{% endfilter %}#} + -