Skip to content

Commit 3c78dfe

Browse files
authored
conf website: disable scholarship form link (#1504)
1 parent e06b3ec commit 3c78dfe

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

src/components/Conf/Button/index.tsx

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,30 @@ interface ButtonProps {
55
children: ReactNode
66
className?: string
77
href?: string
8+
disabled?: boolean
89
}
910

10-
function ButtonConf({ href, className, children }: ButtonProps): ReactElement {
11-
return (
11+
function ButtonConf({
12+
href,
13+
className,
14+
children,
15+
disabled,
16+
}: ButtonProps): ReactElement {
17+
return disabled ? (
18+
<span
19+
className={clsx(
20+
"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",
21+
"bg-gray-400 text-white font-medium",
22+
className
23+
)}
24+
>
25+
{children}
26+
</span>
27+
) : (
1228
<a
29+
aria-disabled={disabled}
1330
className={clsx(
14-
"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",
31+
"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",
1532
"bg-[--rhodamine] text-white font-medium",
1633
className
1734
)}

src/pages/conf/faq.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,8 +817,8 @@ const faq: Array<{ id: string; title: string; contents: ReactNode }> = [
817817
<li>Application Deadline — Friday, July 21, 2023 11:59 PM PST</li>
818818
<li>Notifications — Week of August 7, 2023</li>
819819
</ul>
820-
<ButtonConf href="https://forms.gle/PwgWSTJ872Pce9XW6">
821-
Apply for a Scholarship
820+
<ButtonConf disabled href="https://forms.gle/PwgWSTJ872Pce9XW6">
821+
SCHOLARSHIP APPLICATION CLOSED
822822
</ButtonConf>
823823
</>
824824
),

0 commit comments

Comments
 (0)