Skip to content

Commit f64618d

Browse files
committed
fix: improve styling in pro-help page
1 parent 82fb9c7 commit f64618d

File tree

3 files changed

+815
-7
lines changed

3 files changed

+815
-7
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"node-ical": "0.20.1",
4747
"react": "18.3.1",
4848
"react-dom": "18.3.1",
49+
"react-markdown": "^9.0.3",
4950
"react-syntax-highlighter": "^15.6.1",
5051
"react-text-truncate": "^0.19.0",
5152
"reading-time": "^1.5.0",

pages/pro-help/index.page.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Head from 'next/head';
55
import { Headline1 } from '~/components/Headlines';
66
import { SectionContext } from '~/context';
77
import { DocsHelp } from '~/components/DocsHelp';
8+
import ReactMarkdown from 'react-markdown';
89

910
interface ContractorLink {
1011
title: string;
@@ -93,7 +94,7 @@ export default function ProHelp({ contractorData }: ProHelpPageProps) {
9394
<div className='w-full lg:w-full my-[10px] mx-auto mt-8 mb-8'>
9495
{contractorData.map((contractor) => (
9596
<div
96-
className='border border-solid border-gray-300 px-5 py-3'
97+
className='border border-solid border-gray-300 px-5 py-3 my-4'
9798
key={contractor.github}
9899
>
99100
<h1 className='text-xl mb-3 font-semibold'>
@@ -176,7 +177,7 @@ export default function ProHelp({ contractorData }: ProHelpPageProps) {
176177
<div className='me-4 max-sm:flex max-sm:flex-col max-sm:items-center max-sm:gap-2'>
177178
<img
178179
src={`https://github.com/${contractor.github}.png`}
179-
className='border border-gray-400 max-sm:w-44'
180+
className='border border-gray-400 max-sm:w-44 w-44'
180181
/>
181182
<a
182183
href={`mailto:${contractor.email}`}
@@ -185,8 +186,10 @@ export default function ProHelp({ contractorData }: ProHelpPageProps) {
185186
Reach out
186187
</a>
187188
</div>
188-
<div className='text-sm'>
189-
<p>{contractor.bio}</p>
189+
<div className='text-sm w-full'>
190+
<ReactMarkdown className='text-justify'>
191+
{contractor.bio}
192+
</ReactMarkdown>
190193
<p className='my-3 font-bold'>
191194
Previous work and relevant links
192195
</p>
@@ -214,4 +217,4 @@ export default function ProHelp({ contractorData }: ProHelpPageProps) {
214217
);
215218
}
216219

217-
ProHelp.getLayout = getLayout;
220+
ProHelp.getLayout = getLayout;

0 commit comments

Comments
 (0)