diff --git a/frontend/packages/vkt/src/components/publicExaminerListing/PublicExaminerListing.tsx b/frontend/packages/vkt/src/components/publicExaminerListing/PublicExaminerListing.tsx new file mode 100644 index 000000000..ed4a0adbe --- /dev/null +++ b/frontend/packages/vkt/src/components/publicExaminerListing/PublicExaminerListing.tsx @@ -0,0 +1,78 @@ +import { Paper, TableCell, TableHead, TableRow } from '@mui/material'; +import { useState } from 'react'; +import { CustomTable, H2, Text } from 'shared/components'; +import { useWindowProperties } from 'shared/hooks'; + +import { LanguageFilter } from 'components/common/LanguageFilter'; +import { ExamLanguage } from 'enums/app'; +import { PublicExaminer } from 'interfaces/publicExaminer'; + +const PublicExaminerListingHeader = () => { + const { isPhone } = useWindowProperties(); + + return ( + + {!isPhone && ( + + Tutkinnon vastaanottaja + Kieli + Paikkakunta + Tutkintopäivät + Toiminnot + + )} + + ); +}; + +const mockExaminerData: Array = []; + +const getRowDetails = ({ + name, + language, + municipality, + examDates, +}: PublicExaminer) => { + // TODO Rendering for mobile users + return ( + + + {name} + + + {language} + + + {municipality} + + + {examDates.length > 0 ? 'dipdap' : 'Ei määritelty'} + + dsadad + + ); +}; + +export const PublicExaminerListing = () => { + const [languageFilter, setLanguageFilter] = useState(ExamLanguage.ALL); + + return ( + +
+
+

Ota yhteyttä tutkinnon vastaanottajiin

+
+
+ setLanguageFilter(e.target.value as ExamLanguage)} + /> + } + /> +
+ ); +}; diff --git a/frontend/packages/vkt/src/interfaces/publicExaminer.ts b/frontend/packages/vkt/src/interfaces/publicExaminer.ts new file mode 100644 index 000000000..73a527034 --- /dev/null +++ b/frontend/packages/vkt/src/interfaces/publicExaminer.ts @@ -0,0 +1,11 @@ +import { Dayjs } from "dayjs"; +import { WithId } from "shared/interfaces"; + +import { ExamLanguage } from "enums/app"; + +export interface PublicExaminer extends WithId { + name: string; + language: ExamLanguage; + municipality: Array; + examDates: Array; +} \ No newline at end of file diff --git a/frontend/packages/vkt/src/pages/goodAndSatisfactoryLevel/PublicGoodAndSatisfactoryLevelLandingPage.tsx b/frontend/packages/vkt/src/pages/goodAndSatisfactoryLevel/PublicGoodAndSatisfactoryLevelLandingPage.tsx index d711dd2a6..a1f5bf972 100644 --- a/frontend/packages/vkt/src/pages/goodAndSatisfactoryLevel/PublicGoodAndSatisfactoryLevelLandingPage.tsx +++ b/frontend/packages/vkt/src/pages/goodAndSatisfactoryLevel/PublicGoodAndSatisfactoryLevelLandingPage.tsx @@ -1,7 +1,8 @@ import { Box, Grid } from '@mui/material'; import { FC } from 'react'; -import { H1, HeaderSeparator } from 'shared/components'; +import { H1, HeaderSeparator, Text } from 'shared/components'; +import { PublicExaminerListing } from 'components/publicExaminerListing/PublicExaminerListing'; import { usePublicTranslation } from 'configs/i18n'; export const PublicGoodAndSatisfactoryLevelLandingPage: FC = () => { @@ -20,6 +21,14 @@ export const PublicGoodAndSatisfactoryLevelLandingPage: FC = () => {

{t('title')}

+ + Jotain infotekstiä hyvän ja tyydyttävän taidon tutkinnoista.
+ Mahdollisesti lyhyet ohjeet yhteydenottoon liittyen.
+ Kenties linkki OPH:n sivuille. +
+
+ + diff --git a/frontend/packages/vkt/src/styles/components/publicExaminerListing/_public-examiner-listing.scss b/frontend/packages/vkt/src/styles/components/publicExaminerListing/_public-examiner-listing.scss new file mode 100644 index 000000000..667728d4c --- /dev/null +++ b/frontend/packages/vkt/src/styles/components/publicExaminerListing/_public-examiner-listing.scss @@ -0,0 +1,3 @@ +.public-examiner-listing { + padding: 3rem; +} diff --git a/frontend/packages/vkt/src/styles/styles.scss b/frontend/packages/vkt/src/styles/styles.scss index 43f320c15..de9247a5a 100644 --- a/frontend/packages/vkt/src/styles/styles.scss +++ b/frontend/packages/vkt/src/styles/styles.scss @@ -17,6 +17,7 @@ @import 'components/layouts/footer'; @import 'components/layouts/session-header'; @import 'components/publicEnrollment/public-enrollment'; +@import 'components/publicExaminerListing/public-examiner-listing'; // Pages @import 'pages/accessibility-statement-page';