add ExamParts section

This commit is contained in:
Dawid Wysokiński 2021-03-27 09:16:54 +01:00
parent cf00f60e39
commit e03fe701e0
4 changed files with 71 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 KiB

View File

@ -8,10 +8,12 @@ import {
} from 'libs/graphql';
import { QUERY_PROFESSIONS } from './queries';
import { Divider } from '@material-ui/core';
import Layout from 'common/Layout/Layout';
import Header from './components/Header/Header';
import Timer from './components/Timer/Timer';
import AboutExam from './components/AboutExam/AboutExam';
import ExamParts from './components/ExamParts/ExamParts';
interface IndexPageProps {
professions: Profession[];
@ -25,6 +27,8 @@ const IndexPage = ({ qualifications, dateOfTheExam }: IndexPageProps) => {
<Header qualifications={qualifications} />
<Timer dateOfTheExam={dateOfTheExam} />
<AboutExam />
<Divider />
<ExamParts />
</Layout>
);
};

View File

@ -0,0 +1,67 @@
import Image from 'next/image';
import { makeStyles } from '@material-ui/core/styles';
import { Typography, Container, Grid } from '@material-ui/core';
import Section, { Size } from '../Section/Section';
function AboutSection() {
const classes = useStyles();
return (
<Section size={Size.Medium}>
<Container>
<Typography align="center" variant="h2" gutterBottom>
Z czego składa się egzamin zawodowy?
</Typography>
<Grid container spacing={2}>
<Grid item xs={12} sm={6} className={classes.examPart}>
<div className={classes.imageWrapper}>
<Image
src="/images/written-part.png"
alt="Część pisemna"
width={608}
height={408}
/>
</div>
<Typography variant="h4">Część pisemna</Typography>
<Typography>
Część pisemna jest przeprowadzana w formie testu pisemnego. Trwa
60 minut i przeprowadzana jest w formie testu składającego się z
40 zadań zamkniętych zawierających cztery odpowiedzi do wyboru, z
których tylko jedna odpowiedź jest prawidłowa.
</Typography>
</Grid>
<Grid item xs={12} sm={6} className={classes.examPart}>
<div className={classes.imageWrapper}>
<Image
src="/images/practical-part.png"
alt="Część praktyczna"
width={608}
height={408}
/>
</div>
<Typography variant="h4">Część praktyczna</Typography>
<Typography>
Część praktyczna jest przeprowadzana w formie testu praktycznego i
trwa nie krócej niż 120 minut i nie dłużej niż 240 minut. Egzamin
polega na wykonaniu przez zdającego zadania egzaminacyjnego
zawartego w arkuszu egzaminacyjnym na stanowisku egzaminacyjnym.
</Typography>
</Grid>
</Grid>
</Container>
</Section>
);
}
const useStyles = makeStyles(theme => ({
examPart: {
'& > *:not(:last-child)': {
marginBottom: theme.spacing(1),
},
},
imageWrapper: {
width: '75%',
margin: 'auto',
},
}));
export default AboutSection;