Skip to content

Commit c3c6b0e

Browse files
Homepage frontend changes- Sagar (#114)
2 parents 9ce1d42 + 05ba897 commit c3c6b0e

File tree

6 files changed

+337
-31
lines changed

6 files changed

+337
-31
lines changed

package-lock.json

Lines changed: 71 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"glob": "^11.0.0",
2020
"lru-cache": "^11.0.1",
2121
"postcss-resolve-url": "^0.0.1",
22-
"react": "^18.0.0",
22+
"react": "^18.3.1",
2323
"react-cookie": "^7.2.2",
2424
"react-dom": "^18.3.1",
2525
"react-hook-form": "^7.53.2",

src/context/AuthContext.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ interface AuthProviderProps {
1616
}
1717

1818
export const AuthProvider = ({ children }: AuthProviderProps) => {
19-
const [auth, setAuth] = useState<{ isAuthenticated: boolean }>({
19+
const [auth, setAuth] = useState<{ isAuthenticated: boolean; token: string | null }>({
2020
isAuthenticated: false,
21+
token: null,
2122
});
2223

2324
const checkAuth = async () => {

src/shared/components/Navigation/StickyFooter.tsx

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,38 @@ import logo from "../../../images/LabConnect_Logo.webp";
44
import { useAuth } from "../../../context/AuthContext.tsx";
55

66
export default function StickyFooter() {
7-
87
const { auth } = useAuth();
98

109
const routes = auth.isAuthenticated
1110
? [
12-
{ name: "Jobs", href: "/jobs", current: true },
13-
{ name: "Create", href: "/create", current: false },
14-
{ name: "Staff", href: "/staff", current: false },
15-
{ name: "Profile", href: "/profile", current: false },
16-
{ name: "Sign Out", href: "/signout", current: false },
17-
]
11+
{ name: "Jobs", href: "/jobs", current: true },
12+
{ name: "Create", href: "/create", current: false },
13+
{ name: "Staff", href: "/staff", current: false },
14+
{ name: "Profile", href: "/profile", current: false },
15+
{ name: "Sign Out", href: "/signout", current: false },
16+
]
1817
: [{ name: "Sign In", href: "/signin", current: false }];
1918

2019
return (
2120
<section className="stickyfooter-general">
22-
<h1 className="stickyfooter-header">
21+
<h1 className="stickyfooter-header text-center text-2xl font-bold">
2322
Made by{" "}
24-
<Link to="https://new.rcos.io" className="no-underline text-red-600 hover:text-red-800 focus:text-red-800">
23+
<Link
24+
to="https://new.rcos.io"
25+
className="no-underline text-red-600 hover:text-red-800 focus:text-red-800"
26+
>
2527
RCOS
2628
</Link>
2729
</h1>
28-
<div className="stickyfooter-info mt-5">
30+
<div className="stickyfooter-info mt-5 flex flex-col items-center">
2931
<div className="pb-3">
3032
<img src={logo} alt="LabConnect" width="160" height="160 / (319/289)" />
3133
</div>
3234

33-
<div className="w-40">
35+
<div className="w-40 text-center">
3436
<div>
35-
<b>Contact Us</b>
36-
<p className="text-base">
37+
<b className="text-xl">Contact Us</b>
38+
<p className="text-lg">
3739
<Link
3840
to="https://discord.gg/tsaxCKjYHT"
3941
className="grey-link hover:text-neutral-950 focus:text-neutral-950"
@@ -51,14 +53,14 @@ export default function StickyFooter() {
5153
</p>
5254
</div>
5355
</div>
54-
<div className="w-40">
55-
<b>Resources</b>
56+
<div className="w-40 text-center">
57+
<b className="text-xl">Resources</b>
5658
<br />
5759
{routes.map((item) => (
5860
<React.Fragment key={item.name}>
5961
<Link
6062
to={item.href}
61-
className="grey-link hover:text-neutral-950 focus:text-neutral-950"
63+
className="grey-link hover:text-neutral-950 focus:text-neutral-950 text-lg"
6264
aria-current={item.current}
6365
>
6466
{item.name}
@@ -67,7 +69,7 @@ export default function StickyFooter() {
6769
</React.Fragment>
6870
))}
6971
</div>
70-
</div >
71-
</section >
72+
</div>
73+
</section>
7274
);
7375
}

0 commit comments

Comments
 (0)