Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2023-029
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
2023-029
2023-029
Commits
e82bca29
Commit
e82bca29
authored
Sep 02, 2023
by
janithgamage1.ed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update
Desc : update project
parent
b9bcfc51
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
7 deletions
+67
-7
Project/Frontend/SignConnectPlus/src/sections/learning-management/learning-curriculums-subscribed/CurriculumSection.tsx
...ent/learning-curriculums-subscribed/CurriculumSection.tsx
+67
-7
No files found.
Project/Frontend/SignConnectPlus/src/sections/learning-management/learning-curriculums-subscribed/CurriculumSection.tsx
View file @
e82bca29
// material-ui
// material-ui
import
{
import
{
Box
,
Grid
,
Grid
,
LinearProgress
,
Stack
,
Stack
,
Typography
Typography
}
from
'
@mui/material
'
;
}
from
'
@mui/material
'
;
import
{
useTheme
}
from
'
@mui/material/styles
'
;
// project import
// project import
import
TutorialSection
from
'
./TutorialSection
'
;
import
TutorialSection
from
'
./TutorialSection
'
;
// types
// types
import
MainCard
from
'
components/MainCard
'
;
import
{
ThemeDirection
}
from
'
types/config
'
;
import
{
curriculumTypeUserProgress
}
from
"
types/userProgress
"
;
import
{
curriculumTypeUserProgress
}
from
"
types/userProgress
"
;
// assets
// assets
import
{
CheckCircleOutlined
,
UnorderedListOutlined
}
from
'
@ant-design/icons
'
;
import
Reader
from
'
assets/images/analytics/reader.svg
'
;
import
ReportCard
from
'
components/cards/statistics/ReportCard
'
;
// ==============================|| Curriculum - Section ||============================== //
// ==============================|| Curriculum - Section ||============================== //
const
CurriculumSection
=
({
curriculum
}:
{
curriculum
:
curriculumTypeUserProgress
})
=>
{
const
CurriculumSection
=
({
curriculum
}:
{
curriculum
:
curriculumTypeUserProgress
})
=>
{
const
theme
=
useTheme
();
return
(
return
(
<>
<>
<
Stack
spacing=
{
2
}
sx=
{
{
padding
:
2
}
}
>
<
Stack
spacing=
{
2
}
sx=
{
{
padding
:
2
}
}
>
<
Typography
variant=
"h5"
>
{
curriculum
.
curriculumDescription
}
</
Typography
>
<
MainCard
title=
"Overview"
>
<
Grid
container
spacing=
{
2
}
>
<
Grid
item
xs=
{
7
}
sm=
{
7
}
sx=
{
{
bgcolor
:
`${theme.palette.primary.main}`
,
position
:
'
relative
'
,
p
:
2.75
,
borderRadius
:
{
xs
:
2
,
sm
:
'
8px 0px 0px 8px
'
},
overflow
:
'
hidden
'
}
}
>
<
Stack
>
<
Typography
variant=
"h5"
color=
"white"
>
{
curriculum
.
curriculumDescription
}
</
Typography
>
<
Typography
color=
{
theme
.
palette
.
grey
[
0
]
}
variant=
"caption"
sx=
{
{
maxWidth
:
'
55%
'
,
pt
:
1
}
}
>
Your learning capacity is 80% as daily analytics
</
Typography
>
<
Typography
variant=
"h4"
color=
"white"
sx=
{
{
pt
:
8
,
pb
:
1
,
zIndex
:
1
}
}
>
{
(
curriculum
.
curriculumMarkUser
/
curriculum
.
curriculumMark
)
*
100
}
% Completed
</
Typography
>
<
Box
sx=
{
{
maxWidth
:
'
60%
'
}
}
>
<
LinearProgress
variant=
"determinate"
color=
"success"
value=
{
(
curriculum
.
curriculumMarkUser
/
curriculum
.
curriculumMark
)
*
100
}
/>
</
Box
>
<
Box
sx=
{
{
position
:
'
absolute
'
,
bottom
:
-
7
,
right
:
0
,
...(
theme
.
direction
===
ThemeDirection
.
RTL
&&
{
transform
:
{
xs
:
'
rotateY(180deg)
'
,
sm
:
'
inherit
'
}
})
}
}
>
<
img
alt=
"reder"
src=
{
Reader
}
/>
</
Box
>
</
Stack
>
</
Grid
>
<
Grid
md=
{
5
}
item
>
<
Grid
container
spacing=
{
2
}
>
<
Grid
md=
{
12
}
item
>
<
ReportCard
primary=
{
`LEVEL - ${curriculum.curriculumLevel}`
}
secondary=
"Curriculum Level"
color=
{
theme
.
palette
.
error
.
main
}
iconPrimary=
{
UnorderedListOutlined
}
/>
</
Grid
>
<
Grid
md=
{
12
}
item
>
<
ReportCard
primary=
{
`Pass Mark - ${curriculum.curriculumMark}`
}
secondary=
"Curriculum Pass Mark"
color=
{
theme
.
palette
.
success
.
dark
}
iconPrimary=
{
CheckCircleOutlined
}
/>
</
Grid
>
</
Grid
>
</
Grid
>
</
Grid
>
</
MainCard
>
<
MainCard
title=
"Tutorials"
>
<
Grid
container
spacing=
{
2
}
>
<
Grid
container
spacing=
{
2
}
>
{
curriculum
.
tutorials
.
map
((
tutorial
,
index
)
=>
{
{
curriculum
.
tutorials
.
map
((
tutorial
,
index
)
=>
{
return
(<
TutorialSection
tutorial=
{
tutorial
!
}
/>)
return
(<
TutorialSection
tutorial=
{
tutorial
!
}
/>)
})
}
})
}
</
Grid
>
</
Grid
>
</
MainCard
>
</
Stack
>
</
Stack
>
</>
</>
);
);
...
...
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