Skip to content

Commit 20572d0

Browse files
committed
fix: banner allignement, note upload papers
1 parent 13ea2f6 commit 20572d0

2 files changed

Lines changed: 16 additions & 9 deletions

File tree

src/app/upload/page.tsx

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ const Page = () => {
174174
const isCurrentlyDragging = isDragging || isGlobalDragging;
175175

176176
return (
177-
<div className="flex h-[calc(100vh-85px)] flex-col justify-center px-6 font-play">
177+
<div className="flex h-[calc(100vh-185px)] flex-col justify-center px-3 font-play">
178178
<div className="2xl:my-15 flex flex-col items-center">
179179
<fieldset className="mb-4 w-full max-w-md rounded-lg border-2 border-gray-300 p-4 pr-8">
180180
<div className="flex w-full flex-col 2xl:gap-y-4">
@@ -211,11 +211,18 @@ const Page = () => {
211211
<Upload className="mt-2 h-10 w-10 animate-bounce text-[#6D28D9]" />
212212
</div>
213213
) : (
214-
<p>
215-
Drag &apos;n&apos; drop some files here, or{" "}
216-
<span className="text-[#6D28D9]">click</span> to select
217-
files
218-
</p>
214+
<div>
215+
<p className="font-semibold text-lg">
216+
Drag &apos;n&apos; drop some files here, or{" "}
217+
<span className="text-[#6D28D9]">click</span> to select
218+
files
219+
</p>
220+
<div className="mx-auto my-6 w-full max-w-xl rounded-md text-sm text-black dark:text-white opacity-70">
221+
<p className="text-center">
222+
<strong>Note:</strong> Uploaded papers are first reviewed by our team before appearing on the website. If your paper doesn't show up immediately, please be patient,it's likely still under review.
223+
</p>
224+
</div>
225+
</div>
219226
)}
220227
<div
221228
className={`mt-2 text-xs ${
@@ -225,7 +232,7 @@ const Page = () => {
225232
{files?.length || 0} files selected
226233
</div>
227234
</section>
228-
)}
235+
)}
229236
</Dropzone>
230237
<label className="mx-2 -mr-2 block text-center text-xs font-medium text-gray-700">
231238
Only Images and PDF are allowed

src/components/bannerDismiss.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ export default function Banner({
5252

5353
<button
5454
onClick={closeBanner}
55-
className="absolute right-4 top-4 transition hover:opacity-75 sm:static sm:self-start"
55+
className="absolute right-4 top-6 transition hover:opacity-75 sm:static sm:self-start"
5656
aria-label="Dismiss banner"
5757
style={{ color: accentColor }}
5858
>
59-
<X className="h-5 w-5" />
59+
<X className="text-sm"/>
6060
</button>
6161
</div>
6262
</div>

0 commit comments

Comments
 (0)