Skip to content

Commit 581179d

Browse files
authored
Merge pull request #3 from ctc-uci/2-recruitment-navbar-link-is-disabled-with-no-context
Open Recruitment page
2 parents 07420bd + 379d554 commit 581179d

File tree

2 files changed

+30
-11
lines changed

2 files changed

+30
-11
lines changed

src/app/Recruitment/page.tsx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
"use client";
22
import { VStack, Text } from "@chakra-ui/react";
33

4+
import { Footer } from "@/utils/components";
45
import Hero from "@/utils/components/Hero";
56
import BreakText from "@/utils/components/TextUtils/BreakText";
67
import { RECRUITMENT_OPEN } from "@/utils/constants/Settings";
78

9+
810
export default function RecruitmentPage() {
911
return (
1012
<VStack spacing={0}>
@@ -32,11 +34,29 @@ export default function RecruitmentPage() {
3234
textAlign="center"
3335
>
3436
Applications are currently closed and will reopen in the Fall.{" "}
35-
<BreakText /> Follow us on social media to stay up to date!
37+
<BreakText /> Follow us on{" "}
38+
<a
39+
href="https://www.instagram.com/ctc.uci/"
40+
target="_blank"
41+
rel="noopener noreferrer"
42+
>
43+
<Text
44+
as="span"
45+
color="ctc.purple"
46+
textDecoration="underline"
47+
fontWeight="bold"
48+
_hover={{ color: "purple.500" }}
49+
transition="color 0.3s ease-out"
50+
>
51+
social media
52+
</Text>
53+
</a>{" "}
54+
to stay up to date!
3655
</Text>
3756
)}
3857
</VStack>
3958
</Hero>
59+
<Footer />
4060
</VStack>
4161
);
4262
}

src/utils/components/Navbars/DesktopNavbar.tsx

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,17 @@ function DesktopNavbar({ pathname, navItems }: DesktopNavbarProps) {
7878
)}
7979
</ChakraLink>
8080

81-
{navItems.map((item, index) => {
81+
{navItems.map((item) => {
8282
const isActive = pathname === item.href;
83-
const isWIP = index >= navItems.length - 1; // Last two items
8483
return (
8584
<ChakraLink
8685
key={item.href}
87-
href={isWIP ? "#" : item.href}
86+
href={item.href}
8887
as={Link}
89-
color={isWIP ? "gray.400" : isActive ? "white" : "gray.800"}
88+
color={isActive ? "white" : "gray.800"}
9089
fontWeight="500"
9190
fontSize="md"
92-
bg={isActive && !isWIP ? "ctc.purple" : "transparent"}
91+
bg={isActive ? "ctc.purple" : "transparent"}
9392
borderRadius="full"
9493
px={4}
9594
py={2}
@@ -115,17 +114,17 @@ function DesktopNavbar({ pathname, navItems }: DesktopNavbarProps) {
115114
opacity: 0,
116115
}}
117116
_hover={{
118-
color: isWIP ? "gray.400" : isActive ? "white" : "ctc.purple",
119-
bg: isActive && !isWIP ? "ctc.purple" : "transparent",
117+
color: isActive ? "white" : "ctc.purple",
118+
bg: isActive ? "ctc.purple" : "transparent",
120119
_before: {
121-
transform: isWIP || isActive ? "scale(0)" : "scale(1)",
122-
opacity: isWIP || isActive ? 0 : 1,
120+
transform: isActive ? "scale(0)" : "scale(1)",
121+
opacity: isActive ? 0 : 1,
123122
},
124123
}}
125124
transition="color 0.3s ease-out"
126125
textDecoration="none"
127126
whiteSpace="nowrap"
128-
cursor={isWIP ? "not-allowed" : "pointer"}
127+
cursor={"pointer"}
129128
>
130129
{item.label}
131130
</ChakraLink>

0 commit comments

Comments
 (0)