Skip to content

Commit 66beb5a

Browse files
Will-PR (#104)
2 parents 59b692e + 7ae5f4e commit 66beb5a

File tree

12 files changed

+158
-136
lines changed

12 files changed

+158
-136
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function App() {
2525
<HelmetProvider>
2626
<section>
2727
<MainNavigation />
28-
<main className="container-xl p-8">
28+
<main className="flex flex-col min-h-screen p-8">
2929
<Routes>
3030
<Route path="/" element={<Home />} />
3131
<Route path="/health" element={<p>App is Healthy</p>} />

src/context/AuthContext.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@ export const AuthProvider = ({ children }: AuthProviderProps) => {
5353
);
5454
};
5555

56-
export const useAuth = () => useContext(AuthContext);
56+
export const useAuth = () => useContext(AuthContext);
57+

src/opportunities/pages/Jobs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const Jobs = () => {
99
var [pages, switchPage] = usePageNavigation(["Search", "Saved"], "Search");
1010

1111
return (
12-
<section className="flex flex-col h-screen justify-between gap-3">
12+
<section className="flex flex-col h-screen justify-between gap-3 p-1">
1313
<section className="flex2 gap-3">
1414
<section>
1515
<PageNavigation title="Jobs" pages={pages} switchPage={switchPage} />

src/shared/components/Navigation/StickyFooter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default function StickyFooter() {
5151
</p>
5252
</div>
5353
</div>
54-
<div>
54+
<div className="w-40">
5555
<b>Resources</b>
5656
<br />
5757
{routes.map((item) => (

src/shared/components/Profile/EditInformation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const EditInformation = ({className, id, name, department, researchCenter, descr
3333
className="flex2 gap-2"
3434
>
3535
<Input
36-
label="Description"
36+
label="Description (min. 5 characters)"
3737
type="textarea"
3838
name={"description"}
3939
errors={errors}

src/shared/pages/404.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
import React from "react";
22
import SEO from "../components/SEO.tsx";
3+
import { Link } from "react-router-dom";
34

45
const PageNotFound = () => {
56
return (
67
<>
78
<SEO title="404 Not Found" description="Not found page" />
8-
<h1>Error: Page Not Found</h1>
9+
<p className="text-4xl text-center pt-20">Whoops!</p>
10+
<p className="text-xl text-center pt-8">It looks like that page couldn't be reached. Please click the link below to return to LabConnect or try refreshing the page</p>
11+
<section className="pt-8 flex justify-center">
12+
<Link to="/" className="btn btn-primary w-1/5 text-gray-200 bg-blue-600 hover:bg-blue-900 focus:bg-blue-900">Home</Link>
13+
</section>
914
</>
1015
);
1116
};

src/shared/pages/Home.tsx

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,11 @@ const Home = () => {
88
<section>
99
<SEO title="Labconnect" description="Labconnect home page" />
1010
<section className="home-general">
11-
<br />
12-
<br />
13-
<br />
14-
<div className="img-center">
11+
<div className="img-center pt-28">
1512
<img src={logo} alt="LabConnect" height="289" />
1613
</div>
1714

18-
<br />
19-
<br />
20-
<br />
21-
<br />
22-
23-
<h1 className="text-xl">Welcome to LabConnect!</h1>
15+
<h1 className="text-xl pt-32">Welcome to LabConnect!</h1>
2416
<br />
2517
<p className="text-base">
2618
If you are a student, go to the{" "}
@@ -34,7 +26,7 @@ const Home = () => {
3426
<b>Sign In</b>
3527
</Link>{" "}
3628
and then go to{" "}
37-
<Link to="/createPost" className="blue-link text-blue-600 hover:text-blue-900 focus:text-blue-900">
29+
<Link to="/create" className="blue-link text-blue-600 hover:text-blue-900 focus:text-blue-900">
3830
<b>Create</b>
3931
</Link>{" "}
4032
to start posting <br />
@@ -44,9 +36,6 @@ const Home = () => {
4436
</Link>{" "}
4537
to view and edit your current posts.
4638
</p>
47-
<br />
48-
<br />
49-
<br />
5039
</section>
5140
</section>
5241
);

src/shared/pages/LoginRedirect.tsx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import React from "react";
2+
import SEO from "../components/SEO.tsx";
3+
import { Link } from "react-router-dom";
4+
const LoginRedirect = () => {
5+
return (
6+
<>
7+
<p className="text-4xl text-center pt-20">Whoops!</p>
8+
<p className="text-xl text-center pt-8">It looks like you're not logged in. Click the button below and log in to see this page</p>
9+
<section className="pt-8 flex justify-center">
10+
<Link to="/login" className="btn btn-primary w-1/5">Log In</Link>
11+
</section>
12+
</>
13+
);
14+
};
15+
export default LoginRedirect;

src/staff/components/Checkbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const CheckBox = ({
2020
<p className="text-red-500">{errorMessage}</p>
2121
)}
2222

23-
<div className="flex2 gap-2">
23+
<div className="flex2">
2424
{options &&
2525
options.map((item) => {
2626
return (

0 commit comments

Comments
 (0)