Improvements to home page feature list

This commit is contained in:
Drew DeVault 2020-08-14 10:28:15 -04:00
parent 96c0147db1
commit de106cf291
2 changed files with 30 additions and 19 deletions

View File

@ -20,30 +20,31 @@
<a href="{{oauth_url}}"> <a href="{{oauth_url}}">
Log in {{icon('caret-right')}} Log in {{icon('caret-right')}}
</a> </a>
to get started. to get started, or check out some of our featured projects:
</p> </p>
<hr />
<h2>Featured projects</h2>
</div> </div>
</div> </div>
<div class="row event-list"> <div class="row" style="margin-top: 1rem">
{% for feature in features %} <div class="col-md-12">
<div class="col-md-6"> <h3>Featured projects</h3>
<div class="event"> <div class="event-list feature-list">
<h5> {% for feature in features %}
<span class="text-muted" <div class="event">
>{{feature.project.owner.canonical_name}}/</span><a <h5>
href="{{url_for("projects.summary_GET", <span class="text-muted"
owner=feature.project.owner.canonical_name, >{{feature.project.owner.canonical_name}}/</span><a
project_name=feature.project.name)}}" href="{{url_for("projects.summary_GET",
>{{feature.project.name}}</a> owner=feature.project.owner.canonical_name,
</h5> project_name=feature.project.name)}}"
<blockquote> >{{feature.project.name}}</a>
{{feature.summary | md}} </h5>
</blockquote> <blockquote>
{{feature.summary | md}}
</blockquote>
</div>
{% endfor %}
</div> </div>
</div> </div>
{% endfor %}
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-4 offset-md-8"> <div class="col-md-4 offset-md-8">

View File

@ -124,3 +124,13 @@
max-width: 100%; max-width: 100%;
} }
} }
.feature-list {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 1rem;
.event {
margin: 0;
}
}