Skip to content

Commit

Permalink
feat: add and update plug-in icons
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed May 7, 2022
1 parent 21fb2a5 commit 56f5cf4
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 6 deletions.
4 changes: 4 additions & 0 deletions packages/frontend/assets/plug-in.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/frontend/components/icon/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@
position: relative;
inset-block-start: -1px;
}

.icon--rounded {
border-radius: var(--border-radius-small);
}
9 changes: 6 additions & 3 deletions packages/indiekit/views/status.njk
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,19 @@

{%- set storeHtml %}
{%- if publication.store -%}
<a href="{{ publication.store.info.uid }}">{{ publication.store.info.name }}</a>
<a href="{{ publication.store.info.uid }}">
<img class="icon icon--rounded" src="{{ "/assets/" + publication.store.id + "/icon.svg" }}" onerror="this.src='/assets/plug-in.svg'">{{ publication.store.info.name }}
</a>
{%- else -%}
{{ __("noValue") }}
{%- endif -%}
{% endset -%}

{%- set syndicationTargetsHtml %}<ul>{% for target in publication.syndicationTargets -%}
<li>
{%- if target.info.service.photo %}<img class="icon" src="{{ target.info.service.photo }}" width="24" height="24" alt="">{% endif -%}
<a href="{{ target.info.uid }}">{{ target.info.name }}</a>
<a href="{{ target.info.uid }}">
{%- if target.info.service.photo %}<img class="icon icon--rounded" src="{{ target.info.service.photo }}" width="24" height="24" alt="">{% endif -%}{{ target.info.name }}
</a>
</li>
{%- endfor %}</ul>{% endset -%}

Expand Down
4 changes: 4 additions & 0 deletions packages/store-bitbucket/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/store-ftp/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/store-gitea/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/store-github/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions packages/store-gitlab/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/syndicator-internet-archive/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/syndicator-mastodon/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/syndicator-twitter/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 56f5cf4

Please sign in to comment.