Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-049
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-049
2021-049
Commits
30549259
Commit
30549259
authored
Nov 20, 2021
by
Hasitha Samarasekara
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'IT18063288' into 'master'
It18063288 See merge request
!19
parents
98164579
5fdf3eef
Changes
12
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
668 additions
and
101 deletions
+668
-101
BackEnd/WebBackEnd/models/ClassStudentRquestList.model.js
BackEnd/WebBackEnd/models/ClassStudentRquestList.model.js
+16
-0
BackEnd/WebBackEnd/routes/createClass.route.js
BackEnd/WebBackEnd/routes/createClass.route.js
+61
-0
WebFrontEnd/smartcoach-frontend/src/App.js
WebFrontEnd/smartcoach-frontend/src/App.js
+7
-11
WebFrontEnd/smartcoach-frontend/src/Components/Home.js
WebFrontEnd/smartcoach-frontend/src/Components/Home.js
+84
-52
WebFrontEnd/smartcoach-frontend/src/Components/HomePage/AdvertisementRightSide.js
...rontend/src/Components/HomePage/AdvertisementRightSide.js
+65
-0
WebFrontEnd/smartcoach-frontend/src/Components/HomePage/AdvertisementTopSmall.js
...frontend/src/Components/HomePage/AdvertisementTopSmall.js
+106
-0
WebFrontEnd/smartcoach-frontend/src/Components/HomePage/TutorCard.js
.../smartcoach-frontend/src/Components/HomePage/TutorCard.js
+41
-32
WebFrontEnd/smartcoach-frontend/src/Components/HomePage/TutorProfileView.js
...oach-frontend/src/Components/HomePage/TutorProfileView.js
+285
-4
WebFrontEnd/smartcoach-frontend/src/Components/Navbar.js
WebFrontEnd/smartcoach-frontend/src/Components/Navbar.js
+3
-2
WebFrontEnd/smartcoach-frontend/src/Images/ad_r1.jpg
WebFrontEnd/smartcoach-frontend/src/Images/ad_r1.jpg
+0
-0
WebFrontEnd/smartcoach-frontend/src/Images/ad_r2.jpg
WebFrontEnd/smartcoach-frontend/src/Images/ad_r2.jpg
+0
-0
WebFrontEnd/smartcoach-frontend/src/Images/ad_top_s_01.jpg
WebFrontEnd/smartcoach-frontend/src/Images/ad_top_s_01.jpg
+0
-0
No files found.
BackEnd/WebBackEnd/models/ClassStudentRquestList.model.js
0 → 100644
View file @
30549259
const
mongoose
=
require
(
'
mongoose
'
);
const
Schema
=
mongoose
.
Schema
;
const
ClassStudentRequestSchema
=
new
Schema
({
class_id
:{
type
:
mongoose
.
Schema
.
Types
.
ObjectId
,
ref
:
'
Classes
'
},
student_id
:{
type
:
mongoose
.
Schema
.
Types
.
ObjectId
,
ref
:
'
student
'
},
tutor_id
:{
type
:
mongoose
.
Schema
.
Types
.
ObjectId
,
ref
:
'
tutor
'
},
},{
timestamps
:
true
,
});
const
ClassStudentRequestList
=
mongoose
.
model
(
'
ClassStudentRequestList
'
,
ClassStudentRequestSchema
);
module
.
exports
=
ClassStudentRequestList
;
\ No newline at end of file
BackEnd/WebBackEnd/routes/createClass.route.js
View file @
30549259
...
...
@@ -2,6 +2,7 @@ const router = require('express').Router();
let
classes
=
require
(
'
../models/createClass.model
'
);
let
student
=
require
(
'
../models/student.user.model
'
);
let
studentList
=
require
(
'
../models/ClassStudentList.model
'
);
let
studentRequestList
=
require
(
'
../models/ClassStudentRquestList.model
'
);
const
mongoose
=
require
(
"
mongoose
"
);
router
.
route
(
'
/add
'
).
post
(
async
(
req
,
res
)
=>
{
...
...
@@ -161,4 +162,64 @@ router.route('/studentList/:id').get(function (req, res) {
});
});
router
.
route
(
'
/studentRequestList/add
'
).
post
((
req
,
res
)
=>
{
const
class_id
=
req
.
body
.
_id
;
const
student_id
=
req
.
body
.
student_id
;
const
tutor_id
=
req
.
body
.
tutor_id
;
console
.
log
(
"
classID:
"
+
class_id
);
console
.
log
(
"
student_nic:
"
+
student_id
);
classes
.
findById
(
class_id
,
function
(
err
,
tutorsClass
){
if
(
!
tutorsClass
)
res
.
status
(
404
).
send
(
"
Sorry Class Could not Found.
"
);
else
{
student
.
find
({
"
_id
"
:
student_id
}).
then
(
student
=>
{
console
.
log
(
student
)
console
.
log
(
student
[
0
].
_id
)
if
(
student
[
0
].
student_nic
===
""
){
res
.
status
(
500
).
send
(
"
Sorry, This Student Not Registered
"
);
}
else
{
const
student_id
=
student
[
0
].
_id
;
const
newClassStudent
=
new
studentRequestList
({
class_id
,
student_id
,
tutor_id
});
studentRequestList
.
find
({
"
student_id
"
:
student_id
,
"
class_id
"
:
class_id
}).
then
(
reqClass
=>
{
console
.
log
(
"
reqClass :
"
)
console
.
log
(
reqClass
)
if
(
reqClass
.
length
>
0
){
res
.
status
(
501
).
send
(
"
Already Request to this Class
"
);
}
else
{
newClassStudent
.
save
().
then
(
result
=>
{
res
.
json
(
'
Student Requested is complete!
'
);
})
.
catch
(
err
=>
{
res
.
status
(
500
).
send
(
"
Update not possible
"
);
});
}
})
}
}).
catch
(
err
=>
res
.
status
(
500
).
json
(
'
Eroor:
'
+
err
));
}
});
});
module
.
exports
=
router
;
\ No newline at end of file
WebFrontEnd/smartcoach-frontend/src/App.js
View file @
30549259
...
...
@@ -14,11 +14,9 @@ import Dashboard from "./Components/Admin/Dashboard";
import
StudentDashboard
from
"
./Components/Student/StudentDashboard
"
;
import
QuestionDetails
from
"
./Components/IT18050240/question_details
"
import
QuestionLayout
from
"
./Components/IT18050240/question_layout
"
import
AdminQuestionManagement
from
"
./Components/IT18050240/admin_question_management.js
"
//
import AdminQuestionManagement from "./Components/IT18050240/admin_question_management.js"
import
QuestionBank
from
"
./Components/IT18050240/question_bank
"
import
LessonAndExam
from
"
./Components/IT18050240/lessonandexampage
"
;
import
AutomaticQuestion
from
"
./Components/IT18050240/automatic_question
"
import
Upload
from
"
./Components/IT18050240/UploadPage
"
;
import
TutorProfileView
from
"
./Components/HomePage/TutorProfileView
"
;
function
App
()
{
return
(
...
...
@@ -30,7 +28,8 @@ function App() {
<
Route
path
=
"
/SignUp
"
exact
component
=
{
SignUp
}
/
>
<
Route
path
=
"
/beforeConfirm
"
exact
component
=
{
beforeConfirmation
}
/
>
<
Route
path
=
"
/AccountVerified/:id
"
exact
component
=
{
VerifiedAccount
}
/
>
{
/*<Route path="/studentDashboard" exact component={StudentDashboard}/>*/
}
<
Route
path
=
"
/Home/ViewProfile/:id
"
exact
component
=
{
TutorProfileView
}
/
>
<
Route
path
=
"
/studentDashboard
"
exact
component
=
{
StudentDashboard
}
/
>
{
/*<Route path="/" exact component={Dashboard}/>*/
}
...
...
@@ -38,13 +37,10 @@ function App() {
<
Route
path
=
"
/admin
"
><
Dashboard
/><
/Route
>
<
Route
path
=
"
/studentDashboard
"
><
StudentDashboard
/><
/Route
>
<
Route
path
=
"
/questiondetails
"
exact
component
=
{
QuestionDetails
}
/
>
<
Route
path
=
"
/question
/:id
"
exact
component
=
{
QuestionLayout
}
/
>
<
Route
path
=
"
/questionmanagement/:id
"
exact
component
=
{
AdminQuestionManagement
}
/
>
<
Route
path
=
"
/question
"
exact
component
=
{
QuestionLayout
}
/
>
{
/*<Route path="/questionmanagement" exact component={AdminQuestionManagement}/>*/
}
<
Route
path
=
"
/questionbank
"
exact
component
=
{
QuestionBank
}
/
>
<
Route
path
=
"
/questionmanagement
"
exact
component
=
{
AdminQuestionManagement
}
/
>
<
Route
path
=
"
/lesson
"
exact
component
=
{
LessonAndExam
}
/
>
<
Route
path
=
"
/automaticquestion
"
exact
component
=
{
AutomaticQuestion
}
/
>
<
Route
path
=
"
/upload
"
exact
component
=
{
Upload
}
/
>
{
/*<Route path="/edititem/:id" exact component={AdminQuestionManagement}/>*/
}
<
/Switch
>
...
...
WebFrontEnd/smartcoach-frontend/src/Components/Home.js
View file @
30549259
...
...
@@ -15,6 +15,7 @@ import * as Icon from 'react-bootstrap-icons';
import
axios
from
"
axios
"
;
import
*
as
configs
from
"
../Config/config
"
;
import
TutorCard
from
"
./HomePage/TutorCard
"
;
import
RightSideAdd
from
"
./HomePage/AdvertisementRightSide
"
;
import
swal
from
"
sweetalert
"
;
import
Carousel
from
"
react-bootstrap/Carousel
"
;
...
...
@@ -414,6 +415,16 @@ export default class Home extends Component {
let
FinalStudentCountScore
=
(
valueForStudentCount
*
Number
(
this
.
state
.
RVStudentCount
))
/
100
;
let
FinalScore
=
finalReviewScore
+
FinalRatingScore
+
FinalStudentCountScore
;
let
oneday
=
24
*
60
*
60
*
1000
;
let
NoOFDays
=
(
todayDate
-
new
Date
(
tutor
.
tutor_registered_date
));
let
NoOFDaysRegistered
=
Math
.
ceil
(
NoOFDays
/
oneday
);
// if((todayDate - tutor.tutor_registered_date.getDate()) > ){
//
// }
if
(
NoOFDaysRegistered
>=
365
&&
Number
(
tutor
.
tutor_review_count
)
>
10
)
{
const
temp
=
{
tutor_id
:
tutor
.
teacher
,
tutor_name
:
tutor
.
tutor_name
,
...
...
@@ -426,19 +437,27 @@ export default class Home extends Component {
tutor_reviewValue
:
tutor
.
tutor_reviewValue
,
tutor_avg_rating
:
tutor
.
tutor_avg_rating
,
tutor_finalScore
:
FinalScore
,
tutor_review_count
:
tutor
.
tutor_review_count
tutor_review_count
:
tutor
.
tutor_review_count
,
recommended_
:
true
}
let
oneday
=
24
*
60
*
60
*
1000
;
let
NoOFDays
=
(
todayDate
-
new
Date
(
tutor
.
tutor_registered_date
));
let
NoOFDaysRegistered
=
Math
.
ceil
(
NoOFDays
/
oneday
);
// if((todayDate - tutor.tutor_registered_date.getDate()) > ){
//
// }
if
(
NoOFDaysRegistered
>=
365
&&
Number
(
tutor
.
tutor_review_count
)
>
10
)
{
TutorRecommendedFinalList
.
push
(
temp
);
}
else
{
const
temp
=
{
tutor_id
:
tutor
.
teacher
,
tutor_name
:
tutor
.
tutor_name
,
tutor_subjects
:
tutor
.
tutor_subjects
,
tutor_class_type
:
tutor
.
tutor_class_type
,
tutor_main_district
:
tutor
.
tutor_main_district
,
tutor_main_city
:
tutor
.
tutor_main_city
,
tutor_medium
:
tutor
.
tutor_medium
,
tutor_qualification
:
tutor
.
tutor_qualification
,
tutor_reviewValue
:
tutor
.
tutor_reviewValue
,
tutor_avg_rating
:
tutor
.
tutor_avg_rating
,
tutor_finalScore
:
FinalScore
,
tutor_review_count
:
tutor
.
tutor_review_count
,
recommended_
:
false
}
TutorOnlyFilterFinalList
.
push
(
temp
);
}
...
...
@@ -880,24 +899,26 @@ export default class Home extends Component {
}
<
/div
>
<
div
className
=
"
row
"
style
=
{{
background
:
'
#
F5F4ED
'
,
marginLeft
:
'
50px
'
,
marginRight
:
'
50px
'
,
marginTop
:
'
10px
'
}}
>
<
h5
style
=
{{
margin
:
'
10
px
'
}}
>
{
this
.
state
.
TutorFilteredList
.
length
}
Results
<
/h5
>
style
=
{{
background
:
'
#
1E4258
'
,
marginLeft
:
'
50px
'
,
marginRight
:
'
50px
'
,
marginTop
:
'
10px
'
}}
>
<
h5
style
=
{{
color
:
"
white
"
,
float
:
'
left
'
,
margin
:
'
15
px
'
}}
>
{
this
.
state
.
TutorFilteredList
.
length
}
Results
<
/h5
>
<
/div
>
<
div
className
=
"
row
"
>
<
div
className
=
"
col-8
"
>
{
this
.
state
.
TutorFilteredRecommendedListFinal
.
length
>
0
?
<
div
className
=
"
row
"
style
=
{{
background
:
'
#F5F4ED
'
,
background
:
'
#1E4258
'
,
marginLeft
:
'
50px
'
,
marginRight
:
'
5
0px
'
,
marginRight
:
'
0px
'
,
marginTop
:
'
10px
'
}}
>
<
h4
>
Recommended
List
<
/h4
>
<
h4
style
=
{{
color
:
"
white
"
,
float
:
'
left
'
,
margin
:
'
15px
'
}}
>
Recommended
List
<
/h4
>
<
/div
>
:
<
div
>
<
/div
>
}
<
div
className
=
""
>
<
div
className
=
""
style
=
{{
marginLeft
:
'
50px
'
,
marginRight
:
'
0px
'
}}
>
{
this
.
state
.
TutorFilteredRecommendedListFinal
.
length
>
0
?
this
.
state
.
TutorFilteredRecommendedListFinal
.
map
((
card
)
=>
{
return
(
<
TutorCard
data
=
{
card
}
/>
)
})
:
<
div
><
/div>
}
...
...
@@ -906,24 +927,35 @@ export default class Home extends Component {
{
this
.
state
.
TutorOnlyFilteredListFinal
.
length
>
0
?
<
div
className
=
"
row
"
style
=
{{
background
:
'
#F5F4ED
'
,
background
:
'
#1E4258
'
,
marginLeft
:
'
50px
'
,
marginRight
:
'
5
0px
'
,
marginRight
:
'
0px
'
,
marginTop
:
'
10px
'
}}
>
<
h4
>
Filtered
List
<
/h4
>
<
h4
style
=
{{
color
:
"
white
"
,
float
:
'
left
'
,
margin
:
'
15px
'
}}
>
Filtered
List
<
/h4
>
<
/div
>
:
<
div
>
<
/div
>
}
<
div
className
=
""
>
<
div
className
=
""
style
=
{{
marginLeft
:
'
50px
'
,
marginRight
:
'
0px
'
}}
>
{
this
.
state
.
TutorOnlyFilteredListFinal
.
length
>
0
?
this
.
state
.
TutorOnlyFilteredListFinal
.
map
((
card
)
=>
{
return
(
<
TutorCard
data
=
{
card
}
/>
)
})
:
<
div
><
/div>
}
<
/div
>
<
/div
>
<
div
className
=
"
col-3
"
>
{
this
.
state
.
TutorOnlyFilteredListFinal
.
length
>
0
?
<
RightSideAdd
><
/RightSideAdd
>
:
<
div
>
<
/div
>
}
<
/div
>
<
/div
>
<
div
className
=
"
app-main__outer
"
>
<
HomeFooter
/>
...
...
WebFrontEnd/smartcoach-frontend/src/Components/HomePage/AdvertisementRightSide.js
0 → 100644
View file @
30549259
import
React
,
{
Component
}
from
"
react
"
;
import
Carousel
from
"
react-bootstrap/Carousel
"
;
import
AddR1
from
"
../../Images/ad_r1.jpg
"
;
import
AddR2
from
"
../../Images/ad_r2.jpg
"
;
export
default
class
AdvertisementRightSide
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
};
//this.FindTutor = this.FindTutor.bind(this);
}
render
()
{
return
(
<
div
>
<
Carousel
style
=
{{
width
:
'
100%
'
}}
nextLabel
=
{
false
}
prevLabel
=
{
false
}
indicators
=
{
false
}
>
<
Carousel
.
Item
>
<
img
className
=
"
toast-bottom-full-width
"
src
=
{
AddR1
}
alt
=
"
First slide
"
/>
<
Carousel
.
Caption
>
<
/Carousel.Caption
>
<
/Carousel.Item
>
<
Carousel
.
Item
>
<
img
className
=
"
d-block w-100
"
src
=
{
AddR2
}
alt
=
"
Second slide
"
/>
<
Carousel
.
Caption
>
<
/Carousel.Caption
>
<
/Carousel.Item
>
{
/*<Carousel.Item>*/
}
{
/* <img*/
}
{
/* className="d-block w-100"*/
}
{
/* src={AddR1}*/
}
{
/* alt="Third slide"*/
}
{
/* />*/
}
{
/* <Carousel.Caption>*/
}
{
/* </Carousel.Caption>*/
}
{
/*</Carousel.Item>*/
}
<
/Carousel
>
<
/div
>
)
}
}
\ No newline at end of file
WebFrontEnd/smartcoach-frontend/src/Components/HomePage/AdvertisementTopSmall.js
0 → 100644
View file @
30549259
import
React
,
{
Component
}
from
"
react
"
;
import
Carousel
from
"
react-bootstrap/Carousel
"
;
import
AddR1
from
"
../../Images/ad_top_s_01.jpg
"
;
import
AddR2
from
"
../../Images/ad_r2.jpg
"
;
export
default
class
AdvertisementTopSmall
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
};
//this.FindTutor = this.FindTutor.bind(this);
}
render
()
{
return
(
<
div
className
=
"
row
"
>
<
div
className
=
"
col
"
>
<
Carousel
style
=
{{
width
:
'
100%
'
,
height
:
'
100px
'
,
margin
:
'
10px
'
}}
nextLabel
=
{
false
}
prevLabel
=
{
false
}
indicators
=
{
false
}
>
<
Carousel
.
Item
>
<
img
style
=
{{
width
:
'
90%
'
}}
className
=
"
toast-bottom-full-width
"
src
=
{
AddR1
}
alt
=
"
First slide
"
/>
<
Carousel
.
Caption
>
<
/Carousel.Caption
>
<
/Carousel.Item
>
<
Carousel
.
Item
>
<
img
style
=
{{
width
:
'
90%
'
}}
className
=
"
d-block w-100
"
src
=
{
AddR1
}
alt
=
"
Second slide
"
/>
<
Carousel
.
Caption
>
<
/Carousel.Caption
>
<
/Carousel.Item
>
{
/*<Carousel.Item>*/
}
{
/* <img*/
}
{
/* className="d-block w-100"*/
}
{
/* src={AddR1}*/
}
{
/* alt="Third slide"*/
}
{
/* />*/
}
{
/* <Carousel.Caption>*/
}
{
/* </Carousel.Caption>*/
}
{
/*</Carousel.Item>*/
}
<
/Carousel
>
<
/div
>
<
div
className
=
"
col
"
>
<
Carousel
style
=
{{
width
:
'
100%
'
,
height
:
'
100px
'
,
margin
:
'
10px
'
}}
nextLabel
=
{
false
}
prevLabel
=
{
false
}
indicators
=
{
false
}
>
<
Carousel
.
Item
>
<
img
style
=
{{
width
:
'
90%
'
}}
className
=
"
toast-bottom-full-width
"
src
=
{
AddR1
}
alt
=
"
First slide
"
/>
<
Carousel
.
Caption
>
<
/Carousel.Caption
>
<
/Carousel.Item
>
<
Carousel
.
Item
>
<
img
style
=
{{
width
:
'
90%
'
}}
className
=
"
d-block w-100
"
src
=
{
AddR1
}
alt
=
"
Second slide
"
/>
<
Carousel
.
Caption
>
<
/Carousel.Caption
>
<
/Carousel.Item
>
{
/*<Carousel.Item>*/
}
{
/* <img*/
}
{
/* className="d-block w-100"*/
}
{
/* src={AddR1}*/
}
{
/* alt="Third slide"*/
}
{
/* />*/
}
{
/* <Carousel.Caption>*/
}
{
/* </Carousel.Caption>*/
}
{
/*</Carousel.Item>*/
}
<
/Carousel
>
<
/div
>
<
/div
>
)
}
}
\ No newline at end of file
WebFrontEnd/smartcoach-frontend/src/Components/HomePage/TutorCard.js
View file @
30549259
...
...
@@ -15,8 +15,8 @@ export default class TutorCard extends Component{
render
()
{
return
(
<
div
className
=
"
main-card mb-3 card
"
>
<
div
className
=
"
row
"
style
=
{{
background
:
'
#F5F4ED
'
,
marginLeft
:
'
50px
'
,
marginRight
:
'
5
0px
'
,
marginTop
:
'
10px
'
,
marginBottom
:
'
10px
'
}}
>
<
div
className
=
"
col
-9
"
>
<
div
className
=
"
row
"
style
=
{{
background
:
'
#F5F4ED
'
,
marginLeft
:
'
10px
'
,
marginRight
:
'
1
0px
'
,
marginTop
:
'
10px
'
,
marginBottom
:
'
10px
'
}}
>
<
div
className
=
"
col
"
>
<
div
className
=
"
row
"
style
=
{{
background
:
'
#F8F8F8
'
}}
>
<
div
className
=
"
col-8
"
style
=
{{
margin
:
'
5px
'
,
border
:
'
solid
'
,
padding
:
'
10px
'
,
borderColor
:
'
#216E9B
'
}}
>
<
div
className
=
"
row
"
>
...
...
@@ -60,6 +60,8 @@ export default class TutorCard extends Component{
<
/div
>
<
/div
>
<
div
className
=
"
col
"
style
=
{{
margin
:
'
5px
'
,
border
:
'
solid
'
,
padding
:
'
10px
'
,
borderColor
:
'
#216E9B
'
}}
>
<
div
className
=
"
row
"
>
<
div
className
=
"
col
"
>
<
div
className
=
"
row
"
>
<
div
className
=
"
col-1
"
>
<
img
src
=
{
Star
}
style
=
{{
width
:
'
20px
'
,
height
:
'
20px
'
}}
/
>
...
...
@@ -90,15 +92,22 @@ export default class TutorCard extends Component{
style
=
{{
background
:
"
#216E9B
"
,
color
:
"
white
"
,
marginLeft
:
'
15px
'
,
marginRight
:
'
15px
'
}}
><
b
>
View
Profile
<
/b></
button
><
/Link
>
<
/div
>
<
/div
>
<
div
className
=
"
col-
"
>
{
this
.
props
.
data
.
recommended_
?
<
img
src
=
{
RecommendIcon
}
style
=
{{
width
:
'
80px
'
,
height
:
'
70px
'
,
float
:
'
left
'
,
margin
:
'
10px
'
}}
/
>
:
<
div
>
<
/div
>
}
<
/div
>
<
div
className
=
"
col
"
style
=
{{
background
:
'
#F8F8F8
'
}}
>
<
div
>
<
br
/>
<
/div
>
<
img
src
=
{
RecommendIcon
}
style
=
{{
width
:
'
100px
'
,
height
:
'
90px
'
,
float
:
'
left
'
,
margin
:
'
10px
'
}}
/
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
...
...
WebFrontEnd/smartcoach-frontend/src/Components/HomePage/TutorProfileView.js
View file @
30549259
This diff is collapsed.
Click to expand it.
WebFrontEnd/smartcoach-frontend/src/Components/Navbar.js
View file @
30549259
...
...
@@ -65,8 +65,9 @@ export default class NavBar extends Component {
top
:
'
15px
'
,
right
:
'
120px
'
,
color
:
'
#EAE4E4
'
,
marginRight
:
'
50px
'
}}
><
h5
>
{
this
.
state
.
user_name
!==
null
?
<
span
style
=
{{
cursor
:
'
pointer
'
}}
onClick
=
{()
=>
{
window
.
location
.
replace
(
"
/studentDashboard
"
);}}
>
{
this
.
state
.
user_name
}
<
/span> : <label onClick={
()
=>
{
marginRight
:
'
50px
'
,
cursor
:
'
pointer
'
}}
><
h5
>
{
this
.
state
.
user_name
!==
null
?
<
span
style
=
{{
cursor
:
'
pointer
'
}}
onClick
=
{()
=>
{
window
.
location
.
replace
(
"
/studentDashboard
"
);}}
>
{
this
.
state
.
user_name
}
<
/span> : <label style={{cursor:'pointer'}} onClick={
()
=>
{
// window.location.replace("UserLogin");
window
.
location
=
'
/UserLogin
'
;
}}
>
Login
<
/label>} </
h5
><
/label
>
...
...
WebFrontEnd/smartcoach-frontend/src/Images/ad_r1.jpg
0 → 100644
View file @
30549259
46.3 KB
WebFrontEnd/smartcoach-frontend/src/Images/ad_r2.jpg
0 → 100644
View file @
30549259
42.9 KB
WebFrontEnd/smartcoach-frontend/src/Images/ad_top_s_01.jpg
0 → 100644
View file @
30549259
28 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment