Skip to content

Commit

Permalink
Update contributors page (#1584)
Browse files Browse the repository at this point in the history
  • Loading branch information
robines authored Nov 2, 2024
1 parent c035714 commit 475739b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,7 @@ import darkAvatar from '~/assets/contributors/default_dark.svg';
import { THEME } from '~/constants';
import { useGlobalContext } from '~/context/GlobalContextProvider';
import { KEY } from '~/i18n/constants';

export type Contributor = {
name: string;
from: string;
to?: string;
github?: string;
picture?: string;
websjef?: {
from: string;
to: string;
};
};
import type { Contributor } from './types';

type Props = {
contributor: Contributor;
Expand Down
21 changes: 5 additions & 16 deletions frontend/src/Pages/ContributorsPage/ContributorsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,14 @@ import robines from '~/assets/contributors/robines.jpg';
import snorre98 from '~/assets/contributors/snorre98.jpg';
import sygard from '~/assets/contributors/sygard.jpg';
import { KEY } from '~/i18n/constants';
import { ContributorItem } from './ContributorItem';
import styles from './ContributorsPage.module.scss';
import { type Contributor, ContributorItem } from './components';
import type { Contributor } from './types';

// biome-ignore format: array should not be formatted
const CONTRIBUTORS: Contributor[] = [
// H17
{
name: 'Kevin Kristiansen',
github: 'KevinKristiansen',
from: 'H17',
to: 'V20',
websjef: { from: 'V18', to: 'H18' },
},
{ name: 'Kevin Kristiansen', github: 'KevinKristiansen', from: 'H17', to: 'V20', websjef: { from: 'V18', to: 'H18' } },
// H19
{ name: 'Emil Telstad', github: 'emilte', from: 'H19' },
{ name: 'Sigve Røkenes', github: 'evgiz', from: 'H19', to: 'H23', websjef: { from: 'H20', to: 'V21' } },
Expand All @@ -39,15 +34,9 @@ const CONTRIBUTORS: Contributor[] = [
{ name: 'Eirik Hoem', github: 'eiriksho', from: 'H22', to: 'V23' },
{ name: 'Simen Seeberg-Rommetveit', github: 'simensee', from: 'H22' },
// V23
{
name: 'Robin Espinosa Jelle',
github: 'robines',
from: 'V23',
picture: robines,
websjef: { from: 'H23', to: 'V24' },
},
{ name: 'Robin Espinosa Jelle', github: 'robines', from: 'V23', picture: robines, websjef: { from: 'H23', to: 'V24' } },
{ name: 'Johanne Grønlien Gjedrem', github: 'johannegg', from: 'V23' },
{ name: 'Tinius Presterud', github: 'tiniuspre', from: 'V23' },
{ name: 'Tinius Presterud', github: 'tiniuspre', from: 'V23', to: 'V24' },
// H23
{ name: 'Amalie Johansen Vik', github: 'amaliejvik', from: 'H23', picture: amaliejvik },
{ name: 'Marion Lystad', github: 'marionlys', from: 'H23' },
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion frontend/src/Pages/ContributorsPage/components/index.ts

This file was deleted.

11 changes: 11 additions & 0 deletions frontend/src/Pages/ContributorsPage/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export type Contributor = {
name: string;
from: string;
to?: string;
github?: string;
picture?: string;
websjef?: {
from: string;
to: string;
};
};

0 comments on commit 475739b

Please sign in to comment.