forked from Boehringer-Ingelheim/goat-health-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(chapters): add chapter content about common diseases
- Loading branch information
1 parent
9acea5b
commit 56c592a
Showing
2 changed files
with
366 additions
and
0 deletions.
There are no files selected for viewing
364 changes: 364 additions & 0 deletions
364
src/components/Chapters/ChapterContent/ChapterContent09.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters