Skip to content

Commit

Permalink
feat(chapters): add chapter content about how do diseases happen
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGolms committed Apr 27, 2021
1 parent 480a1e2 commit bcc8a79
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 0 deletions.
115 changes: 115 additions & 0 deletions src/components/Chapters/ChapterContent/ChapterContent06.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
import { IonImg, IonText } from '@ionic/react';
import { FC } from 'react';
import { useTranslation } from 'react-i18next';
import { ImageViewer } from '../../ImageViewer';
import { Context } from '../index';

export const Section01: FC<Context> = ({ context = '' }) => {
const { t } = useTranslation('chapter06');

return (
<IonText>
<p>{t(`01.TEXT.PARAGRAPH.01`, { context })}</p>
<p>{t(`01.TEXT.PARAGRAPH.02`, { context })}</p>
<ul>
<li>{t(`01.TEXT.LIST.01.010000`, { context })}</li>
<li>{t(`01.TEXT.LIST.01.020000`, { context })}</li>
<li>{t(`01.TEXT.LIST.01.030000`, { context })}</li>
<li>{t(`01.TEXT.LIST.01.040000`, { context })}</li>
<li>{t(`01.TEXT.LIST.01.050000`, { context })}</li>
</ul>
<p>{t(`01.TEXT.PARAGRAPH.03`, { context })}</p>
<ul>
<li>{t(`01.TEXT.LIST.02.010000`, { context })}</li>
<li>{t(`01.TEXT.LIST.02.020000`, { context })}</li>
<li>{t(`01.TEXT.LIST.02.030000`, { context })}</li>
<li>{t(`01.TEXT.LIST.02.040000`, { context })}</li>
<li>{t(`01.TEXT.LIST.02.050000`, { context })}</li>
<li>{t(`01.TEXT.LIST.02.060000`, { context })}</li>
</ul>
<p>{t(`01.TEXT.PARAGRAPH.04`, { context })}</p>
<ul>
<li>{t(`01.TEXT.LIST.03.010000`, { context })}</li>
<li>{t(`01.TEXT.LIST.03.020000`, { context })}</li>
<li>{t(`01.TEXT.LIST.03.030000`, { context })}</li>
</ul>
<ImageViewer alt={t(`01.IMAGE.01.FILENAME`)} src={t(`01.IMAGE.01.FILENAME`)}>
<IonImg class="ion-padding-vertical" src={t(`01.IMAGE.01.THUMBNAIL.LARGE`)} />
</ImageViewer>
<IonText class="ion-padding-bottom" className="image-text">
{t(`01.IMAGE.01.TITLE`, { context })}
</IonText>
</IonText>
);
};

export const Section02: FC<Context> = ({ context = '' }) => {
const { t } = useTranslation('chapter06');

return (
<IonText>
<p>{t(`02.TEXT.PARAGRAPH.01`, { context })}</p>
<ul>
<li>{t(`02.TEXT.LIST.01.010000`, { context })}</li>
<li>{t(`02.TEXT.LIST.01.020000`, { context })}</li>
<li>{t(`02.TEXT.LIST.01.030000`, { context })}</li>
<li>{t(`02.TEXT.LIST.01.040000`, { context })}</li>
<li>{t(`02.TEXT.LIST.01.050000`, { context })}</li>
</ul>
<ImageViewer alt={t(`02.IMAGE.01.FILENAME`)} src={t(`02.IMAGE.01.FILENAME`)}>
<IonImg class="ion-padding-vertical" src={t(`02.IMAGE.01.THUMBNAIL.LARGE`)} />
</ImageViewer>
<IonText class="ion-padding-bottom" className="image-text">
{t(`02.IMAGE.01.TITLE`, { context })}
</IonText>
<p>{t(`02.TEXT.PARAGRAPH.02`, { context })}</p>
<ul>
<li>{t(`02.TEXT.LIST.02.010000`, { context })}</li>
<li>{t(`02.TEXT.LIST.02.020000`, { context })}</li>
<li>{t(`02.TEXT.LIST.02.030000`, { context })}</li>
<li>{t(`02.TEXT.LIST.02.040000`, { context })}</li>
<li>{t(`02.TEXT.LIST.02.050000`, { context })}</li>
<li>{t(`02.TEXT.LIST.02.060000`, { context })}</li>
</ul>
<p>{t(`02.TEXT.PARAGRAPH.03`, { context })}</p>
<ul>
<li>{t(`02.TEXT.LIST.03.010000`, { context })}</li>
</ul>
<ImageViewer alt={t(`02.IMAGE.02.FILENAME`)} src={t(`02.IMAGE.02.FILENAME`)}>
<IonImg class="ion-padding-vertical" src={t(`02.IMAGE.02.THUMBNAIL.LARGE`)} />
</ImageViewer>
<IonText class="ion-padding-bottom" className="image-text">
{t(`02.IMAGE.02.TITLE`, { context })}
</IonText>
<p>{t(`02.TEXT.PARAGRAPH.04`, { context })}</p>
<ul>
<li>{t(`02.TEXT.LIST.04.010000`, { context })}</li>
<li>{t(`02.TEXT.LIST.04.020000`, { context })}</li>
<li>{t(`02.TEXT.LIST.04.030000`, { context })}</li>
</ul>
<ImageViewer alt={t(`02.IMAGE.03.FILENAME`)} src={t(`02.IMAGE.03.FILENAME`)}>
<IonImg class="ion-padding-vertical" src={t(`02.IMAGE.03.THUMBNAIL.LARGE`)} />
</ImageViewer>
<IonText class="ion-padding-bottom" className="image-text">
{t(`02.IMAGE.03.TITLE`, { context })}
</IonText>
<p>{t(`02.TEXT.PARAGRAPH.05`, { context })}</p>
<ul>
<li>{t(`02.TEXT.LIST.05.010000`, { context })}</li>
<li>{t(`02.TEXT.LIST.05.020000`, { context })}</li>
<li>{t(`02.TEXT.LIST.05.030000`, { context })}</li>
</ul>
<ImageViewer alt={t(`02.IMAGE.04.FILENAME`)} src={t(`02.IMAGE.04.FILENAME`)}>
<IonImg class="ion-padding-vertical" src={t(`02.IMAGE.04.THUMBNAIL.LARGE`)} />
</ImageViewer>
<IonText class="ion-padding-bottom" className="image-text">
{t(`02.IMAGE.04.TITLE`, { context })}
</IonText>
</IonText>
);
};

export const chapter06 = {
'01': Section01,
'02': Section02,
};
4 changes: 4 additions & 0 deletions src/components/Chapters/ChapterContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ import { chapter01 } from './ChapterContent01';
import { chapter02 } from './ChapterContent02';
import { chapter03 } from './ChapterContent03';
import { chapter04 } from './ChapterContent04';
import { chapter05 } from './ChapterContent05';
import { chapter06 } from './ChapterContent06';

export const chapter = {
'01': chapter01,
'02': chapter02,
'03': chapter03,
'04': chapter04,
'05': chapter05,
'06': chapter06,
};

0 comments on commit bcc8a79

Please sign in to comment.