Skip to content

Commit

Permalink
Merge pull request #281 from northwesternfintech/update-homepage
Browse files Browse the repository at this point in the history
Closed applications for fall 2024
  • Loading branch information
stevenewald authored Oct 5, 2024
2 parents 22dd5e7 + 2d64a6a commit 8b6aa0f
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 28 deletions.
3 changes: 2 additions & 1 deletion web/app/landing/DashOrRegister.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ export default async function DashOrRegister() {
<a
href="/register"
className="text-md font-semibold leading-6 text-white">
Apply <span aria-hidden="true">&rarr;</span>
Sign in <span aria-hidden="true">&rarr;</span>
</a>
);
}
// TODO: Change above to "Apply" when apps reopen

return (
<a href="/dash" className="text-md font-semibold leading-6 text-white">
Expand Down
16 changes: 9 additions & 7 deletions web/app/landing/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ export default function Hero() {
/>
</div>
<div className="mx-auto max-w-2xl py-32 sm:py-48 lg:py-56">
<div className="hidden sm:mb-8 sm:flex sm:justify-center">
<div className="relative rounded-full px-3 py-1 text-sm leading-6 text-gray-400 ring-1 ring-white/10 hover:ring-white/20">
Applications open for Fall 2024.{" "}
<a href="/register" className="font-semibold text-white">
<span className="absolute inset-0" aria-hidden="true" />
Apply <span aria-hidden="true">&rarr;</span>
</a>
<div className="hidden">
<div className="hidden sm:mb-8 sm:flex sm:justify-center">
<div className="relative rounded-full px-3 py-1 text-sm leading-6 text-gray-400 ring-1 ring-white/10 hover:ring-white/20">
Applications open for Fall 2024.{" "}
<a href="/register" className="font-semibold text-white">
<span className="absolute inset-0" aria-hidden="true" />
Apply <span aria-hidden="true">&rarr;</span>
</a>
</div>
</div>
</div>
<div className="text-center">
Expand Down
2 changes: 1 addition & 1 deletion web/app/landing/navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export const navigation = [
{ name: "About", href: "https://www.nuft.dev" },
{ name: "FAQ", href: "#faq" },
{ name: "Contact", href: "/contact" },
{ name: "Apply", href: "/register" },
// { name: "Apply", href: "/register" },
];
40 changes: 21 additions & 19 deletions web/app/register/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ export default function RegistrationForm(props: { user: any }) {

// TODO: sanitize better
const createNewUserHandler = async () => {
Swal.fire({ icon: 'info', title: 'Applications closed for Fall 2024.' });
return;
if (!confirmEntriesAdded()) return;

const response = await fetch("/api/protected/db/user/createUser", {
Expand Down Expand Up @@ -324,26 +326,26 @@ export default function RegistrationForm(props: { user: any }) {
defaultValue="Northwestern University"
className="block w-full rounded-md border-0 bg-white/5 py-1.5 text-white shadow-sm ring-1 ring-inset ring-white/10 focus:ring-2 focus:ring-inset focus:ring-indigo-500 sm:text-sm sm:leading-6" />
</div>
</div>
</div>

<div className="sm:col-span-2">
<label
htmlFor="year"
className="block text-sm font-medium leading-6 text-white">
Graduation Year
</label>
<div className="mt-2">
<select
id="year"
name="year"
onChange={handleInputChange}
className="block w-full rounded-md border-0 bg-white/5 py-1.5 text-white shadow-sm ring-1 ring-inset ring-white/10 focus:ring-2 focus:ring-inset focus:ring-indigo-500 sm:text-sm sm:leading-6">
<option>2025</option>
<option>2026</option>
<option>2027</option>
<option>2028</option>
</select>
</div>
<div className="sm:col-span-2">
<label
htmlFor="year"
className="block text-sm font-medium leading-6 text-white">
Graduation Year
</label>
<div className="mt-2">
<select
id="year"
name="year"
onChange={handleInputChange}
className="block w-full rounded-md border-0 bg-white/5 py-1.5 text-white shadow-sm ring-1 ring-inset ring-white/10 focus:ring-2 focus:ring-inset focus:ring-indigo-500 sm:text-sm sm:leading-6">
<option>2025</option>
<option>2026</option>
<option>2027</option>
<option>2028</option>
</select>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 8b6aa0f

Please sign in to comment.