Skip to content

Commit

Permalink
add simplex to community socials
Browse files Browse the repository at this point in the history
  • Loading branch information
secondl1ght committed Jun 21, 2024
1 parent b3a1ea4 commit d614ee5
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/AreaPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@
linkedin = area['contact:linkedin'];
rss = area['contact:rss'];
signal = area['contact:signal'];
simplex = area['contact:simplex'];
if (area['tips:lightning_address']) {
lightning = {
Expand Down Expand Up @@ -283,6 +284,7 @@
let linkedin: string | undefined;
let rss: string | undefined;
let signal: string | undefined;
let simplex: string | undefined;
let lightning: { destination: string; type: TipType } | undefined;
let eventElements: ActivityEvent[] = [];
Expand Down Expand Up @@ -368,6 +370,7 @@
{linkedin}
{rss}
{signal}
{simplex}
/>
{:else}
<div class="flex flex-wrap items-center justify-center">
Expand Down
2 changes: 2 additions & 0 deletions src/components/CommunityCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
$: linkedin = tags['contact:linkedin'] && tags['contact:linkedin'];
$: rss = tags['contact:rss'] && tags['contact:rss'];
$: signal = tags['contact:signal'] && tags['contact:signal'];
$: simplex = tags['contact:simplex'] && tags['contact:simplex'];
$: tip =
(tags['tips:lightning_address'] && {
destination: tags['tips:lightning_address'],
Expand Down Expand Up @@ -77,6 +78,7 @@
{linkedin}
{rss}
{signal}
{simplex}
style="border-t border-t-statBorder p-4 w-full"
/>
</div>
6 changes: 6 additions & 0 deletions src/components/Socials.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
export let linkedin: undefined | string = undefined;
export let rss: undefined | string = undefined;
export let signal: undefined | string = undefined;
export let simplex: undefined | string = undefined;
export let style: undefined | string = undefined;
Expand Down Expand Up @@ -122,4 +123,9 @@
<img src="/icons/socials/signal.svg" alt="signal" class="h-10 w-10 rounded-full" />
</a>
{/if}
{#if simplex}
<a href={simplex} target="_blank" rel="noreferrer" class="m-1">
<img src="/icons/socials/simplex.svg" alt="simplex" class="h-10 w-10 rounded-full" />
</a>
{/if}
</div>
1 change: 1 addition & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export type AreaTags = {
['contact:linkedin']?: string;
['contact:rss']?: string;
['contact:signal']?: string;
['contact:simplex']?: string;
['tips:lightning_address']?: string;
['tips:url']?: string;
sponsor?: boolean;
Expand Down
3 changes: 2 additions & 1 deletion src/routes/communities/map/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@
facebook: community.tags['contact:facebook'],
linkedin: community.tags['contact:linkedin'],
rss: community.tags['contact:rss'],
signal: community.tags['contact:signal']
signal: community.tags['contact:signal'],
simplex: community.tags['contact:simplex']
}
});
}
Expand Down
16 changes: 16 additions & 0 deletions static/icons/socials/simplex.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 d614ee5

Please sign in to comment.