refactor: updated injected popup to match figma (#189)
* refactor: updated injected popup to match figma * style: ran prettier * style: fixed pr comments * style: ran prettier * refactor: tailwind style --------- Co-authored-by: Razboy20 <razboy20@gmail.com>
This commit is contained in:
@@ -98,13 +98,51 @@ export default function GradeDistribution({ course }: GradeDistributionProps): J
|
|||||||
subtitle: { text: undefined },
|
subtitle: { text: undefined },
|
||||||
legend: { enabled: false },
|
legend: { enabled: false },
|
||||||
xAxis: {
|
xAxis: {
|
||||||
title: { text: 'Grades' },
|
labels: {
|
||||||
|
y: 20,
|
||||||
|
style: {
|
||||||
|
fontSize: '0.6875rem',
|
||||||
|
fontWeight: '500',
|
||||||
|
letterSpacing: '0',
|
||||||
|
lineHeight: 'normal',
|
||||||
|
fontStyle: 'normal',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
title: {
|
||||||
|
text: 'Grades',
|
||||||
|
style: {
|
||||||
|
color: '#333F48',
|
||||||
|
fontSize: '0.80rem',
|
||||||
|
fontWeight: '400',
|
||||||
|
},
|
||||||
|
},
|
||||||
categories: ['A', 'A-', 'B+', 'B', 'B-', 'C+', 'C', 'C-', 'D+', 'D', 'D-', 'F'],
|
categories: ['A', 'A-', 'B+', 'B', 'B-', 'C+', 'C', 'C-', 'D+', 'D', 'D-', 'F'],
|
||||||
|
tickInterval: 1,
|
||||||
|
tickWidth: 1.5,
|
||||||
|
tickLength: 10,
|
||||||
|
tickColor: '#9CADB7',
|
||||||
crosshair: true,
|
crosshair: true,
|
||||||
|
lineColor: '#9CADB7',
|
||||||
},
|
},
|
||||||
yAxis: {
|
yAxis: {
|
||||||
|
labels: {
|
||||||
|
style: {
|
||||||
|
fontSize: '0.80rem',
|
||||||
|
fontWeight: '400',
|
||||||
|
color: '#333F48',
|
||||||
|
lineHeight: '100%',
|
||||||
|
fontStyle: 'normal',
|
||||||
|
},
|
||||||
|
},
|
||||||
min: 0,
|
min: 0,
|
||||||
title: { text: 'Students' },
|
title: {
|
||||||
|
text: 'Students',
|
||||||
|
style: {
|
||||||
|
color: '#333F48',
|
||||||
|
fontSize: '0.80rem',
|
||||||
|
fontWeight: '400',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
chart: {
|
chart: {
|
||||||
style: { fontFamily: 'Roboto Flex, Roboto Flex Local', fontWeight: '600' },
|
style: { fontFamily: 'Roboto Flex, Roboto Flex Local', fontWeight: '600' },
|
||||||
@@ -155,10 +193,12 @@ export default function GradeDistribution({ course }: GradeDistributionProps): J
|
|||||||
{status === DataStatus.ERROR && <Text variant='p'>Error fetching grade distribution data</Text>}
|
{status === DataStatus.ERROR && <Text variant='p'>Error fetching grade distribution data</Text>}
|
||||||
{status === DataStatus.FOUND && (
|
{status === DataStatus.FOUND && (
|
||||||
<>
|
<>
|
||||||
<div className='w-full flex items-center justify-center gap-[12px]'>
|
<div className='flex flex-wrap content-center items-center self-stretch justify-center gap-3'>
|
||||||
<Text variant='p'>Grade distribution for {`${course.department} ${course.number}`}</Text>
|
<Text variant='small'>
|
||||||
|
Grade Distribution for {course.department} {course.number}
|
||||||
|
</Text>
|
||||||
{/* <select
|
{/* <select
|
||||||
className='border border rounded-[4px] border-solid px-[12px] py-[8px]'
|
className='flex items-center py-1 px-1 gap-1 border border rounded border-solid'
|
||||||
onChange={handleSelectSemester}
|
onChange={handleSelectSemester}
|
||||||
>
|
>
|
||||||
{Object.keys(distributions)
|
{Object.keys(distributions)
|
||||||
|
|||||||
Reference in New Issue
Block a user