Skip to content

Commit 6cf9ddd

Browse files
authored
Merge pull request #84 from usingbrain/main
pulling style changes for calender from main
2 parents 7baa346 + a5b9f39 commit 6cf9ddd

13 files changed

Lines changed: 69 additions & 25216 deletions

File tree

client/package-lock.json

Lines changed: 32 additions & 25190 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/src/Components/Calendar/Overview.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import { useCourseOverviewQuery } from '../../generated/graphql';
55
import moment from 'moment';
66

77
const overviewStyle =
8-
'flex flex-col m-auto bg-white w-11/12 md:w-10/12 lg:w-9/12 xl:w-7/12 shadow-xl mt-8';
8+
'flex flex-col m-auto bg-green w-11/12 md:w-10/12 lg:w-9/12 xl:w-7/12 mt-8 h-1/3 md:h-2/4 lg:h-2/3 xl:h-3/4';
99
const headerStyle =
1010
'flex bg-green shadow-md p-4 justify-center text-white text-md sm:text-lg md:text-xl';
11-
const historyStyle = 'flex flex-row flex-wrap justify-start w-full';
11+
const historyStyle = 'flex flex-row flex-wrap justify-start bg-white w-full h-full overflow-scroll';
1212

1313
const Overview: React.FC = () => {
1414
const courseId = Number(useParams().courseId);
@@ -28,8 +28,8 @@ const Overview: React.FC = () => {
2828
return (
2929
<div>
3030
<div className={overviewStyle}>
31-
<article className='flex flex-col justify-center'>
32-
<p className='m-auto text-xl'>Attendance</p>
31+
<article className='flex flex-col justify-center p-2 h-full'>
32+
<p className='m-auto text-xl text-white pb-2'>Attendance</p>
3333
<section className={historyStyle}>
3434
{!!sessions &&
3535
sessions.map((session) => {

client/src/Components/Calendar/SessionHistory.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ import StudentsList from '../ClassView/StudentsList';
55

66
// const listStyle = 'flex flex-col justify-start items-start';
77

8-
const btnStyle = "bg-green text-white p-4 shadow-md";
8+
const btnStyle = "flex bg-green text-white p-4 shadow-lg m-auto my-8";
99

1010
const SessionHistory: React.FC = () => {
1111
const courseId = Number(useParams().courseId);
1212

1313
return (
1414
<div>
1515
{/* button back to overview */}
16-
<footer className="flex justify-center">
17-
<Link to={`/homepage/classes/${courseId}/history`}>
18-
<button className={btnStyle}>Back to history overview</button>
19-
</Link>
16+
<footer className="flex justify-center my-4">
2017
</footer>
2118
{/* student list for this session */}
2219
<StudentsList courseId={courseId} />
2320
{/* TODO: each student is clickable to get individual attendance */}
21+
<Link to={`/homepage/classes/${courseId}/history`}>
22+
<button className={btnStyle}>Back to history overview</button>
23+
</Link>
2424
</div>
2525
);
2626
};

client/src/Components/ClassView/ClassView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const ClassView: React.FC = () => {
3131

3232
if (course && courseId) {
3333
return (
34-
<section className="h-screen flex flex-col justify-start w-3/4">
34+
<section className="h-screen flex flex-col justify-start w-3/4 h-full">
3535
<div className={headerStyle}>
3636
<h1 className="font-bold">{course.name?.toUpperCase()}</h1>
3737
<Link to="/homepage">

client/src/Components/ClassView/StudentElementHistory.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@ const StudentElementHistory: React.FC<Props> = ({
1818

1919
return (
2020
<div
21-
className="flex justify-center place-items-center h-10"
21+
className="flex place-items-center h-10"
2222
onClick={() =>
2323
navigate(`/homepage/classes/${courseId}/student/${studentId}`)
2424
}
2525
>
26-
<h3>{lastname}</h3>
27-
<h3>{name}</h3>
26+
<h3 className="mx-4">{lastname} {name}</h3>
2827
</div>
2928
);
3029
};
42.1 KB
Loading

client/src/Components/Startpage/Welcome/Attendance.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1+
import attendImg from '../Assets/attendance.png';
2+
13
const sectionStyle = "bg-white flex flex-row rounded-sm w-11/12 md:h-4/6 h-80 items-center m-auto invisible sm:visible my-32";
2-
const outerStyle = "bg-black flex rounded-sm h-full w-1/2 lg:w-5/12 flex-col justify-center items-center p-2";
4+
const outerStyle = "bg-white flex rounded-sm h-full w-1/2 lg:w-5/12 flex-col justify-center items-center p-2";
35
const paragraph = "w-1/2 lg:w-7/12 px-10 tracking-wider text-lg md:text-xl xl:px-32 xl:text-2xl leading-loose";
4-
const imageStyle = "bg-white w-5/6 h-5/6";
6+
const imageStyle = "bg-white w-5/6 p-1/4";
57

68
const Attendance: React.FC = () => {
79

810
return (
911
<div className="h-screen w-full">
1012
<section className={sectionStyle}>
1113
<div className={outerStyle}>
12-
<article className={imageStyle}></article>
14+
<article className={imageStyle}>
15+
<img src={attendImg} alt="attendance example" className="w-full h-full" />
16+
</article>
1317
</div>
1418
<div className={paragraph}>
1519
Once you begin a session, you'll recieve a list that

client/src/Components/Startpage/Welcome/Login.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const loginBtn =
2626
const linkStyle = 'flex text-white justify-center hover:underline';
2727
const lottieStyle = 'md:w-1/2 w-0 invisible md:visible';
2828
const errorStyle = 'w-1/2 xl:w-4/12 flex bg-white h-14 m-auto my-8 text-red';
29+
const logoStyle = 'm-auto h-1/6 w-1/4 lg:h-1/6 lg:w-1/5 xl:h-1/6 xl:w-1/6 mt-8';
2930

3031
const Login: React.FC = () => {
3132
const [userInfo, setUserInfo] = useState(initUser);
@@ -70,9 +71,9 @@ const Login: React.FC = () => {
7071

7172
return (
7273
<div className='h-screen'>
73-
<div className='h-20 w-32 m-auto md:my-4 md:h-28 md:w-40 lg:h-32 lg:w-44'>
74-
<QRLogo />
75-
</div>
74+
<Link to={'/'}>
75+
<div className={logoStyle}><QRLogo /></div>
76+
</Link>
7677
<div className={outerBox}>
7778
<div className={lottieStyle}>
7879
<Lottie options={defaultOptions} height={400} width={'100%'} />

client/src/Components/Startpage/Welcome/Prompt.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const Prompt: React.FC = () => {
2626
<div className='flex w-full h-full 2xl:px-32 2xl:w-3/4'>
2727
<Outlet />
2828
<section className={promptStyle}>
29-
<h1 className='text-green font-bold text-5xl md:text-6xl xl:text-7xl text-center'>
29+
<h1 className='text-green font-bold text-3xl sm:text-4xl md:text-5xl xl:text-6xl text-center'>
3030
Welcome to QRCheckd!
3131
</h1>
3232
<article className={welcomeStyle}>

client/src/Components/Startpage/Welcome/Welcome.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ const Welcome: React.FC = () => {
4242
<Attendance />
4343
</section>
4444
</div>
45-
<footer className='border-t-2 border-grey-light'>
46-
<div className='mx-8 text-grey-light'>@ 2021 QRcheckd. Do whateva.</div>
45+
<footer className='border-t-2 border-grey-light invisible sm:visible h-0 sm:h-2'>
46+
<div className='mx-8 text-grey-light invisible sm:visible h-0 sm:h-2'>@ 2021 QRcheckd. Do whateva.</div>
4747
</footer>
4848
</div>
4949
);

0 commit comments

Comments
 (0)