Skip to content

Commit 6ca7f43

Browse files
authored
fix: Properly center prose again (#383)
1 parent 0601361 commit 6ca7f43

File tree

10 files changed

+16
-16
lines changed

10 files changed

+16
-16
lines changed

src/app/docs/layout.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export default function DocsLayout({children, sections = {}}) {
6767
<div className="relative flex h-full flex-col px-4 pt-14 sm:px-6 lg:px-8">
6868
<main className="flex-auto">
6969
<article className="flex h-full flex-col pb-10 pt-16">
70-
<Prose className="flex-auto">{children}</Prose>
70+
<Prose className="flex-auto centered-prose">{children}</Prose>
7171
<footer className="mx-auto mt-16 w-full max-w-2xl lg:max-w-5xl">
7272
</footer>
7373
</article>

src/app/docs/protocols/docs/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {ThemeImage} from '@/components/ThemeImage'
44

55
A protocol for a mutable key-value store. Authors create and join documents, multiple users read from them, write to them, and sync with them, subscribing to live updates in real time. {{className: 'lead'}}
66

7-
<div className='not-prose in-prose mb-5'>
7+
<div className='not-prose mb-5'>
88
<ThemeImage
99
lightSrc='/diagrams/documents.svg'
1010
darkSrc='/diagrams/documents_dark.svg'

src/app/docs/protocols/gossip/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const metadata = {
1212

1313
Gossip broadcasts messages to a network of live devices.{{ className: 'lead' }}
1414

15-
<div className='not-prose in-prose mb-5'>
15+
<div className='not-prose mb-5'>
1616
<ThemeImage
1717
lightSrc='/diagrams/gossip_swarm_light.svg'
1818
darkSrc='/diagrams/gossip_swarm_dark.svg'

src/app/docs/tour/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This paragraph touches on five key points worth understanding in iroh:
3939
We'll touch on each of these on the tour, and by the end you should have a good understanding of how they all fit together. The code we'll be writing here will build & execute, but it won't _do_ much. We'll link to examples and other resources along the way so you can explore further.
4040

4141
<Button
42-
className="not-prose in-prose"
42+
className="not-prose"
4343
href="/docs/tour/1-endpoints"
4444
aria-label="Begin the Tour: 1. Endpoints"
4545
variant="secondary"

src/app/page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export default function Page() {
9595
<h3 className='text-3xl font-bold mb-4'>Build your own protocol</h3>
9696
<p className='mb-10 text-iroh-gray-600 dark:text-iroh-gray-400'>Don&apos;t see a protocol you need? Build your own! Iroh gives you a reliable foundation for building distributed systems that reach the edge. The rest is up to you.</p>
9797
<Link href="/docs/quickstart" className={clsx(
98-
"my-4 p-3 transition bg-iroh-gray-800 shadow-sm text-iroh-purple-500 hover:bg-iroh-gray-700 hover:text-gray-200 text-lg")}>
98+
"my-4 p-3 transition bg-iroh-gray-800 shadow-xs text-iroh-purple-500 hover:bg-iroh-gray-700 hover:text-gray-200 text-lg")}>
9999
<span>Protocol Docs</span>
100100
</Link>
101101
</div>

src/components/Code.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export function CodeGroup({children, title, ...props}) {
267267
<CodeGroupContext.Provider value={true}>
268268
<Container
269269
{...containerProps}
270-
className="not-prose in-prose my-6 overflow-hidden rounded-2xl bg-zinc-900 shadow-md dark:ring-1 dark:ring-white/10"
270+
className="not-prose my-6 overflow-hidden rounded-2xl bg-zinc-900 shadow-md dark:ring-1 dark:ring-white/10"
271271
>
272272
<CodeGroupHeader title={title} {...headerProps}>
273273
{children}

src/components/GithubStars.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default function GithubStars(props) {
66
return (
77
<Link href="https://github.com/n0-computer/iroh" className='p-2 -mt-2 flex text-sm leading-5 fill-zinc-400 text-zinc-600 transition hover:text-zinc-900 dark:text-zinc-400 dark:hover:text-zinc-600 dark:hover:fill-zinc-600 hover:bg-black/10 rounded'>
88
<GithubIcon className="h-5 w-5" />
9-
<span className='ml-2 mt-0'>6.5k</span>
9+
<span className='ml-2 mt-0'>6.7k</span>
1010
</Link>
1111
)
1212
}

src/components/SendmePage.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export default function SendmePage() {
5555
</div>
5656
<Image src="/img/sendme/sendme_hero_1.svg" alt='one computer sending files to another computer through a pipe' width='1600' height='900' className='md:-mt-20' />
5757

58-
<div className='md:-mt-20 mx-5 md:mx-0 h-10 border-l border-r shadow-sm' />
59-
<div className='mx-5 md:mx-0 border-t border-l border-r shadow-sm'>
58+
<div className='md:-mt-20 mx-5 md:mx-0 h-10 border-l border-r shadow-xs' />
59+
<div className='mx-5 md:mx-0 border-t border-l border-r shadow-xs'>
6060
<div className='md:flex'>
6161
<div className='px-5 py-10 border-b md:border-r md:w-5/12'>
6262
<h2 className='text-4xl text-zinc-700 font-koulen'>File transfer<br />doesn&apos;t need to be complicated</h2>
@@ -92,8 +92,8 @@ export default function SendmePage() {
9292
</div>
9393
</div>
9494

95-
<div className='mx-5 md:mx-0 h-5 border-l border-r shadow-sm' />
96-
<div className='mx-5 md:mx-0 border-t border-l border-r shadow-sm'>
95+
<div className='mx-5 md:mx-0 h-5 border-l border-r shadow-xs' />
96+
<div className='mx-5 md:mx-0 border-t border-l border-r shadow-xs'>
9797
<div className='px-5 pt-10'>
9898
<h3 className='font-koulen text-zinc-600 text-xl'>USING SENDME:</h3>
9999
</div>
@@ -139,8 +139,8 @@ export default function SendmePage() {
139139
</div>
140140
</div>
141141

142-
<div className='mx-5 md:mx-0 h-5 border-l border-r shadow-sm' />
143-
<div className='mx-5 md:mx-0 border-t border-l border-r shadow-sm'>
142+
<div className='mx-5 md:mx-0 h-5 border-l border-r shadow-xs' />
143+
<div className='mx-5 md:mx-0 border-t border-l border-r shadow-xs'>
144144
<div>
145145
<div className='p-5'>
146146
<h3 className='text-2xl md:text-3xl font-koulen'>Free, for files & folders of any size</h3>

src/components/UsersShowcase.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const UsersShowcase = function UsersShowcase() {
7777
alt={projects[currentIndex].title}
7878
width={150}
7979
height={150}
80-
className='rounded-lg overflow-hidden shadow-sm mx-auto mb-5'
80+
className='rounded-lg overflow-hidden shadow-xs mx-auto mb-5'
8181
/>
8282
</Link>
8383
<Link className='cursor-pointer' href={projects[currentIndex].href}>

src/styles/tailwind.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&family=Space+Mono&display=swap');
1+
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;700&family=Space+Mono&display=swap");
22

33
@import "tailwindcss";
44

@@ -26,7 +26,7 @@
2626
}
2727

2828
@layer utilities {
29-
.in-prose {
29+
.centered-prose {
3030
max-width: 50rem;
3131
margin-left: calc(50% - min(50%, 33rem));
3232
margin-right: calc(50% - min(50%, 33rem));

0 commit comments

Comments
 (0)