Skip to content

Commit

Permalink
Some quality changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ShahriarDhruvo committed Feb 7, 2021
1 parent 57562f9 commit 4a448e3
Show file tree
Hide file tree
Showing 14 changed files with 29 additions and 35 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ In this lockdown our <b>Hands-on Laboratory Activities</b> are suffering the mos
<br /> <br />
So, as the major part of our <i>ClassPortal</i> we tried to solve this issue by introducing <b>Interactive Simulation</b> in our project.

![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/Cell_Simulation_Screenshots/Screenshot%20(150).png?raw=true)
![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/screenshots/Screenshot%20(150).png?raw=true)

![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/Cell_Simulation_Screenshots/Screenshot%20(154).png?raw=true)
![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/screenshots/Screenshot%20(154).png?raw=true)

![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/Cell_Simulation_Screenshots/Screenshot%20(155).png?raw=true)
![alt text](https://github.com/ShahriarDhruvo/HackTheVerse_SUST_NOOBs/blob/main/screenshots/Screenshot%20(155).png?raw=true)

# How to run this project
1. Install the dependencies in server/requirements.txt
Expand Down
20 changes: 9 additions & 11 deletions frontend/src/components/CreateCourse/CreateCourse.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function CreateCourse() {
const [courses, setCourses] = useState(null);
//const [select_course, set_select_course] = useState(null);
//const [created_rooms, set_Created_rooms] = useState([]);
const [errors, seterrors] = useState('')
const [errors, seterrors] = useState("");
const handleClose = () => setShow(false);
const handleShow = () => setShow(true);

Expand Down Expand Up @@ -77,7 +77,6 @@ function CreateCourse() {
});
};
fetchuserrooms();*/

}, []);

const handle_course_create = (e, data) => {
Expand All @@ -96,7 +95,7 @@ function CreateCourse() {
//console.log(response.data);
})
.catch((err) => {
seterrors('The item from this course is already created')
seterrors("The item from this course is already created");
});
};
create_room();
Expand All @@ -107,11 +106,11 @@ function CreateCourse() {
courses.length > 0 &&
courses.map((item, i) => {
//if(!created_rooms.includes(item.id)){
return (
<option key={i} value={item.id}>
{item.title}
</option>
);
return (
<option key={i} value={item.id}>
{item.title}
</option>
);
//}
});
return (
Expand All @@ -128,9 +127,9 @@ function CreateCourse() {
<h2 className="text-center ccourse__heading">
Create Room
</h2>
{Object.keys(errors).length !==0 ? (
{Object.keys(errors).length !== 0 && (
<CustomAlert status={JSON.stringify(errors)} />
):(<p></p>)}
)}
<Form
ref={form}
className="form"
Expand Down Expand Up @@ -177,7 +176,6 @@ function CreateCourse() {
Cancel
</Button>
</Modal.Footer>

</Modal>
</>
);
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/components/Footer/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Footer = () => {
<ul className="list-inline social">
<li className="list-inline-item clink">
<a
href="#"
href="/"
target="_blank"
rel="noopener noreferrer"
className="social-icon"
Expand All @@ -21,7 +21,7 @@ const Footer = () => {

<li className="list-inline-item clink">
<a
href="#"
href="/"
target="_blank"
rel="noopener noreferrer"
className="social-icon"
Expand All @@ -32,7 +32,7 @@ const Footer = () => {

<li className="list-inline-item clink">
<a
href="#"
href="/"
target="_blank"
rel="noopener noreferrer"
className="social-icon"
Expand All @@ -43,7 +43,7 @@ const Footer = () => {

<li className="list-inline-item clink">
<a
href="#"
href="/"
target="_blank"
rel="noopener noreferrer"
className="social-icon"
Expand All @@ -54,7 +54,7 @@ const Footer = () => {

<li className="list-inline-item clink">
<a
href="#"
href="/"
target="_blank"
rel="noopener noreferrer"
className="social-icon"
Expand Down
26 changes: 12 additions & 14 deletions frontend/src/components/Navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,17 @@ const Navs = () => {
return (
<Navbar bg="" variant="light" className="nav">
<Navbar.Brand href="#home" className="nav__brand">
<div>
<Link to={`/`}>
<img
src={"/static/img/logo.png"}
width={"40"}
height={"40"}
className={"d-inline-block align-top"}
className="nav__logo"
alt={"logo"}
/>
<span className="nav__heading">ClassPortal</span>
</Link>
</div>
<Link to={`/`}>
<img
src={"/static/img/logo.png"}
width={"40"}
height={"40"}
className={"d-inline-block align-top"}
className="nav__logo"
alt={"logo"}
/>
<span className="nav__heading">ClassPortal</span>
</Link>
</Navbar.Brand>

{!localStorage.getItem("isAuthenticated") ? (
Expand Down Expand Up @@ -66,7 +64,7 @@ const Navs = () => {
style={{ fontSize: "1.09rem" }}
icon={["fab", "unity"]}
/>
<span className="font-weight-bold">
<span className="d-none d-md-inline font-weight-bold">
Simulations
</span>
</NavLink>
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file modified server/db.sqlite3
Binary file not shown.
2 changes: 0 additions & 2 deletions server/server/.gitignore

This file was deleted.

0 comments on commit 4a448e3

Please sign in to comment.