Skip to content

Commit 6bb529a

Browse files
feat: user error messages on bad upload
1 parent 6caa1c0 commit 6bb529a

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

src/components/HeroSection.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,18 @@ export default function HeroSection({
4343
)}
4444

4545
{errorFlag ? (
46-
<section className="flex flex-col items-center gap-2">
47-
<div>Error!</div>
48-
<button onClick={() => setErrorFlag(false)} className="border-2 px-2 py-1 rounded-2xl">Try Again</button>
46+
<section className="flex flex-col items-center gap-4 md:gap-6 text-center">
47+
<h2 className="text-3xl">Upload Failed!</h2>
48+
<p className="text-xl">
49+
The file doesn&apos;t look like a proper Instagram followers.json or following.json file
50+
</p>
51+
<button
52+
onClick={() => setErrorFlag(false)}
53+
className="border-1 px-4 py-2 text-lg rounded-xl hover:cursor-pointer transition hover:scale-105"
54+
>
55+
Try Again
56+
</button>
4957
</section>
50-
5158
) : (
5259
<section className="flex flex-col items-center gap-4 md:gap-8">
5360
<Upload size={50}></Upload>

0 commit comments

Comments
 (0)