Skip to content

Commit f7639d8

Browse files
authored
Merge branch 'nobrain' into main
2 parents cfcec91 + 674927a commit f7639d8

1 file changed

Lines changed: 53 additions & 53 deletions

File tree

client/src/Components/TeacherHomepage/Instruction.tsx

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -7,62 +7,62 @@ import studentData from '../../Assets/studentdata.png';
77
const imgStyle =
88
'bg-white rounded-full h-16 w-16 flex justify-center items-center';
99
const info =
10-
'w-2/3 text-2xl h-20 flex md:pl-8 pl-1 pr-2 items-center rounded-full justify-between';
10+
'w-2/3 text-2xl h-20 flex flex-row md:pl-8 pl-1 pr-2 mb-8 items-center rounded-full justify-between';
11+
12+
interface Props {
13+
el: { color: string; text: string; img: string };
14+
}
15+
16+
const Floop: React.FC<Props> = ({ el }) => {
17+
return (
18+
<div className={`${info} ${el.color}`}>
19+
<p>{el.text}</p>
20+
<div className={imgStyle}>
21+
<img src={el.img} alt={el.text} className="h-10 w-10" />
22+
</div>
23+
</div>
24+
);
25+
};
26+
27+
const create = {
28+
color: 'bg-shades-one',
29+
text: 'Create or open a class',
30+
img: openOrCreate,
31+
};
32+
33+
const register = {
34+
color: 'bg-shades-two',
35+
text: 'Register students',
36+
img: registerImg,
37+
};
38+
39+
const start = {
40+
color: 'bg-shades-three',
41+
text: 'Start a session',
42+
img: startImg,
43+
};
44+
45+
const access = {
46+
color: 'bg-shades-four',
47+
text: 'Access attendance data',
48+
img: attendanceImg,
49+
};
50+
51+
const check = {
52+
color: 'bg-shades-five',
53+
text: 'Check individual student data',
54+
img: studentData,
55+
};
1156

1257
const Instruction = () => {
1358
return (
14-
<div className='flex flex-col items-center'>
15-
<h1 className='text-5xl my-8'>Quick start</h1>
16-
<p className={`${info} mb-4 bg-shades-one`}>
17-
Create or open a class
18-
<div className={imgStyle}>
19-
<img
20-
src={openOrCreate}
21-
alt='Open or create class'
22-
className='h-10 w-10'
23-
/>
24-
</div>
25-
</p>
26-
<p className={`${info} my-4 bg-shades-two`}>
27-
Register students
28-
<div className={imgStyle}>
29-
<img
30-
src={registerImg}
31-
alt='Open or create class'
32-
className='h-10 w-10'
33-
/>
34-
</div>
35-
</p>
36-
<p className={`${info} my-4 bg-shades-three`}>
37-
Start a session
38-
<div className={imgStyle}>
39-
<img
40-
src={startImg}
41-
alt='Open or create class'
42-
className='h-10 w-10'
43-
/>
44-
</div>
45-
</p>
46-
<p className={`${info} my-4 bg-shades-four`}>
47-
Access attendance data
48-
<div className={imgStyle}>
49-
<img
50-
src={attendanceImg}
51-
alt='Open or create class'
52-
className='h-10 w-10'
53-
/>
54-
</div>
55-
</p>
56-
<p className={`${info} my-4 bg-shades-five`}>
57-
Check individual student data
58-
<div className={imgStyle}>
59-
<img
60-
src={studentData}
61-
alt='Open or create class'
62-
className='h-10 w-10'
63-
/>
64-
</div>
65-
</p>
59+
<div className="flex flex-col items-center">
60+
<h1 className="text-5xl my-8">Quick start</h1>
61+
<Floop el={create} />
62+
<Floop el={register} />
63+
<Floop el={start} />
64+
<Floop el={access} />
65+
<Floop el={check} />
6666
</div>
6767
);
6868
};

0 commit comments

Comments
 (0)