diff --git a/src/modules/blockchains/dapp/components/WhitePaperModal/index.tsx b/src/modules/blockchains/dapp/components/WhitePaperModal/index.tsx index e0a026c6d..1e55892ab 100644 --- a/src/modules/blockchains/dapp/components/WhitePaperModal/index.tsx +++ b/src/modules/blockchains/dapp/components/WhitePaperModal/index.tsx @@ -76,7 +76,72 @@ const WhitePaperModal = (props: IProps) => { setIsDownloadingHtml(true); const htmlString = await convertMarkdownToHtml(markdownString); - const blob = new Blob([htmlString], { type: 'text/html' }); + + const htmlContent = ` + + + + + + ${tokenInfo?.token?.symbol} White Paper + + + + ${htmlString} + + + `; + + const blob = new Blob([htmlContent], { type: 'text/html' }); const url = URL.createObjectURL(blob); @@ -167,13 +232,13 @@ const WhitePaperModal = (props: IProps) => { isDisabled={isAllDisabled} isLoading={isDownloadingHtml} >Download Html - + >Download PDF*/} diff --git a/src/modules/blockchains/dapp/components/WhitePaperModal/styles.module.scss b/src/modules/blockchains/dapp/components/WhitePaperModal/styles.module.scss index ba939cc02..b9fb1480f 100644 --- a/src/modules/blockchains/dapp/components/WhitePaperModal/styles.module.scss +++ b/src/modules/blockchains/dapp/components/WhitePaperModal/styles.module.scss @@ -11,13 +11,47 @@ color: black; padding: 40px 80px; + h1 { + font-size: 32px; + font-weight: 700; + white-space: pre-wrap; + } + + h2 { + font-weight: 700; + font-size: 20px; + } + + h3 { + font-size: 18px; + font-weight: bold; + } + + h4 { + font-size: 16px; + font-weight: bold; + } + + h5 { + font-size: 14px; + font-weight: bold; + } + p { margin-top: 4px; margin-bottom: 4px; } ul { - padding-inline-start: 20px; + padding-inline-start: 40px; + } + ol { + padding-inline-start: 40px; + } + + a { + color: #0d87ff; + text-decoration: underline; } }