@@ -13,66 +13,72 @@ export default function HeroSection({
1313 setErrorFlag,
1414} : HeroSectionProps ) {
1515 return (
16- < section className = "flex flex-col container items-center gap-4 text-accent" >
17- < p className = "text-lg md:text-xl text-center text-secondary" >
18- Safely see your non-followers using your official Instagram data. Your files are processed
19- right here in your browser and are never uploaded anywhere.
16+ < section className = "text-accent container flex flex-col items-center gap-4" >
17+ < p className = "text-secondary text-center text-lg md:text-xl" >
18+ Safely see your non-followers using your official Instagram data. Your
19+ files are processed right here in your browser and are never uploaded
20+ anywhere.
2021 </ p >
21- < Dropzone onDrop = { onDrop } disabled = { errorFlag } accept = { { "application/json" : [ ".json" ] } } >
22+ < Dropzone
23+ onDrop = { onDrop }
24+ disabled = { errorFlag }
25+ accept = { { "application/json" : [ ".json" ] } }
26+ >
2227 { ( { getRootProps, getInputProps } ) => (
2328 < div
2429 { ...getRootProps ( ) }
25- className = "shadow-md border-2 px-2 md:px-10 py-10 md:py-30 flex flex-col gap-4 md:gap-8 items-center justify-center w-full md:w-3/5 border-dashed rounded-3xl mt-6 md:mt-12 text-lg hover:cursor-pointer "
30+ className = "mt-6 flex w-full flex-col items-center justify-center gap-4 rounded-3xl border-2 border-dashed px-2 py-10 text-lg shadow-md hover:cursor-pointer md:mt-12 md:w-3/5 md:gap-8 md:px-10 md:py-30 "
2631 >
2732 < input { ...getInputProps ( ) } data-testid = "file-input" > </ input >
2833
2934 { /* Conditional rendering to show if a user has uploaded single files*/ }
3035 { hasProcessedFollowers && (
3136 < div
32- className = "bg-light-accent px-5 md:px-20 py-2 border-1 rounded-2xl border-accent "
37+ className = "bg-light-accent border-accent rounded-2xl border-1 px-5 py-2 md:px-20 "
3338 aria-label = "Followers List Uploaded!"
3439 >
3540 Followers List Uploaded!
3641 </ div >
3742 ) }
3843
3944 { hasProcessedFollowing && (
40- < div className = "bg-light-accent px-5 md:px-20 py-2 border-1 rounded-2xl border-accent " >
45+ < div className = "bg-light-accent border-accent rounded-2xl border-1 px-5 py-2 md:px-20 " >
4146 Following List Uploaded!
4247 </ div >
4348 ) }
4449
4550 { errorFlag ? (
46- < section className = "flex flex-col items-center gap-4 md:gap-6 text-center text-primary " >
51+ < section className = "text-primary flex flex-col items-center gap-4 text-center md:gap-6 " >
4752 < h2 className = "text-3xl" > Upload Failed!</ h2 >
4853 < p className = "text-xl" >
49- The file doesn't look like a proper Instagram followers.json or following.json file
54+ The file doesn't look like a proper Instagram
55+ followers.json or following.json file
5056 </ p >
5157 < button
5258 onClick = { ( ) => setErrorFlag ( false ) }
53- className = "border-1 px-4 py-2 text-lg rounded-xl hover:cursor-pointer transition hover:scale-105 shadow-sm "
59+ className = "rounded-xl border-1 px-4 py-2 text-lg shadow-sm transition hover:scale-105 hover:cursor-pointer "
5460 >
5561 Try Again
5662 </ button >
5763 </ section >
5864 ) : (
5965 < section className = "flex flex-col items-center gap-4 md:gap-8" >
6066 < Upload size = { 50 } > </ Upload >
61- < p className = "text-center whitespace-normal break-words text-primary " >
67+ < p className = "text-primary text-center break-words whitespace-normal " >
6268 Drag & drop your
6369 < br />
64- < span className = "bg-slate-100 text-sm font-mono mx-1 px-2 py-1 rounded break-all" >
70+ < span className = "mx-1 rounded bg-slate-100 px-2 py-1 font-mono text-sm break-all" >
6571 followers.json
6672 </ span >
6773 &
68- < span className = "bg-slate-100 text-sm font-mono mx-1 px-2 py-1 rounded break-all" >
74+ < span className = "mx-1 rounded bg-slate-100 px-2 py-1 font-mono text-sm break-all" >
6975 following.json
7076 </ span >
7177 < br />
7278 files here
7379 </ p >
7480 < span className = "text-secondary" > or</ span >
75- < button className = "border-1 px-4 py-2 text-lg rounded-xl hover:cursor-pointer transition hover:scale-105 bg-light-accent shadow-sm " >
81+ < button className = "bg-light-accent rounded-xl border-1 px-4 py-2 text-lg shadow-sm transition hover:scale-105 hover:cursor-pointer " >
7682 Select Files
7783 </ button >
7884 </ section >
0 commit comments