Skip to content

Commit

Permalink
feat(chapters): add chapter content about common diseases
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonGolms committed Apr 29, 2021
1 parent 9acea5b commit 56c592a
Show file tree
Hide file tree
Showing 2 changed files with 366 additions and 0 deletions.
364 changes: 364 additions & 0 deletions src/components/Chapters/ChapterContent/ChapterContent09.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,364 @@
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('chapter09');

return (
<IonText>
<p>{t(`01.TEXT.PARAGRAPH.01`, { context })}</p>
<ul>
<li>{t(`01.TEXT.LIST.01.010000`, { context })}</li>
<li>{t(`01.TEXT.LIST.01.020000`, { context })}</li>
</ul>
<p>{t(`01.TEXT.PARAGRAPH.02`, { 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>
<ul>
<li>{t(`01.TEXT.LIST.02.040100`, { context })}</li>
<li>{t(`01.TEXT.LIST.02.040200`, { context })}</li>
<li>{t(`01.TEXT.LIST.02.040300`, { context })}</li>
</ul>
</ul>
<p>{t(`01.TEXT.PARAGRAPH.03`, { 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>
<li>{t(`01.TEXT.LIST.03.040000`, { context })}</li>
<ul>
<li>{t(`01.TEXT.LIST.03.040100`, { context })}</li>
<li>{t(`01.TEXT.LIST.03.040200`, { context })}</li>
</ul>
</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>
<p>{t(`01.TEXT.PARAGRAPH.04`, { context })}</p>
<ImageViewer alt={t(`01.IMAGE.02.FILENAME`)} src={t(`01.IMAGE.02.FILENAME`)}>
<IonImg class="ion-padding-vertical" src={t(`01.IMAGE.02 .THUMBNAIL.LARGE`)} />
</ImageViewer>
<IonText class="ion-padding-bottom" className="image-text">
{t(`01.IMAGE.02.TITLE`, { context })}
</IonText>
</IonText>
);
};

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

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>
<ul>
<li>{t(`02.TEXT.LIST.01.040100`, { context })}</li>
</ul>
</ul>
<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>
<ul>
<li>{t(`02.TEXT.LIST.02.030100`, { context })}</li>
<li>{t(`02.TEXT.LIST.02.030200`, { context })}</li>
</ul>
<li>{t(`02.TEXT.LIST.02.040000`, { context })}</li>
<ul>
<li>{t(`02.TEXT.LIST.02.040100`, { context })}</li>
</ul>
</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.03`, { context })}</p>
<ul>
<li>{t(`02.TEXT.LIST.03.010000`, { context })}</li>
<li>{t(`02.TEXT.LIST.03.020000`, { context })}</li>
<li>{t(`02.TEXT.LIST.03.030000`, { context })}</li>
<li>{t(`02.TEXT.LIST.03.040000`, { context })}</li>
<li>{t(`02.TEXT.LIST.03.050000`, { context })}</li>
</ul>
<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>
<li>{t(`02.TEXT.LIST.04.040000`, { context })}</li>
<li>{t(`02.TEXT.LIST.04.050000`, { context })}</li>
</ul>
<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>
<li>{t(`02.TEXT.LIST.05.040000`, { 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>
</IonText>
);
};

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

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

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

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

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

return (
<IonText>
<p>{t(`05.TEXT.PARAGRAPH.01`, { context })}</p>
<p>{t(`05.TEXT.PARAGRAPH.02`, { context })}</p>
<p>{t(`05.TEXT.PARAGRAPH.03`, { context })}</p>
<ul>
<li>{t(`05.TEXT.LIST.01.010000`, { context })}</li>
<li>{t(`05.TEXT.LIST.01.020000`, { context })}</li>
</ul>
<p>{t(`05.TEXT.PARAGRAPH.04`, { context })}</p>
<ul>
<li>{t(`05.TEXT.LIST.02.010000`, { context })}</li>
<li>{t(`05.TEXT.LIST.02.020000`, { context })}</li>
<li>{t(`05.TEXT.LIST.02.030000`, { context })}</li>
</ul>
<p>{t(`05.TEXT.PARAGRAPH.05`, { context })}</p>
<ul>
<li>{t(`05.TEXT.LIST.03.010000`, { context })}</li>
<ul>
<li>{t(`05.TEXT.LIST.03.010100`, { context })}</li>
<li>{t(`05.TEXT.LIST.03.010200`, { context })}</li>
</ul>
<li>{t(`05.TEXT.LIST.03.020000`, { context })}</li>
<li>{t(`05.TEXT.LIST.03.030000`, { context })}</li>
</ul>
<ImageViewer alt={t(`05.IMAGE.01.FILENAME`)} src={t(`05.IMAGE.01.FILENAME`)}>
<IonImg class="ion-padding-vertical" src={t(`05.IMAGE.01.THUMBNAIL.LARGE`)} />
</ImageViewer>
<IonText class="ion-padding-bottom" className="image-text">
{t(`05.IMAGE.01.TITLE`, { context })}
</IonText>
<p>{t(`05.TEXT.PARAGRAPH.06`, { context })}</p>
<ul>
<li>{t(`05.TEXT.LIST.04.010000`, { context })}</li>
<li>{t(`05.TEXT.LIST.04.020000`, { context })}</li>
<li>{t(`05.TEXT.LIST.04.030000`, { context })}</li>
<li>{t(`05.TEXT.LIST.04.040000`, { context })}</li>
</ul>
<p>{t(`05.TEXT.PARAGRAPH.07`, { context })}</p>
<ul>
<li>{t(`05.TEXT.LIST.05.010000`, { context })}</li>
<li>{t(`05.TEXT.LIST.05.020000`, { context })}</li>
<li>{t(`05.TEXT.LIST.05.030000`, { context })}</li>
<li>{t(`05.TEXT.LIST.05.040000`, { context })}</li>
<li>{t(`05.TEXT.LIST.05.050000`, { context })}</li>
</ul>
<p>{t(`05.TEXT.PARAGRAPH.08`, { context })}</p>
<p>{t(`05.TEXT.PARAGRAPH.09`, { context })}</p>
<p>{t(`05.TEXT.PARAGRAPH.10`, { context })}</p>
<ImageViewer alt={t(`05.IMAGE.02.FILENAME`)} src={t(`05.IMAGE.02.FILENAME`)}>
<IonImg class="ion-padding-vertical" src={t(`05.IMAGE.02.THUMBNAIL.LARGE`)} />
</ImageViewer>
<IonText class="ion-padding-bottom" className="image-text">
{t(`05.IMAGE.02.TITLE`, { context })}
</IonText>
</IonText>
);
};

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

return (
<IonText>
<p>{t(`06.TEXT.PARAGRAPH.01`, { context })}</p>
<p>{t(`06.TEXT.PARAGRAPH.02`, { context })}</p>
<p>{t(`06.TEXT.PARAGRAPH.03`, { context })}</p>
<p>{t(`06.TEXT.PARAGRAPH.04`, { context })}</p>
<ul>
<li>{t(`06.TEXT.LIST.01.010000`, { context })}</li>
<li>{t(`06.TEXT.LIST.01.020000`, { context })}</li>
</ul>
<p>{t(`06.TEXT.PARAGRAPH.05`, { context })}</p>
<ul>
<li>{t(`06.TEXT.LIST.02.010000`, { context })}</li>
<ul>
<li>{t(`06.TEXT.LIST.02.010100`, { context })}</li>
<li>{t(`06.TEXT.LIST.02.010200`, { context })}</li>
</ul>
<li>{t(`06.TEXT.LIST.02.020000`, { context })}</li>
<li>{t(`06.TEXT.LIST.02.030000`, { context })}</li>
</ul>
<ImageViewer alt={t(`06.IMAGE.01.FILENAME`)} src={t(`06.IMAGE.01.FILENAME`)}>
<IonImg class="ion-padding-vertical" src={t(`06.IMAGE.01.THUMBNAIL.LARGE`)} />
</ImageViewer>
<IonText class="ion-padding-bottom" className="image-text">
{t(`06.IMAGE.01.TITLE`, { context })}
</IonText>
<p>{t(`06.TEXT.PARAGRAPH.06`, { context })}</p>
<ul>
<li>{t(`06.TEXT.LIST.03.010000`, { context })}</li>
<li>{t(`06.TEXT.LIST.03.020000`, { context })}</li>
<li>{t(`06.TEXT.LIST.03.030000`, { context })}</li>
<li>{t(`06.TEXT.LIST.03.040000`, { context })}</li>
</ul>
<p>{t(`06.TEXT.PARAGRAPH.07`, { context })}</p>
<ul>
<li>{t(`06.TEXT.LIST.04.010000`, { context })}</li>
<li>{t(`06.TEXT.LIST.04.020000`, { context })}</li>
<li>{t(`06.TEXT.LIST.04.030000`, { context })}</li>
<li>{t(`06.TEXT.LIST.04.040000`, { context })}</li>
<li>{t(`06.TEXT.LIST.04.050000`, { context })}</li>
</ul>
<p>{t(`06.TEXT.PARAGRAPH.08`, { context })}</p>
<p>{t(`06.TEXT.PARAGRAPH.09`, { context })}</p>
<p>{t(`06.TEXT.PARAGRAPH.10`, { context })}</p>
<ImageViewer alt={t(`06.IMAGE.02.FILENAME`)} src={t(`06.IMAGE.02.FILENAME`)}>
<IonImg class="ion-padding-vertical" src={t(`06.IMAGE.02.THUMBNAIL.LARGE`)} />
</ImageViewer>
<IonText class="ion-padding-bottom" className="image-text">
{t(`06.IMAGE.02.TITLE`, { context })}
</IonText>
</IonText>
);
};

export const chapter09 = {
'01': Section01,
'02': Section02,
'03': Section03,
'04': Section04,
'05': Section05,
'06': Section06,
};
2 changes: 2 additions & 0 deletions src/components/Chapters/ChapterContent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { chapter05 } from './ChapterContent05';
import { chapter06 } from './ChapterContent06';
import { chapter07 } from './ChapterContent07';
import { chapter08 } from './ChapterContent08';
import { chapter09 } from './ChapterContent09';

export const chapter = {
'01': chapter01,
Expand All @@ -16,4 +17,5 @@ export const chapter = {
'06': chapter06,
'07': chapter07,
'08': chapter08,
'09': chapter09,
};

0 comments on commit 56c592a

Please sign in to comment.