File tree Expand file tree Collapse file tree
client/src/Components/Calendar Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { useCourseOverviewQuery } from '../../generated/graphql';
44//package for date format
55import moment from 'moment' ;
66
7- const overviewStyle = 'flex flex-col bg-green w-11/12 mt-4 self-center' ;
7+ const overviewStyle = 'flex flex-col w-11/12 mt-4 self-center' ;
88
99const historyStyle = 'grid grid-cols-6 bg-white w-full h-6/7' ;
1010
@@ -26,7 +26,7 @@ const Overview: React.FC = () => {
2626 return (
2727 < div className = { overviewStyle } >
2828 < article className = 'flex flex-col justify-center h-full' >
29- < p className = 'flex justify-center items-center text-4xl text-white h-16' >
29+ < p className = 'flex justify-center items-center text-4xl bg-green text-white h-16' >
3030 Sessions Attendance
3131 </ p >
3232 < section className = { historyStyle } >
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ import { ReactComponent as CrossIcon } from '../../Assets/solo-cross.svg';
88import moment from 'moment' ;
99import Student from '../../Types/student' ;
1010
11- const btnStyle = 'flex bg-green text-white p-4 shadow-lg m-auto my-8' ;
11+ const btnStyle =
12+ 'flex justify-center items-center bg-green text-white text-lg p-4 h-16 w-1/3 shadow-lg mb-8 mx-11 self-end' ;
1213
1314const StudentHistory : React . FC = ( ) => {
1415 const navigate = useNavigate ( ) ;
@@ -46,21 +47,21 @@ const StudentHistory: React.FC = () => {
4647
4748 if ( indivHistory ) {
4849 return (
49- < div >
50+ < div className = 'flex flex-col' >
5051 < button className = { btnStyle } onClick = { handleClick } >
5152 Back to session overview
5253 </ button >
53- < h1 className = 'flex justify-center text-lg md:text-xl ' >
54+ < h1 className = 'font-bold text-5xl px-16 mb-4 ' >
5455 { name } { lastname }
5556 </ h1 >
5657 < section className = 'flex justify-center h-1/4 md:h-1/2 lg:h-5/6 xl:h-screen p-4' >
57- < div className = ' flex flex-row flex-wrap justify-start bg-white w-11/12 md:h-2/3 lx:w-9/12 overflow-scroll border-green border-8 ' >
58+ < div className = ' flex flex-row flex-wrap justify-start bg-white w-11/12 md:h-2/3 lx:w-9/12 border-grey border-2 ' >
5859 { indivHistory . map ( ( session ) => {
5960 const date = new Date ( Number ( session ! . date ) ) ;
6061 const UTCdate = date . toUTCString ( ) ;
6162
6263 return (
63- < div className = 'flex flex-col justify-center w-26 p-2 md:w-32 items-center border-2 border-black m-1 hover:bg-green-xlight ' >
64+ < div className = 'flex flex-col justify-center w-26 h-26 p-2 md:w-32 items-center border-2 border-white ' >
6465 { session ! . attended ? (
6566 < CheckIcon className = 'w-10 h-10' />
6667 ) : (
You can’t perform that action at this time.
0 commit comments