Skip to content

Commit c849dc0

Browse files
LoganDupontgeromegrignon
authored andcommittedApr 10, 2025
feat: add bluesky for community
1 parent 166ca81 commit c849dc0

File tree

12 files changed

+102
-3
lines changed

12 files changed

+102
-3
lines changed
 

‎.github/ISSUE_TEMPLATE/add-community.yml

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ body:
3333
description: >-
3434
optional, can be provided as an image on a pull request for better
3535
quality
36+
- type: input
37+
id: bluesky
38+
attributes:
39+
label: Bluesky
3640
- type: input
3741
id: twitter
3842
attributes:

‎CONTRIBUTING.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export interface Community {
5252
url: string | null;
5353
mediaChannel: MediaChannel | null;
5454
logo: string | null;
55+
bluesky: string | null;
5556
twitter: string | null;
5657
linkedin: string | null;
5758
callForPapers: string | null;

‎angular-hub/src/app/components/cards/community-card.component.ts

+31-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { DatePipe, NgOptimizedImage, TitleCasePipe } from '@angular/common';
12
import {
23
ChangeDetectionStrategy,
34
Component,
45
computed,
56
input,
67
} from '@angular/core';
7-
import { DatePipe, NgOptimizedImage, TitleCasePipe } from '@angular/common';
88
import { Community } from '../../../models/community.model';
99

1010
@Component({
@@ -114,6 +114,21 @@ import { Community } from '../../../models/community.model';
114114
/>
115115
</a>
116116
}
117+
@if (community().blueskyUrl) {
118+
<a
119+
class="rounded-xl bg-[#344255] hover:bg-[#4C5765] p-2"
120+
[attr.href]="community().blueskyUrl"
121+
target="_blank"
122+
title="Bluesky URL"
123+
>
124+
<img
125+
ngSrc="/assets/icons/bluesky-icon.svg"
126+
alt=""
127+
height="30"
128+
width="30"
129+
/>
130+
</a>
131+
}
117132
@if (community().twitterUrl) {
118133
<a
119134
class="rounded-xl bg-[#344255] hover:bg-[#4C5765] p-2"
@@ -207,6 +222,21 @@ import { Community } from '../../../models/community.model';
207222
/>
208223
</a>
209224
}
225+
@if (community().blueskyUrl) {
226+
<a
227+
class="rounded-xl bg-[#344255] p-2"
228+
[attr.href]="community().blueskyUrl"
229+
target="_blank"
230+
title="Bluesky URL"
231+
>
232+
<img
233+
ngSrc="/assets/icons/bluesky-icon.svg"
234+
alt=""
235+
height="20"
236+
width="20"
237+
/>
238+
</a>
239+
}
210240
@if (community().twitterUrl) {
211241
<a
212242
class="rounded-xl bg-[#344255] p-2"

‎angular-hub/src/models/community.model.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { Event } from './event.model';
2-
import { EventType } from './event-type.model';
32

43
export interface Community {
54
name: string;
@@ -10,6 +9,7 @@ export interface Community {
109
eventsUrl: string | null;
1110
websiteUrl: string | null;
1211
organizersUrl: string | null;
12+
blueskyUrl: string | null;
1313
twitterUrl: string | null;
1414
linkedinUrl: string | null;
1515
youtubeUrl: string | null;

0 commit comments

Comments
 (0)