Skip to content

Commit

Permalink
feat: add newest spartans
Browse files Browse the repository at this point in the history
  • Loading branch information
goetzrobin committed Nov 16, 2023
1 parent 1a00a01 commit a880b38
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ Our initial 300 contributors and sponsors are featured here and on the front pag
10. [jeremy-js-devweb](https://github.com/jeremy-js-devweb)
11. [heddendorp](https://github.com/heddendorp)
12. [tutkli](https://github.com/tutkli)
13. [Pascalmh](https://github.com/Pascalmh)
14. [okkindel](https://github.com/okkindel)
15. [marcjulian](https://github.com/marcjulian)
16. [elite-benni](https://github.com/elite-benni)
17. [oidre](https://github.com/oidre)

[Become a spartan today!](https://github.com/sponsors/goetzrobin)

Expand Down
23 changes: 12 additions & 11 deletions apps/app/src/app/pages/(home)/components/three-hundred.component.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
import { Component, TrackByFunction } from '@angular/core';
import { Component } from '@angular/core';
import { ThreeHundredItemComponent } from './th-item.component';
import { NgForOf } from '@angular/common';
import { ThreeHundredItemPlaceholderComponent } from './th-item-placeholder.component';

@Component({
selector: 'spartan-three-hundred',
standalone: true,
imports: [ThreeHundredItemComponent, NgForOf, ThreeHundredItemPlaceholderComponent],
imports: [ThreeHundredItemComponent, ThreeHundredItemPlaceholderComponent],
host: {
class: 'grid gap-2 grid-cols-5 md:grid-cols-10',
},
template: `
<spartan-th-item
class="mb-2"
*ngFor="let contributor of _contributors; trackBy: _trackBy"
[href]="'https://github.com/' + contributor"
>{{ contributor }}</spartan-th-item
>
<spartan-th-item-placeholder class="mb-2" *ngFor="let item of _rest; trackBy: _trackBy" />
@for (contributor of _contributors;track contributor) {
<spartan-th-item class="mb-2" [href]="'https://github.com/' + contributor">{{ contributor }} </spartan-th-item>
} @for (item of _rest;track item) {
<spartan-th-item-placeholder class="mb-2" />
}
`,
})
export class ThreeHundredComponent {
Expand All @@ -34,7 +31,11 @@ export class ThreeHundredComponent {
'jeremy-js-devweb',
'heddendorp',
'tutkli',
'Pascalmh',
'okkindel',
'marcjulian',
'elite-benni',
'oidre',
];
protected readonly _rest = Array(300 - this._contributors.length).map((x, i) => i);
protected readonly _trackBy: TrackByFunction<number | string> = (n) => n;
}

1 comment on commit a880b38

@vercel
Copy link

@vercel vercel bot commented on a880b38 Nov 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

spartan – ./

spartan-goetzrobin.vercel.app
www.spartan.ng
spartan.ng
spartan-git-main-goetzrobin.vercel.app

Please sign in to comment.