challenge cards fix

This commit is contained in:
Laura 2017-10-08 15:05:06 +03:00
parent 010f3fcc59
commit b33e8846ac

View File

@ -31,28 +31,35 @@
</div> </div>
<div class="row container challenges"> <div class="row container challenges">
<div class="row">
{% for challenge in challenges %} {% for challenge in challenges %}
<div class="col s12 m6"> <div class="col s12 m4">
<div class="card small"> <div class="card" style="height:300px;">
<div class="card-content">
<div class="card-content"> <div class="row" style="height:160px;">
<div class="card-title">{{ challenge.name }}</div> <div class="col s12 m12">
<p>{{ challenge.description }}</p> <div class="card-title"><b>{{ challenge.name }}</b></div>
</br> <p style="text-align: justify; max-height: 100px; overflow: scroll;">{{ challenge.description }}</p>
<div> <div style="padding-top: 15px;">
{% for tag in challenge.tags.all %} {% for tag in challenge.tags.all %}
<div class="chip">{{ tag.name }}</div> <div class="chip">{{ tag.name }}</div>
{% endfor %} {% endfor %}
</div> </div>
</br> </div>
<div class="center-align"> </div>
<a href="/challenge/{{ challenge.id }}" class="btn-large">I can do it</a> </br>
<div class="row">
<div class="col s12 m12">
<div class="center-align">
<a href="/challenge/{{ challenge.id }}" class="btn-large">I can do it</a>
</div>
</div>
</div>
</div>
</div> </div>
</div> </div>
</div> {% endfor %}
</div> </div>
{% endfor %}
</div> </div>
<!-- dashboard custom --> <!-- dashboard custom -->