Skip to content

Commit

Permalink
feat: style preferred workspace members
Browse files Browse the repository at this point in the history
  • Loading branch information
liv committed Aug 10, 2023
1 parent ddd98ca commit f96c9d8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
8 changes: 8 additions & 0 deletions oranda-css/css/pages/workspace_index.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,12 @@ ul.index-grid {

.index-grid .content .index-logo {
@apply relative flex-shrink-0 w-20 h-20;
}

.index-grid li.preferred {
@apply col-span-2;
}

.index-about h2 {
@apply mt-0;
}
12 changes: 11 additions & 1 deletion templates/workspace_index/index.html.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,25 @@
{% block content %}
<ul class="index-grid">
{% for preferred in page.preferred_members %}
<li>
<li class="preferred">
<div class="content">
<div class="index-about">
<h2>{{ preferred.name }}</h2>
{% if preferred.description %}
<div class="index-description">{{ preferred.description }}</div>
{% endif %}
</div>
</div>
<div class="links">
<a href="{{ preferred.slug | generate_link(layout.path_prefix) }}">Website</a>
{% if preferred.repository %}
<a href="{{ preferred.repository }}">Repository</a>
{% endif %}
</div>
</li>
{% endfor %}
</ul>

<ul class="index-grid">
{% for member in page.members %}
<li>
Expand Down

0 comments on commit f96c9d8

Please sign in to comment.