Browse Source

Update projects template

pull/10/head
Hironsan 6 years ago
parent
commit
a25c26b15f
2 changed files with 101 additions and 5 deletions
  1. 13
      app/server/static/css/forum.css
  2. 93
      app/server/templates/projects.html

13
app/server/static/css/forum.css

@ -79,4 +79,17 @@ p {
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
}
.is-shady {
animation: flyintoright .4s backwards;
background: #fff;
box-shadow: rgba(0, 0, 0, .1) 0 1px 0;
border-radius: 4px;
display: inline-block;
margin: 10px;
position: relative;
transition: all .2s ease-in-out;
}
.is-shady:hover {
box-shadow: 0 10px 16px rgba(0, 0, 0, .13), 0 6px 6px rgba(0, 0, 0, .19);
}

93
app/server/templates/projects.html

@ -1,4 +1,82 @@
{% extends "base.html" %} {% load static %} {% block content %}
{% extends "base.html" %}
{% load static %}
{% block content %}
<section class="hero project-image">
<div class="container">
<div class="columns">
<div class="column is-12">
<h1 class="title is-1 has-text-white">
Hello, {{ user.get_username | title }}.
</h1>
<h2 class="subtitle is-4 has-text-white">
I hope you are having a great day!
</h2>
<p>
<a class="button is-medium is-primary">
Create Project
</a>
</p>
</div>
</div>
</div>
</section>
<div class="container">
<div class="columns" style="margin-top:0">
<div class="column is-3">
<aside class="menu">
<p class="menu-label">
Categories
</p>
<ul class="menu-list">
<li>
<a class="is-active">All</a>
</li>
<li>
<a>Document Classification</a>
</li>
<li>
<a>Sequence Labeling</a>
</li>
<li>
<a>Sequence to sequence</a>
</li>
</ul>
</aside>
</div>
<div class="column is-9">
{% for project in object_list %}
{% if forloop.counter0|divisibleby:3 %}
<div class="columns features">
{% endif %}
<div class="column is-4">
<div class="card is-shady">
<div class="card-image">
<figure class="image is-4by3">
<img src="https://source.unsplash.com/RWnpyGtY1aU" alt="Placeholder image" class="modal-button" data-target="modal-image2">
</figure>
</div>
<div class="card-content">
<div class="content">
<h4>
<a href="{% url 'annotation' project.id %}">{{ project.name }}</a>
</h4>
<p>
{{ project.description|truncatechars:50 }}
</p>
</div>
</div>
</div>
{% if forloop.counter|divisibleby:3 or forloop.counter|length == object_list|length %}
</div>
{% endif %}
</div>
{% endfor %}
</div>
</div>
</div>
<!--
<section class="container" id="root">
<div class="columns">
@ -40,11 +118,15 @@
<a href="{% url 'annotation' project.id %}">{{ project.name }}</a>
<p>{{ project.description|truncatechars:50 }}</p>
</td>
<td style="vertical-align:middle;"><span class="tag is-danger">High</span></td>
<td style="vertical-align:middle;"><progress class="progress is-primary" value="70" max="100">30%</progress></td>
<td style="vertical-align:middle;">
<span class="tag is-danger">High</span>
</td>
<td style="vertical-align:middle;">
<progress class="progress is-primary" value="70" max="100">30%</progress>
</td>
<td style="vertical-align:middle;">
<a class="button is-link is-small" href="{% url 'project-admin' project.id %}">
<i class="fas fa-cog"></i>&nbsp;Settings
<i class="fas fa-cog"></i>&nbsp;Settings
</a>
</td>
</tr>
@ -59,4 +141,5 @@
</div>
</div>
</section>
{% endblock %}
-->
{% endblock %}
Loading…
Cancel
Save