diff --git a/static/script.js b/static/script.js index e69de29..b844220 100644 --- a/static/script.js +++ b/static/script.js @@ -0,0 +1,11 @@ +function logout() { + window.location.href = "/logout"; +} + +function addme() { + +} + +function removeme() { + +} \ No newline at end of file diff --git a/static/style.css b/static/style.css index aed869c..2827680 100644 --- a/static/style.css +++ b/static/style.css @@ -23,7 +23,7 @@ h2 { } .next-meal { - width: 64%; + width: 45%; height: 100%; position: absolute; top: 0; @@ -151,4 +151,62 @@ h2 { left: 0; width: 100%; text-align: center; +} + +.user-info { + width: 19%; + height: 100%; + position: absolute; + left: 80%; +} + +.user-card { + height: 80pt; + position: relative; + background-color: #F1EDEA; + -webkit-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5); + -moz-box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5); + box-shadow: 2px 2px 5px 0px rgba(0,0,0,0.5); +} + +.user-card img{ + width: 50pt; + height: auto; + position: absolute; + top: 50%; + left: 8pt; + margin-top: -25pt; +} + +.user-card span { + font-size: 16pt; + position: absolute; + top: 30%; + left: 75pt; + margin-top: -8pt; + width: 90pt; + text-align: center; +} + +.logout-button { + width: 90pt; + height: 25pt; + background: #EE7500; + position: absolute; + color: #F1EDEA; + left: 75pt; + top: 70%; + margin-top: -13pt; + cursor: pointer; +} + +.logout-button span { + font-size: 12pt; + position: absolute; + top: 50%; + margin-top: -6pt; + left: 0; + width: 100%; + text-align: center; + color: #EAEAEA; } \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 4cf18cb..d8574b7 100644 --- a/templates/index.html +++ b/templates/index.html @@ -34,20 +34,38 @@
{{ cook.name }} + {% if cook.name == current_user.name %}
CONFIRM
BAIL
+ {% endif %}

Eaters

{% for eater in eaters %}
- - {{ eater.name }} + + {{ eater }}
{% endfor %} -
-
- Add me -
+ {% if cook.name != current_user.name %} + {% if not current_user.name in eaters %} +
+
+ Add me +
+ {% else %} +
+
+ Remove me +
+ {% endif %} + {% endif %} + +
+
+ + {{current_user.name}} +
LOGOUT
+
\ No newline at end of file