Skip to content

Commit

Permalink
index.html, student_login.html, teacher_l
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyneira committed Aug 31, 2017
1 parent 72dc48a commit 742c287
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 13 deletions.
Binary file added static/images/lc-banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
14 changes: 13 additions & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@
.dropdown-content{
min-width: 165px;
}
#teacher-card{
margin: 3rem 0 3rem 0;
}
#teacher{
width: 50%;
}
#student-card{
margin: 6rem 0 6rem 0;
}
#student{
width: 30%;
}
</style>
<script>
$(document).ready(function(){
Expand Down Expand Up @@ -79,7 +91,7 @@
</nav>
</div>
</header>
<main class="container">
<main>
{% block content %}
{% endblock %}
</main>
Expand Down
21 changes: 11 additions & 10 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
{% extends 'base.html' %}
{% block content %}
<div class="card small">
<div class="card-content">
<form action="/start_day" method="post">
<div class="row">
<button class="btn waves-effect waves-light cyan right" type="submit" name="action">Start Day</button>
<span class="error">{{ day_err }}</span>
</div>
</form>
<div class="row">
<button class="btn waves-effect waves-light cyan right" type="submit" name="action">Signup</button>
<div class="container" id="card">
<div class="row center">
<form class="col" action="/start_day" method="post">
<div class="row center">
<button class="btn waves-effect waves-light cyan" type="submit" name="action">Start Day</button>
<span class="error">{{ day_err }}</span>
</div>
</form>
<div class="row center">
<button class="btn waves-effect waves-light cyan text-white"><a href="/student_login">Student Login</a></button>
<span class="error">{{ student_err }}</span>
</div>
</div>
</div>
{% endblock %}
4 changes: 3 additions & 1 deletion templates/student_login.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends 'base.html' %}
{% block content %}
<div class="card small">
<div class="container" id="student">
<div class="card small hoverable m6" id="student-card">
<div class="card-content">
{% if students|length == 0 %}
<span class="card-title" >No Students Yet, <a href="/students">Add some Students</a>!</span>
Expand Down Expand Up @@ -34,4 +35,5 @@
{% endif %}
</div>
</div>
</div>
{% endblock %}
4 changes: 3 additions & 1 deletion templates/teacher_login.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{% extends 'base.html' %}
{% block content %}
<div class="card large">
<div class="container" id="teacher">
<div class="card large hoverable m6" id="teacher-card">
<div class="card-tabs text">
<ul class="tabs tabs-fixed-width">
<li class="tab"><a class="{{ login }}" href="#login">Login</a></li>
Expand Down Expand Up @@ -71,4 +72,5 @@
</div>
</div>
</div>
</div>
{% endblock %}

0 comments on commit 742c287

Please sign in to comment.