From cb16ac8181789967c0d90c90c3d77029fbc3f47d Mon Sep 17 00:00:00 2001 From: s441471 Date: Wed, 28 Nov 2018 11:08:23 +0100 Subject: [PATCH] INQ-15 Make simple view --- .DS_Store | Bin 0 -> 6148 bytes App.py | 19 +++++++ static/.DS_Store | Bin 0 -> 6148 bytes static/style.css | 116 ++++++++++++++++++++++++++++++++++++++++ templates/.DS_Store | Bin 0 -> 6148 bytes templates/index.html | 28 ++++++++++ templates/lecturer.html | 81 ++++++++++++++++++++++++++++ templates/student.html | 76 ++++++++++++++++++++++++++ 8 files changed, 320 insertions(+) create mode 100644 .DS_Store create mode 100644 App.py create mode 100644 static/.DS_Store create mode 100644 static/style.css create mode 100644 templates/.DS_Store create mode 100644 templates/index.html create mode 100644 templates/lecturer.html create mode 100644 templates/student.html diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..86d35b7a3f86f1cb5b82e365fabd2137911661af GIT binary patch literal 6148 zcmeHK&2G~`5T0#AaDspw5Jeo2Rf$`GSZ!$~gye=G(HoKx900X;Y&Di_uN6B)B~9h` zfCu13IQ0SG4R{Qg*-{F)^#TCvPkalY0{{jpVWW*jjnFvh zf~={Y+lWlWNa5rl;zKXu-h#F6&{x=5b-EG1?r1*P`T7G|NQ+S5@>bDT_=uOBV z2NyMjVd-5*TXqXAelD~1rdg`?g>x^B!YuFgez3Lm#Suyf}HPjWX*g0XN8{QylqybBYbPy2k5_?d{~$N|G> z8Lh+4{n_l1wX?U=HTSlydDoon?)JLo_SVz+yk%@Ww4NUv#V4O7Hp)6wPeKRM$h;t9p2XKrDl z0*EoOkw{tqSv6_!4Xw^gNvrW#-PF}AwkCl!R+Th9`SqZl>Pj+~TGgbqX2uJN#R;!0 z>Q8OlxN;;NKr^5jSTzP{e=t!AZH0wIv2|b}t^kM)>=uG``fMN{Q=zS}kccBFOu8aU zSEjBQOuA#gsqAcpg+%ENOkF;hnwhB^3KO$qd{dYMvnA?MGoTr$GO#Y29XkJCF2Da* zopehxpcz;x23TX@4Enevb+#@nj?P*W^$3-O>-s>Aexkv`vpkUG^;2nsQCeuKzCA#KtXp^zKieSC&>6AM0C&~(V($p z&#u>Vo15Ys1F+@G;|;I?FsD1>;9+Wh?mn@z${3N(XFTB=TkNsF8z$A?C!Bjh#xq_q zeC6-9n_;)%ssFTF`uj&1S28Ie1*Cu!kOETR_X>FLrOhuB6{Ua_kOH3y`1hgF9ed%J z7@rP?7y*bgro*_7S%TO+LF|QNA~Q5gDlw^6BZeiN`Brtka7;`(ENSn76#o~76 zTa?3kqM{U#0;dX`=XT-!e@*{k{y!yYCk3Ryzf!X}$S5cI8&DT8dg=1pSnGZTqe+FC^nH2bI1&$UY93=n% literal 0 HcmV?d00001 diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..cdf5301 --- /dev/null +++ b/static/style.css @@ -0,0 +1,116 @@ +main { + height: 100vh; + display: flex; + align-items: center; + justify-content: center; +} +.alertify-notifier .ajs-message.ajs-success { + color: #fff; + background: rgba(91, 189, 114, 0.95); + text-shadow: none !important; + } + +#content { + max-width: 50%; +} +.color--primary { + background-color: rgba(34, 51, 89, 1.0); +} +.header__container, .body__container, .footer__container { + display: flex; + justify-content: center; +} +.card { + width: 60vw; + text-align: center; +} +#questions-list { + margin-top: 0px; + margin-bottom: 0px; +} +#questions-list li { + display: flex; + justify-content: space-between; + padding: 20px 60px 20px 60px; + transition: 0.5s all; +} +#questions-list li:hover { + background-color: white; + color: rgba(34, 51, 89, 1.0); + + padding-top: 20px; + padding-bottom: 20px; +} +ul > li:not(:last-child) { + border-bottom: 1px solid white; +} +.counter { + display: flex; + align-items: center; +} +.counter > i { + padding-right: 10px; +} + +.footer__container--content { + display: flex; + padding-top: 10px !important; + padding-bottom: 10px !important; +} +.footer__container--content > div { + width: 100%; + height: 28px; + line-height: 28px; + transition: 0.5s all; +} +.footer__container__lecturer--content > div { + height: 80px; + display: flex; + align-items: center; + justify-content: center; +} +.footer__container--content > div:not(:last-child) { + border-right: 1px solid white; +} +.footer__container--content > div:hover { + background-color: white; + color: rgba(34, 51, 89, 1.0); +} +#modalAsk > div.modal-footer > a.waves-primary { + background-color: rgba(34, 51, 89, 1.0); +} +.btn-thumb-up { + cursor: pointer; +} +.upper-row { + border-bottom: 1px solid white; +} +.upper-row, .bottom-row { + display: flex; +} +.upper-row > div, .bottom-row > div { + width: 50%; + height: 20vh; + display: flex; + align-items: center; + justify-content: center; + font-size: 22px; + transition: all 0.2s; +} +.upper-row > div:hover, .bottom-row > div:hover +{ + background-color: white; + color: rgba(34, 51, 89, 1.0); +} +#card-title__lecturer { + font-size: 18px; +} +.upper-row > div:nth-child(odd), .bottom-row > div:nth-child(odd) { + border-right: 1px solid white; +} +.small-font { + font-size: 12px; +} +.question-text { + break-after: always; +} \ No newline at end of file diff --git a/templates/.DS_Store b/templates/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..08a5d2ea00f282c59f14c171ef6e08da8a664ad6 GIT binary patch literal 6148 zcmeHK%Sr=55Ukc5f)B_|k8|`Sc+O=B@!;7XkUT(PlR!+sS+w)D22JMS=GJIpgY8%x()(>o~E=E+5e zr>mx=0;xbMkP4&%KUaWvw%YL2G5b^?6-WgR3h4Pz*c7Y4#?g)rc2)uq2OKt|ug_)W zl)x&mab$!hP9-{3qQnrVbG$@e71%gB9TLTd#L6GVi`eR%zgRk?a?CyzNCnyoXzfcI z>HUApzf5nDZz=(y2|`4BKcvP%ViL4kMf2sj1+ literal 0 HcmV?d00001 diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..e1b23e6 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,28 @@ + + + + {% block head %} + + + + {% block title %}{% endblock %} + + + + + + + {% endblock %} + + +
+
{% block content %}{% endblock %}
+
+ + + + + + {% block script %}{% endblock %} + + \ No newline at end of file diff --git a/templates/lecturer.html b/templates/lecturer.html new file mode 100644 index 0000000..ce240f7 --- /dev/null +++ b/templates/lecturer.html @@ -0,0 +1,81 @@ +{% extends "index.html" %} +{% block title %}Panel prowadzącego{% endblock %} + +{% block content %} +
+
+
+
+ Panel prowadzącego +
+
+
+
+
+
+
+
+
+ Proszę zaznaczyć pytanie i wybrać akcję +
+
+ Pytanie 1 + 12 głosów +
+
+ Pytanie 2 + 169 głosów +
+
+
+
+ Pytanie 3 + 75 głosów +
+
+ Pytanie 4 + 39 głosów +
+
+
+
+
+
+
+ + +{% endblock %} + +{%block script%} + +{%endblock%} \ No newline at end of file diff --git a/templates/student.html b/templates/student.html new file mode 100644 index 0000000..85f9222 --- /dev/null +++ b/templates/student.html @@ -0,0 +1,76 @@ +{% extends "index.html" %} +{% block title %}Panel studenta{% endblock %} + +{% block content %} +
+
+
+
+ Panel studenta +
+
+
+
+
+
+
+
+
+ Pytania studentów +
    +
  • Pytanie odnośnie zadania domowego 12.11.2018thumb_up12
  • +
  • Zagadnienia dotyczące egzaminuthumb_up45
  • +
  • Czy 12 listopada odbędą się zajęcia?thumb_up157
  • +
+
+
+
+
+
+ + + +{% endblock %} + +{%block script%} + +{%endblock%} \ No newline at end of file