Skip to content

Commit 6419238

Browse files
committed
Refactoring files structure of project
1 parent f54fcd2 commit 6419238

29 files changed

+142
-139
lines changed

db.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,32 @@
66
"github": "https://github.com/ssoc2dzafeiris",
77
"email": "kremou115@gmail.com",
88
"linkedin": "https://www.linkedin.com/in/dimizafe/",
9-
"bio": "Full Stack development",
9+
"bio": "A passionate Software Developer from Greece, with experience in Web technologies.",
1010
"title": "Junior Software Developer"
1111
},
1212
{
1313
"fname": "Stelios",
1414
"lname": "Katsaberis",
1515
"github": "https://github.com/ssoc2skatsaberis",
16-
"email": "",
16+
"email": "katsaberisst@hotmail.com",
1717
"linkedin": "https://www.linkedin.com/in/stelios-katsaberis-a8b03737/",
1818
"bio": "",
19-
"title": "Information Technology Teacher at Fasma, private cram school"
19+
"title": "Information Technology Teacher"
2020
},
2121
{
2222
"fname": "Nikolaos",
2323
"lname": "Katsafados",
2424
"github": "https://github.com/ssoc2nkatsafados",
25-
"email": "",
25+
"email": "nikoskatsaphados@gmail.com",
2626
"linkedin": "https://www.linkedin.com/in/nikos-katsafados/",
27-
"bio": "",
28-
"title": "Aspiring Web Developer"
27+
"bio": "Historian graduate with passion for technology and Web Development. Ι'm seeking to leverage my technical skills and i have a strong desire to learn more in the development of web application",
28+
"title": "Web Developer"
2929
},
3030
{
3131
"fname": "Nikos",
3232
"lname": "Petrolis",
33-
"github": "https://github.com/ssoc2npetrolis",
34-
"email": "",
33+
"github": "github.com/npetrolis",
34+
"email": "npetrolis@gmail.com",
3535
"linkedin": "https://www.linkedin.com/in/nikospetrolis/",
3636
"bio": "",
3737
"title": "Aspiring Web Developer"

src/components/App.js renamed to src/App.js

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
import { BrowserRouter, Routes, Route } from "react-router-dom"
2-
import Dashboard from "./Dashboard"
3-
import Cards from "./cards"
4-
import AddNewCourse from "./AddNewCourse"
5-
import About from './About'
6-
import Error from "./ErrorPage";
7-
import SharedLayout from "./SharedLayout"
8-
import CourseDetails from './CoursePractisePage';
2+
3+
// imported all the basics pages
4+
import Dashboard from "./Pages/Dashboard";
5+
import Cards from "./Pages/cards";
6+
import AddNewCourse from "./Pages/AddNewCourse";
7+
import About from './Pages/About';
8+
import Error from "./Pages/ErrorPage";
9+
import CourseDetails from './Pages/CourseDetails';
10+
11+
// import the shared layout component
12+
import SharedLayout from "./Layout/SharedLayout";
913

1014

1115
const App = () => {
File renamed without changes.
File renamed without changes.

src/components/SharedLayout.js renamed to src/Layout/SharedLayout.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import {Outlet } from 'react-router-dom';
3-
import Navbar from './Navbar';
3+
import Navbar from './Layout/Navbar';
44
import PageFooter from "./Footer"
55

66
export default function SharedLayout(){

src/Pages/About.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import React from 'react';
2+
import {Link} from 'react-router-dom';
3+
import TeamSection from './Team';
4+
5+
export default function About(){
6+
return(
7+
<div className="container mt-2 bg-white text-slate-700 flex flex-wrap items-center px-5 mx-auto">
8+
<div className="flex flex-col">
9+
<Link to='/' className='text-black-50 px-2 col-md-5'>Back | <i className="fa fa-home-alt"></i></Link>
10+
</div>
11+
<section className='flex flex-col'>
12+
<h1>About our project</h1>
13+
<p>
14+
Στα πλαίσια του προγράμματος Start School of Code της Socialinov Front End Development, στην ομάδα μας τέθηκε ως εργασία η εξής εργασία¨
15+
<br/>
16+
<ul>
17+
<li></li>
18+
</ul>
19+
</p>
20+
</section>
21+
22+
<TeamSection />
23+
</div>
24+
)
25+
}
File renamed without changes.

src/components/CoursePractisePage.js renamed to src/Pages/CourseDetails.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@ import LoadingSpinner from './LoadingSpinner';
44

55
import Buttons from "./buttons";
66

7-
export default function CoursePractisePage(){
7+
export default function CourseDetails(){
88

99
const API = 'http://localhost:3001/courses/';
1010
const params = useParams();
1111
const [course,setCourse]= useState(null);
12-
const [isLoading, setIsLoading] = useState(false);
1312
// const navigate = useNavigate();
1413

1514
const fetchDetails = () =>{
@@ -26,14 +25,11 @@ export default function CoursePractisePage(){
2625
}
2726
useEffect(()=>{
2827
fetchDetails()
29-
// .then(navigate("/courses/01"))
3028
},[]);
3129

3230

3331
if (!course) {
34-
return(
35-
<div><LoadingSpinner/></div>
36-
);
32+
return(<div><LoadingSpinner/></div>);
3733
}else{
3834
return(
3935
<>

src/components/Dashboard.js renamed to src/Pages/Dashboard.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
2-
import Stats from "./Stats";
3-
import Welcome from "./Welcome";
4-
import CourseTable from "./CourseTable";
2+
import Stats from "./components/Others/Stats";
3+
import Welcome from "./components/Others/Welcome";
4+
import CourseTable from "./components/Others/CourseTable";
55

66
export default function Dashboard() {
77

File renamed without changes.

0 commit comments

Comments
 (0)