Skip to content

Commit

Permalink
VKT(Frontend): Improve ClerkEnrollmentContactRequestPage layout [deploy]
Browse files Browse the repository at this point in the history
  • Loading branch information
pkoivisto committed Dec 31, 2024
1 parent 61c2548 commit a1d18ee
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 48 deletions.
6 changes: 3 additions & 3 deletions frontend/packages/vkt/public/i18n/fi-FI/examiner.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@
"email": "Sähköpostiosoite",
"examination": "Tutkinto",
"phoneNumber": "Puhelinnumero",
"partialExams": "Osakokeet, jotka haluan suorittaa",
"previousExams": "Osallistunut aiempiin tutkintoihin?",
"partialExams": "Osakokeet, jotka haluaa suorittaa",
"previousExams": "Osallistunut aiempiin tutkintoihin",
"createEnrollment": "Luo ilmoittautuminen",
"contactDetails": "Yhteydenoton tiedot",
"message": "Viesti",
"wantFullExam": "Haluan suorittaa koko tutkinnon?",
"wantFullExam": "Haluaa suorittaa koko tutkinnon",
"deleteAreYouSure": "Haluatko varmasti poistaa yhteydenoton?",
"deleteDescription": "Toimintoa ei voi peruuttaa!",
"deleteContactRequest": "Poista yhteydenotto",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ export const ClerkEnrollmentContactRequestPage: FC = () => {
};

return (
<Box className="clerk-homepage">
<Box className="examiner-contact-request-page">
<Grid
container
rowSpacing={4}
direction="column"
className="clerk-homepage__grid-container"
className="examiner-contact-request-page__grid-container"
>
<div>
<TopControls backTo={backTo} />
Expand All @@ -214,54 +214,58 @@ export const ClerkEnrollmentContactRequestPage: FC = () => {
<Grid item>
<Paper
elevation={3}
className="clerk-homepage__exam-events clerk-homepage-create-exam-events"
className="examiner-contact-request-page__paper rows gapped-xxl"
>
<H2>{t('contactFields')}</H2>
<div className="grid-columns gapped">
<div className="rows gapped">
<H3>{t('lastName')}</H3>
<Text>{enrollment.lastName}</Text>
</div>
<div className="rows gapped">
<H3>{t('firstName')}</H3>
<Text>{enrollment.firstName}</Text>
</div>
<div className="rows gapped">
<H3>{t('email')}</H3>
<Text>{enrollment.email}</Text>
</div>
<div className="rows gapped">
<H3>{t('phoneNumber')}</H3>
<Text>{enrollment.phoneNumber}</Text>
<div className="rows gapped">
<H2>{t('contactFields')}</H2>
<div className="grid-columns gapped">
<div className="rows gapped-xxs">
<H3>{t('lastName')}:</H3>
<Text>{enrollment.lastName}</Text>
</div>
<div className="rows gapped-xxs">
<H3>{t('firstName')}:</H3>
<Text>{enrollment.firstName}</Text>
</div>
<div className="rows gapped-xxs">
<H3>{t('email')}:</H3>
<Text>{enrollment.email}</Text>
</div>
<div className="rows gapped-xxs">
<H3>{t('phoneNumber')}:</H3>
<Text>{enrollment.phoneNumber}</Text>
</div>
</div>
</div>
<Divider />
<H2>{t('contactDetails')}</H2>
<div className="rows gapped">
<H3>{t('wantFullExam')}</H3>
<Text>
{enrollment.isFullExam
? translateCommon('yes')
: translateCommon('no')}
</Text>
</div>
{!enrollment.isFullExam && (
<div className="rows gapped">
<H3>{t('partialExams')}</H3>
<Text>{enrollment.partialExamSelection}</Text>
<H2>{t('contactDetails')}</H2>
<div className="rows gapped-xxs">
<H3>{t('wantFullExam')}:</H3>
<Text>
{enrollment.isFullExam
? translateCommon('yes')
: translateCommon('no')}
</Text>
</div>
{!enrollment.isFullExam && (
<div className="rows gapped-xxs">
<H3>{t('partialExams')}:</H3>
<Text>{enrollment.partialExamSelection}</Text>
</div>
)}
<div className="rows gapped-xxs">
<H3>{t('previousExams')}:</H3>
<Text>
{enrollment.hasPreviousEnrollment
? translateCommon('yes')
: translateCommon('no')}
</Text>
</div>
<div className="rows gapped-xxs">
<H3>{t('message')}:</H3>
<Text>{enrollment.message}</Text>
</div>
)}
<div className="rows gapped">
<H3>{t('previousExams')}</H3>
<Text>
{enrollment.hasPreviousEnrollment
? translateCommon('yes')
: translateCommon('no')}
</Text>
</div>
<div className="rows gapped">
<H3>{t('message')}</H3>
<Text>{enrollment.message}</Text>
</div>
<Divider />
<div className="rows gapped-sm flex-end">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.examiner-contact-request-page {
flex: 1;

& &__grid-container {
display: block;

&__heading {
margin: 2rem 0 1rem 1rem;
}
}

& &__paper {
padding: 3rem;
}
}
3 changes: 2 additions & 1 deletion frontend/packages/vkt/src/styles/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@
@import 'pages/clerk-enrollment-overview-page';
@import 'pages/clerk-exam-event-overview-page';
@import 'pages/clerk-homepage';
@import 'pages/examiner-exam-event-page';
@import 'pages/examiner-details-page';
@import 'pages/examiner-contact-request-page';
@import 'pages/examiner-exam-event-page';
@import 'pages/examiner-homepage';
@import 'pages/logout-success-page';
@import 'pages/not-found-page';
Expand Down

0 comments on commit a1d18ee

Please sign in to comment.