Skip to content

Commit 1055c7c

Browse files
Thund3rHawkjdesrosiers
authored andcommitted
fix: improve styling in pro-help page
1 parent 5a608ac commit 1055c7c

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

components/StyledMarkdown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ const StyledMarkdownBlock = ({ markdown }: { markdown: string }) => {
166166
<FullMarkdownContext.Provider value={markdown}>
167167
<Markdown
168168
options={{
169+
forceBlock: true,
169170
overrides: {
170171
h1: { component: Headline1 },
171172
h2: { component: Headline2 },

pages/overview/pro-help/index.page.tsx

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Headline1 } from '~/components/Headlines';
66
import { SectionContext } from '~/context';
77
import { DocsHelp } from '~/components/DocsHelp';
88
import NextPrevButton from '~/components/NavigationButtons';
9+
import StyledMarkdown from '~/components/StyledMarkdown';
910

1011
interface ContractorLink {
1112
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,15 +186,18 @@ export default function ProHelp({ contractorData }: ProHelpPageProps) {
185186
Reach out
186187
</a>
187188
</div>
188-
<div className='text-sm'>
189-
<p>{contractor.bio}</p>
190-
<p className='my-3 font-bold'>
189+
<div className='text-sm w-full'>
190+
<StyledMarkdown markdown={contractor.bio} />
191+
<p className='my-3 font-bold text-slate-600 block dark:text-slate-300'>
191192
Previous work and relevant links
192193
</p>
193194
<ul className='list-disc ms-4'>
194195
{contractor.links.map((link) => (
195196
<li className='my-2' key={link.url}>
196-
<a className='underline' href={link.url}>
197+
<a
198+
className='text-blue-600 block dark:text-blue-300'
199+
href={link.url}
200+
>
197201
{link.title}
198202
</a>
199203
</li>

styles/globals.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ border-radius: 4px; */
295295
border-radius: 8px;
296296
}
297297
.scrollbar-hidden {
298-
scrollbar-width: none;
298+
scrollbar-width: none;
299299
}
300300
.scrollbar-hidden::-webkit-scrollbar {
301301
display: none;
302-
}
302+
}

0 commit comments

Comments
 (0)