Skip to content

Commit 8ea276d

Browse files
authored
Add upload page subtitle (#292)
1 parent ce3a27b commit 8ea276d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/app/page.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import CancelButton from '../components/CancelButton'
1414
import { useMemo } from 'react'
1515
import { getFileName } from '../fs'
1616
import TitleText from '../components/TitleText'
17+
import SubtitleText from '../components/SubtitleText'
1718
import { pluralize } from '../utils/pluralize'
1819
import TermsAcceptance from '../components/TermsAcceptance'
1920
import AddFilesButton from '../components/AddFilesButton'
@@ -37,6 +38,10 @@ function InitialState({
3738
<PageWrapper>
3839
<div className="flex flex-col items-center space-y-1 max-w-md">
3940
<TitleText>Peer-to-peer file transfers in your browser.</TitleText>
41+
<SubtitleText>
42+
Leave this tab open—FilePizza is peer to peer and never stores your
43+
files.
44+
</SubtitleText>
4045
</div>
4146
<DropZone onDrop={onDrop} />
4247
<TermsAcceptance />

src/components/SubtitleText.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import React, { JSX } from 'react'
2+
3+
export default function SubtitleText({
4+
children,
5+
}: {
6+
children: React.ReactNode
7+
}): JSX.Element {
8+
return (
9+
<p className="text-sm text-center text-stone-600 dark:text-stone-400 max-w-md">
10+
{children}
11+
</p>
12+
)
13+
}

0 commit comments

Comments
 (0)