Skip to content

feat: add bluesky for community #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/add-community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ body:
description: >-
optional, can be provided as an image on a pull request for better
quality
- type: input
id: bluesky
attributes:
label: Bluesky
- type: input
id: twitter
attributes:
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export interface Community {
url: string | null;
mediaChannel: MediaChannel | null;
logo: string | null;
bluesky: string | null;
twitter: string | null;
linkedin: string | null;
callForPapers: string | null;
Expand Down
32 changes: 31 additions & 1 deletion angular-hub/src/app/components/cards/community-card.component.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { DatePipe, NgOptimizedImage, TitleCasePipe } from '@angular/common';
import {
ChangeDetectionStrategy,
Component,
computed,
input,
} from '@angular/core';
import { DatePipe, NgOptimizedImage, TitleCasePipe } from '@angular/common';
import { Community } from '../../../models/community.model';

@Component({
Expand Down Expand Up @@ -114,6 +114,21 @@ import { Community } from '../../../models/community.model';
/>
</a>
}
@if (community().blueskyUrl) {
<a
class="rounded-xl bg-[#344255] hover:bg-[#4C5765] p-2"
[attr.href]="community().blueskyUrl"
target="_blank"
title="Bluesky URL"
>
<img
ngSrc="/assets/icons/bluesky-icon.svg"
alt=""
height="30"
width="30"
/>
</a>
}
@if (community().twitterUrl) {
<a
class="rounded-xl bg-[#344255] hover:bg-[#4C5765] p-2"
Expand Down Expand Up @@ -207,6 +222,21 @@ import { Community } from '../../../models/community.model';
/>
</a>
}
@if (community().blueskyUrl) {
<a
class="rounded-xl bg-[#344255] p-2"
[attr.href]="community().blueskyUrl"
target="_blank"
title="Bluesky URL"
>
<img
ngSrc="/assets/icons/bluesky-icon.svg"
alt=""
height="20"
width="20"
/>
</a>
}
@if (community().twitterUrl) {
<a
class="rounded-xl bg-[#344255] p-2"
Expand Down
2 changes: 1 addition & 1 deletion angular-hub/src/models/community.model.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Event } from './event.model';
import { EventType } from './event-type.model';

export interface Community {
name: string;
Expand All @@ -10,6 +9,7 @@ export interface Community {
eventsUrl: string | null;
websiteUrl: string | null;
organizersUrl: string | null;
blueskyUrl: string | null;
twitterUrl: string | null;
linkedinUrl: string | null;
youtubeUrl: string | null;
Expand Down
Loading