diff --git a/public/images/grid-background.jpg b/public/images/grid-background.jpg
new file mode 100644
index 0000000..e6f0e84
Binary files /dev/null and b/public/images/grid-background.jpg differ
diff --git a/src/components/Header.jsx b/src/components/Header.jsx
index deb40e6..e456c92 100644
--- a/src/components/Header.jsx
+++ b/src/components/Header.jsx
@@ -17,6 +17,9 @@ const Header = () => {
Login
+
+ Assignment
+
diff --git a/src/components/Hero.jsx b/src/components/Hero.jsx
index d23c456..8eb0022 100644
--- a/src/components/Hero.jsx
+++ b/src/components/Hero.jsx
@@ -6,10 +6,10 @@ function Hero() {
return (
-
Welcome to BattleSnake!!!
+
Welcome to Bytecamp!!!
Play for Fun!
- A competitive game where your code is the controller. All you need is
+ A competitive game where your code is the controller. All you need is
a web server that responds to the Battlesnake API.
diff --git a/src/components/Navbar.jsx b/src/components/Navbar.jsx
index a705b7e..7b94987 100644
--- a/src/components/Navbar.jsx
+++ b/src/components/Navbar.jsx
@@ -1,19 +1,41 @@
-import React from 'react'
-import '../scss/styles.scss'
-import '../scss/components/_navbar.scss'
+import React from "react";
+import "../scss/styles.scss";
+import "../scss/components/_navbar.scss";
+import { Link } from "react-router-dom";
const Navbar = () => {
return (
- )
-}
+ );
+};
-export default Navbar
\ No newline at end of file
+export default Navbar;
diff --git a/src/main.jsx b/src/main.jsx
index b80fa22..f7abc3f 100644
--- a/src/main.jsx
+++ b/src/main.jsx
@@ -5,11 +5,10 @@ import "./scss/styles.scss";
import Navbar from "./components/Navbar";
import Hero from "./components/Hero";
import Services from "./components/Services";
+import Header from "./components/Header";
createRoot(document.getElementById("root")).render(
-
-
);
diff --git a/src/pages/AssignmentPage.jsx b/src/pages/AssignmentPage.jsx
new file mode 100644
index 0000000..ede6235
--- /dev/null
+++ b/src/pages/AssignmentPage.jsx
@@ -0,0 +1,107 @@
+// Page - Assignment
+import { useEffect, useState } from 'react';
+import '../scss/styles.scss';
+
+const AssignmentPage = () => {
+ const [files, setFiles] = useState([]);
+
+ useEffect(() => {
+ document.title = 'Assignment';
+ }, []);
+
+ const handleFileChange = (e) => {
+ if (e.target.files) {
+ const newFiles = Array.from(e.target.files);
+ setFiles(prevFiles => [...prevFiles, ...newFiles]);
+ }
+ };
+
+ const handleRemoveFile = (index) => {
+ setFiles(prevFiles => prevFiles.filter((_, i) => i !== index));
+ };
+
+ const handleSubmit = (e) => {
+ e.preventDefault();
+ // Here you would typically send the files to a server
+ console.log('Files to submit:', files);
+ alert('Assignment submitted successfully!');
+ };
+
+ return (
+
+
+
+
Assignment Submission
+
+
Due on Jan 16, 2025 11:59 PM
+
+
+
+
+
+
Submit Assignment
+
({files.length}) file(s) to submit
+
After uploading, you must click Submit to complete the submission.
- To keep connected with us please login with your personal info
-
+
Please login with your personal info
-
Hello, Friend!
-
Enter your personal details and start journey with us
+
Hello, Instructor!
+
Please enter your personal details here
diff --git a/src/pages/SignIn.jsx b/src/pages/SignIn.jsx
index b6a203a..9976eb5 100644
--- a/src/pages/SignIn.jsx
+++ b/src/pages/SignIn.jsx
@@ -31,22 +31,16 @@ function SignInForm() {
return (
diff --git a/src/pages/SignUp.jsx b/src/pages/SignUp.jsx
index 64d9042..cba2444 100644
--- a/src/pages/SignUp.jsx
+++ b/src/pages/SignUp.jsx
@@ -18,7 +18,7 @@ function SignUpForm() {
const { name, email, password } = state;
alert(
- `You are sign up with name: ${name} email: ${email} and password: ${password}`
+ `You are signed in with name: ${name} email: ${email} and password: ${password}`
);
for (const key in state) {
@@ -32,17 +32,11 @@ function SignUpForm() {
return (
);
diff --git a/src/routers/AppRouter.jsx b/src/routers/AppRouter.jsx
index cff1ce3..c4ff117 100644
--- a/src/routers/AppRouter.jsx
+++ b/src/routers/AppRouter.jsx
@@ -11,6 +11,7 @@ import HomePage from "../pages/HomePage";
import LoginPage from "../pages/LoginPage";
import PageCodeEditor from "../pages/CodeEditor";
import PageNotFound from "../pages/PageNotFound";
+import AssignmentPage from "../pages/AssignmentPage";
import Hero from "../components/Hero";
import Navbar from "../components/Navbar";
import Services from "../components/Services";
@@ -19,32 +20,30 @@ const AppRouter = () => {
return (