Skip to content

Commit 2acda24

Browse files
committed
Issue #15: Update docs for components for some visual spacing
1 parent 550a981 commit 2acda24

File tree

5 files changed

+8
-12
lines changed

5 files changed

+8
-12
lines changed

docs-infra-prototype/src/components/mdx/MDXComponents.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@ import { CopyButton } from '@/components/ui/copy-button';
33
const components = {
44
h1: (props) => (
55
<h1
6-
className="scroll-m-20 text-4xl font-bold tracking-tight lg:text-5xl"
6+
className="scroll-m-20 text-4xl font-bold tracking-tight lg:text-5xl mb-4"
77
{...props}
88
/>
99
),
1010
h2: (props) => (
1111
<h2
12-
className="scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0 mt-10"
12+
className="scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0 mt-10 mb-4"
1313
{...props}
1414
/>
1515
),
1616
h3: (props) => (
1717
<h3
18-
className="scroll-m-20 text-2xl font-semibold tracking-tight"
18+
className="scroll-m-20 text-2xl font-semibold tracking-tight mb-4"
1919
{...props}
2020
/>
2121
),
2222
h4: (props) => (
2323
<h4
24-
className="scroll-m-20 text-xl font-semibold tracking-tight"
24+
className="scroll-m-20 text-xl font-semibold tracking-tight mb-4"
2525
{...props}
2626
/>
2727
),

docs-infra-prototype/src/pages/docs/block-components/call-to-action.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import CallToAction from "@/components/block/CallToAction.astro"
3030
/>
3131
```
3232

33-
Displays like:
33+
## Example
3434

3535
<CallToAction
3636
headline="Ready to Build Your Documentation?"

docs-infra-prototype/src/pages/docs/block-components/checklist.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import Checklist from "@/components/block/Checklist.astro"
2323
<Checklist items={["Modern Stack with Astro & React", "Pre-configured Tailwind CSS", "Built-in Dark Mode Support"]} />
2424
```
2525

26-
Displays like:
26+
## Example
2727

2828
<Checklist items={["Modern Stack with Astro & React", "Pre-configured Tailwind CSS", "Built-in Dark Mode Support"]} />
2929

docs-infra-prototype/src/pages/docs/block-components/feature-card.mdx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ import FeatureCard from "@/components/block/FeatureCard.astro"
3737
</FeatureCard>
3838
```
3939

40-
Displays like:
41-
42-
<div style="background-color: #f0f0f0; color: #000000; padding: 1rem; border-radius: 0.5rem;">
40+
## Example
4341

4442
<FeatureCard
4543
label="Step 1"
@@ -56,6 +54,4 @@ Displays like:
5654
</div> }
5755
</FeatureCard>
5856

59-
</div>
60-
6157
</DocsLayout>

docs-infra-prototype/src/pages/docs/block-components/hero.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const components = MDXComponents
3232
</Hero>
3333
```
3434

35-
Displays like:
35+
## Example
3636

3737
<Hero
3838
image={DocumentIcon}

0 commit comments

Comments
 (0)