-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathStartLearning.jsx
More file actions
40 lines (38 loc) · 1.22 KB
/
StartLearning.jsx
File metadata and controls
40 lines (38 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { Link } from "react-router-dom";
const StartLearning = ({ learningData }) => {
const scrollToTop = () => {
window.scrollTo({
top: 0,
behavior: "smooth",
});
};
return (
<div className="flex flex-col items-center justify-between space-y-4 mt-16">
<div className="text-left font-bold text-5xl text-white flex flex-col items-start justify-between space-y-3 ">
<h1> Start Learning</h1>
<div className="w-28 h-2 bg-[#687eff] rounded"></div>
</div>
<div className="grid md:grid-cols-3 gap-14 text-white">
{learningData.map((learn, index) => (
<div
key={index}
className="flex flex-col items-center justify-between space-y-2 py-10 px-2 w-[380px] shadow-sm"
>
{learn.icon}
<h1 className="uppercase font-bold text-2xl text-center">
{learn.title}
</h1>
<Link
to={learn.linkTo}
onClick={scrollToTop}
className="bg-[#6557fd] rounded px-16 py-3 text-white font-bold uppercase"
>
Start Learning
</Link>
</div>
))}
</div>
</div>
);
};
export default StartLearning;