Skip to content

Commit 6970933

Browse files
committed
feat: add event for AngularNYC
1 parent 36a5747 commit 6970933

File tree

2 files changed

+34
-7
lines changed

2 files changed

+34
-7
lines changed

public/assets/data/events.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,7 @@
11231123
},
11241124
{
11251125
"name": null,
1126-
"organizerId": "angularnyc",
1126+
"organizerId": "angular-nyc",
11271127
"type": "meetup",
11281128
"location": null,
11291129
"date": "2023-09-28",
@@ -1137,7 +1137,7 @@
11371137
},
11381138
{
11391139
"name": "AngularNYC, June 2025",
1140-
"organizerId": "angularnyc",
1140+
"organizerId": "angular-nyc",
11411141
"type": "meetup",
11421142
"location": "New York, USA",
11431143
"date": "2025-06-03",
@@ -2409,5 +2409,19 @@
24092409
"isRemote": true,
24102410
"isOnsite": true,
24112411
"location": "Salt Lake City, UT"
2412+
},
2413+
{
2414+
"name": "AngularNYC, September 2025",
2415+
"organizerId": "angular-nyc",
2416+
"type": "meetup",
2417+
"location": "New York, USA",
2418+
"date": "2025-09-18",
2419+
"language": "English",
2420+
"isFree": true,
2421+
"isRemote": false,
2422+
"isOnsite": true,
2423+
"callForPapersUrl": null,
2424+
"callForPapersDueDate": null,
2425+
"url": "https://www.meetup.com/angularnyc/events/310258766/"
24122426
}
24132427
]

src/app/components/cards/event-card.ts

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { DatePipe, NgOptimizedImage } from '@angular/common';
12
import {
23
ChangeDetectionStrategy,
34
Component,
45
computed,
56
input,
67
} from '@angular/core';
7-
import { DatePipe, NgOptimizedImage } from '@angular/common';
88
import { CommunityEvent } from '../../../models/community-event.model';
99

1010
@Component({
@@ -45,7 +45,10 @@ import { CommunityEvent } from '../../../models/community-event.model';
4545
>
4646
@if (!event().isFree) {
4747
<div class="flex flex-col">
48-
<div class="text-sm text-gray-500 dark:text-gray-200" i18n="@@event-card.starting-from">
48+
<div
49+
class="text-sm text-gray-500 dark:text-gray-200"
50+
i18n="@@event-card.starting-from"
51+
>
4952
Starting from
5053
</div>
5154
<div class="font-bold text-[#26A0D9] flex items-end gap-1">
@@ -63,15 +66,25 @@ import { CommunityEvent } from '../../../models/community-event.model';
6366
</div>
6467
} @else {
6568
<div class="flex flex-col">
66-
<div class="text-sm text-gray-500 dark:text-gray-200" i18n="@@event-card.registration">
69+
<div
70+
class="text-sm text-gray-500 dark:text-gray-200"
71+
i18n="@@event-card.registration"
72+
>
6773
Registration
6874
</div>
69-
<div class="font-bold text-2xl text-[#26A0D9]" i18n="@@event-card.fee">Free</div>
75+
<div
76+
class="font-bold text-2xl text-[#26A0D9]"
77+
i18n="@@event-card.fee"
78+
>
79+
Free
80+
</div>
7081
</div>
7182
}
7283
@if (event().attendeesCount) {
7384
<div class="flex flex-col items-center">
74-
<div class="text-sm text-gray-500" i18n="@@event-card.attendees">Attendees</div>
85+
<div class="text-sm text-gray-500" i18n="@@event-card.attendees">
86+
Attendees
87+
</div>
7588
<div class="text-sm font-bold">{{ event().attendeesCount }}</div>
7689
</div>
7790
}

0 commit comments

Comments
 (0)