Skip to content

conf website: disable scholarship form link #1504

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions src/components/Conf/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,30 @@ interface ButtonProps {
children: ReactNode
className?: string
href?: string
disabled?: boolean
}

function ButtonConf({ href, className, children }: ButtonProps): ReactElement {
return (
function ButtonConf({
href,
className,
children,
disabled,
}: ButtonProps): ReactElement {
return disabled ? (
<span
className={clsx(
"cursor-default transition ease-in-out no-underline inline-flex text-center w-[fit-content] border-0 py-2 px-6 rounded text-sm sm:text-base whitespace-nowrap",
"bg-gray-400 text-white font-medium",
className
)}
>
{children}
</span>
) : (
<a
aria-disabled={disabled}
className={clsx(
"cursor-pointer transition ease-in-out no-underline inline-flex text-center w-[fit-content] border-0 py-2 px-6 no-underline hover:no-underline focus:outline-none hover:drop-shadow-md hover:[transform:scale(1.05)] rounded text-sm sm:text-base whitespace-nowrap",
"cursor-pointer transition ease-in-out no-underline inline-flex text-center w-[fit-content] border-0 py-2 px-6 focus:outline-none hover:drop-shadow-md hover:[transform:scale(1.05)] rounded text-sm sm:text-base whitespace-nowrap",
"bg-[--rhodamine] text-white font-medium",
className
)}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/conf/faq.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,8 @@ const faq: Array<{ id: string; title: string; contents: ReactNode }> = [
<li>Application Deadline — Friday, July 21, 2023 11:59 PM PST</li>
<li>Notifications — Week of August 7, 2023</li>
</ul>
<ButtonConf href="https://forms.gle/PwgWSTJ872Pce9XW6">
Apply for a Scholarship
<ButtonConf disabled href="https://forms.gle/PwgWSTJ872Pce9XW6">
SCHOLARSHIP APPLICATION CLOSED
</ButtonConf>
</>
),
Expand Down