Skip to content

Commit 4a18571

Browse files
Merge pull request #2 from ssoc2dzafeiris/Refactoring_FILES
Refactoring files
2 parents f54fcd2 + e93ff5f commit 4a18571

30 files changed

+155
-154
lines changed

db.json

Lines changed: 9 additions & 10 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"
@@ -124,6 +124,5 @@
124124
"online": false,
125125
"description": "Το σεμινάριο απευθύνεται σε συμμετέχοντες που επιθυμούν να μάθουν πώς να επεξεργάζονται εικόνες και να δημιουργούν τα δικά τους γραφικά με εύκολο τρόπο. εικόνας. Χρησιμοποιώντας την online πλατφόρμα σχεδιασμού Canva θα φτιάξουμε εύκολα και γρήγορα δελεαστικά δημιουργικά. Αν θέλεις να ανεβάζεις ελκυστικές αναρτήσεις στο διαδίκτυο, αυτό το σεμινάριο είναι φτιαγμένο για σένα!"
126126
}
127-
128127
]
129-
}
128+
}

public/images/courses/notfound.png

30.7 KB
Loading

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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import {Outlet } from 'react-router-dom';
3-
import Navbar from './Navbar';
4-
import PageFooter from "./Footer"
3+
import Navbar from './Navbar'
4+
import PageFooter from './Footer'
55

66
export default function SharedLayout(){
77

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 '../components/Others/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+
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ const AddNewCourse = () => {
5252
<div className="w-5/6 mt-5 mx-auto flex justify-center items-center h-screens">
5353
<form onSubmit={handleSubmit} className=" max-h-90vh w-5/6 bg-white p-8 rounded-lg shadow-md overflow-y-auto ">
5454
{showAlert && (
55-
<div class="p-4 mb-4 text-sm text-green-800 rounded-lg bg-green-50 dark:bg-gray-800 dark:text-green-400" role="alert">
56-
<span class="font-medium">Το μάθημα καταχωρήθηκε επιτυχώς!</span>
55+
<div className="p-4 mb-4 text-sm text-green-800 rounded-lg bg-green-50 dark:bg-gray-800 dark:text-green-400" role="alert">
56+
<span className="font-medium">Το μάθημα καταχωρήθηκε επιτυχώς!</span>
5757
</div>
5858
)}
5959
<h1 className="font-extrabold font-weight: 900 text-5xl mb-8 ">Add Course</h1>

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
import {useState,useEffect} from 'react';
22
import {useParams} from "react-router-dom";
3-
import LoadingSpinner from './LoadingSpinner';
3+
import LoadingSpinner from '../components/Utilities/Loaders/LoadingSpinner.js';
44

5-
import Buttons from "./buttons";
5+
import Buttons from "../components/Utilities/Buttons/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,20 +25,17 @@ 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
<>
4036
<div className="flex flex-wrap items-center my-5 p-5 rounded-2xl shadow-3xl bg-white selection:bg-fuchsia-200 selection:text-fuchsia-900">
4137
<div className="max-w-full md:w-6/12 ml-auto mr-auto mt-auto flex flex-col">
42-
<img src={`/images${course.imagePath}`} alt={course.title} className='object-cover object-center rounded-lg shadow-lg' />
38+
<img src={course.imagePath ? `/images${course.imagePath}` : `/images/courses/notfound.png`} alt={course.title} className='object-cover object-center rounded-lg shadow-lg' />
4339
</div>
4440
<div className="w-full md:w-5/12 ml-auto mr-auto flex flex-col">
4541
<div className="md:pr-12">

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/CourseTable";
55

66
export default function Dashboard() {
77

0 commit comments

Comments
 (0)