mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
Improvements to home page feature list
This commit is contained in:
parent
96c0147db1
commit
de106cf291
|
@ -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">
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue