Skip to content

Commit

Permalink
Add to more materials list
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-stamate committed Dec 17, 2023
1 parent c5a1224 commit 98bfeea
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
<div *ngFor="let materials of moreMaterials" class="flex flex-col gap-4 border p-4 rounded-md">

<div class="flex flex-row gap-4 justify-between align-center">
<div class="font-bold">{{materials.contributor}}</div>
<div>
<div class="font-bold">{{materials.contributor}}</div>
<div *ngIf="materials.smallText !== ''" class="text-xs">{{materials.smallText}}</div>
</div>

<a href="{{materials.link}}" target="_blank">
<button class="bg-gray-800 text-white px-3 py-2 rounded-md text-sm font-medium" type="button"
<button class="bg-gray-800 text-white px-3 py-2 rounded-md text-xs font-medium" type="button"
[disabled]="materials.link === ''" [ngClass]="materials.link === '' ? 'bg-gray-500 text-gray-300' : 'hover:bg-gray-900'">
Open
</button>
Expand Down
10 changes: 9 additions & 1 deletion frontend/src/shared/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const CONTRIBUTORS: Contributor[] = [
'and I learned a lot from it.',
roles: [Roles.FOUNDER, Roles.DEVELOPER, Roles.MATERIAL_KEEPER],
link: '',
contributionDates: ['2020-02-06T00:00:00.000Z', '2023-12-06T00:00:00.000Z'],
contributionDates: ['2020-02-06T00:00:00.000Z', '2023-12-17T00:00:00.000Z'],
},
{
name: 'logalex96',
Expand Down Expand Up @@ -133,14 +133,22 @@ export const CONTRIBUTORS: Contributor[] = [
];

export const MORE_MATERIALS: AdditionalMaterials[] = [
{
contributor: 'Amalia',
link: 'https://mega.nz/folder/gOlgVbJI#rW9cUCdjVKOMQTfX-vPefg',
about: 'A personal archive with new materials',
smallText: '2022-2025'
},
{
contributor: 'logalex96',
link: 'https://bit.ly/2S8h9cO',
about: 'A complete archive with many materials',
smallText: '2016-2019',
},
{
contributor: 'Info3bNecenzurat',
link: 'https://info3bnecenzurat.wordpress.com/',
about: 'Legacy archive',
smallText: '2009',
},
];
1 change: 1 addition & 0 deletions frontend/src/shared/interfaces/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface AdditionalMaterials {
contributor: string;
link: string;
about: string;
smallText: string;
}

export interface Contributor {
Expand Down

0 comments on commit 98bfeea

Please sign in to comment.