+ >
+ );
+}
+
+export default MainSearch;
diff --git a/frontend/src/components/Results.tsx b/frontend/src/screens/Results.tsx
similarity index 94%
rename from frontend/src/components/Results.tsx
rename to frontend/src/screens/Results.tsx
index 22e19e2..b8fb0ce 100644
--- a/frontend/src/components/Results.tsx
+++ b/frontend/src/screens/Results.tsx
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react';
import { useLocation, useNavigate } from 'react-router-dom';
-import styles from '../screens/Results.module.css'; // Make sure this path is correct
+import styles from '../styles/Results.module.css'; // Make sure this path is correct
interface File {
id: string;
@@ -40,7 +40,7 @@ const Results: React.FC = () => {
}, [location]);
const handleSearchAgain = () => {
- navigate('/');
+ navigate('/search');
};
if (isLoading) return Loading...
;
diff --git a/frontend/src/styles/App.css b/frontend/src/styles/App.css
index 2909c89..b77c0f5 100644
--- a/frontend/src/styles/App.css
+++ b/frontend/src/styles/App.css
@@ -1,12 +1,18 @@
nav {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 1rem 2rem;
- border: 3px solid #f1f1f1;
- border-radius: 5px;
- color: black;
- background-color: white;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 1rem 2rem;
+ margin: 0;
+ width: 100%;
+ background-color: #145DA0;
+ border: none;
+ border-radius: 0;
+ position: fixed;
+ top: 0;
+ left: 0;
+ z-index: 1000;
+ box-sizing: border-box;
}
.App {
display: flex;
diff --git a/frontend/src/screens/Results.module.css b/frontend/src/styles/Results.module.css
similarity index 100%
rename from frontend/src/screens/Results.module.css
rename to frontend/src/styles/Results.module.css
diff --git a/frontend/src/types/types.ts b/frontend/src/types/types.ts
new file mode 100644
index 0000000..ff5b577
--- /dev/null
+++ b/frontend/src/types/types.ts
@@ -0,0 +1,15 @@
+export interface Professor {
+ id: number;
+ name: string;
+}
+export interface Course {
+ id: number;
+ name: string;
+ number: string;
+}
+
+export interface Topic {
+ id: number;
+ name: string;
+ description: string;
+}
\ No newline at end of file