Skip to content

Commit

Permalink
Issue #PS-1534 feat: Foundation Course detail view UI implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyas1434shinde committed Jul 30, 2024
1 parent f3278e5 commit 3a01f70
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 14 deletions.
4 changes: 3 additions & 1 deletion public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@
"COURSE_PLANNER": {
"COURSE_PLANNER": "Course Plan",
"FOUNDATION_COURSE": "Foundation Course",
"MAIN_COURSE": "Main Course"
"MAIN_COURSE": "Main Course",
"COLLAPSE_ALL":"Collapse All",
"RESOURCES":"Resources"
}
}
43 changes: 30 additions & 13 deletions src/pages/course-planner-detail.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import Header from '@/components/Header';
import { logEvent } from '@/utils/googleAnalytics';
import ArrowDropUpIcon from '@mui/icons-material/ArrowDropUp';
import ArrowForwardIcon from '@mui/icons-material/ArrowForward';
import CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline';
import KeyboardBackspaceOutlinedIcon from '@mui/icons-material/KeyboardBackspaceOutlined';
import MenuBookIcon from '@mui/icons-material/MenuBook';
import SubdirectoryArrowRightIcon from '@mui/icons-material/SubdirectoryArrowRight';
import RadioButtonUncheckedIcon from '@mui/icons-material/RadioButtonUnchecked';
import {
Accordion,
AccordionDetails,
Expand All @@ -15,9 +16,6 @@ import { useTheme } from '@mui/material/styles';
import { useTranslation } from 'next-i18next';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
import { buildStyles, CircularProgressbar } from 'react-circular-progressbar';
import RadioButtonUncheckedIcon from '@mui/icons-material/RadioButtonUnchecked';
import CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline';
import ArrowForwardIcon from '@mui/icons-material/ArrowForward';

const CoursePlannerDetail = () => {
const theme = useTheme<any>();
Expand Down Expand Up @@ -127,6 +125,7 @@ const CoursePlannerDetail = () => {
color: theme.palette.warning['300'],
}}
>
{t('COURSE_PLANNER.COLLAPSE_ALL')}
Collapse All
</Box>
<ArrowDropUpIcon
Expand All @@ -147,7 +146,6 @@ const CoursePlannerDetail = () => {
boxShadow: 'none',
background: '#F1E7D9',
border: 'none',
// background: 'none',
}}
>
<AccordionSummary
Expand Down Expand Up @@ -192,17 +190,27 @@ const CoursePlannerDetail = () => {
fontSize="14px"
color={theme.palette.warning['300']}
>
Topic 1 - Real Numbers
Topic 1 - Real Numbers {/* will came from API */}
</Typography>
</Box>
<Typography fontWeight="600" fontSize="12px" color="#7C766F">
Jan, Feb
Jan, Feb {/* will came from API */}
</Typography>
</Box>
</AccordionSummary>
<AccordionDetails sx={{ padding: '0' }}>
<Box sx={{ borderBottom: '2px solid #D0C5B4' }}>
<Box sx={{ py: '10px', px: '16px', background: '#fff' }}>
<Box
sx={{
borderBottom: `1px solid ${theme.palette.warning['A100']}`,
}}
>
<Box
sx={{
py: '10px',
px: '16px',
background: theme.palette.warning['A400'],
}}
>
<Box
sx={{
display: 'flex',
Expand All @@ -211,7 +219,16 @@ const CoursePlannerDetail = () => {
gap: '20px',
}}
>
<Box>The Fundamental Theorem of Arithmetic</Box>
<Box
sx={{
fontSize: '16px',
fontWeight: '400',
color: theme.palette.warning['300'],
}}
>
The Fundamental Theorem of Arithmetic{' '}
{/* will came from API */}
</Box>
<Box
sx={{
display: 'flex',
Expand All @@ -237,15 +254,15 @@ const CoursePlannerDetail = () => {
</Box>
<Box
sx={{
color: '#0D599E',
color: theme.palette.secondary.main,
display: 'flex',
alignItems: 'center',
gap: '4px',
mt: 0.8,
}}
>
<Box sx={{ fontSize: '12px', fontWeight: '500' }}>
5 Resources
5 {t('COURSE_PLANNER.RESOURCES')}
</Box>
<ArrowForwardIcon sx={{ fontSize: '16px' }} />
</Box>
Expand Down

0 comments on commit 3a01f70

Please sign in to comment.