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
7bc7617b
Commit
7bc7617b
authored
Nov 18, 2021
by
Hasitha Samarasekara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Top advertisement added
parent
dd4940a7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
118 additions
and
11 deletions
+118
-11
WebFrontEnd/smartcoach-frontend/src/App.js
WebFrontEnd/smartcoach-frontend/src/App.js
+7
-11
WebFrontEnd/smartcoach-frontend/src/Components/HomePage/AdvertisementTopSmall.js
...frontend/src/Components/HomePage/AdvertisementTopSmall.js
+106
-0
WebFrontEnd/smartcoach-frontend/src/Components/HomePage/TutorProfileView.js
...oach-frontend/src/Components/HomePage/TutorProfileView.js
+5
-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.
WebFrontEnd/smartcoach-frontend/src/App.js
View file @
7bc7617b
...
...
@@ -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/HomePage/AdvertisementTopSmall.js
0 → 100644
View file @
7bc7617b
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
'
,
marginLeft
:
'
20px
'
}}
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
=
{
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
'
,
marginLeft
:
'
20px
'
}}
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
=
{
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/TutorProfileView.js
View file @
7bc7617b
...
...
@@ -7,6 +7,7 @@ import * as configs from "../../Config/config";
import
*
as
Icon
from
"
react-bootstrap-icons
"
;
import
moment
from
"
moment
"
;
import
swal
from
"
sweetalert
"
;
import
TopSmallAdd
from
"
./AdvertisementTopSmall
"
;
export
default
class
TutorProfileView
extends
Component
{
...
...
@@ -273,7 +274,11 @@ export default class TutorProfileView extends Component{
<
div
className
=
"
row
"
style
=
{{
width
:
'
100%
'
}}
>
<
ItemNav
/>
<
/div
>
<
div
className
=
"
App
"
style
=
{{
marginTop
:
'
80px
'
,
paddingTop
:
'
0px
'
}}
>
<
div
className
=
"
row
"
>
<
TopSmallAdd
><
/TopSmallAdd
>
<
/div
>
<
div
className
=
"
row
"
>
<
div
className
=
"
col
"
>
<
div
className
=
"
row
"
>
...
...
WebFrontEnd/smartcoach-frontend/src/Images/ad_top_s_01.jpg
0 → 100644
View file @
7bc7617b
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