1
- function Home ( ) {
2
- return (
3
- < div className = "container my-4" >
4
- < h2 className = "text-center mb-4" > Course home</ h2 >
5
- < div className = "row row-cols-1 row-cols-md-3 g-3" >
6
- < div className = "col" >
7
- < div className = "card h-100" >
8
- < img
9
- src = "https://ashokitech.com/uploads/course/react-js-online-training.png"
10
- className = "card-img-top"
11
- alt = "Course 1"
12
- />
13
- < div className = "card-body" >
14
- < h5 className = "card-title" > Course 1: Introduction to React</ h5 >
15
- < p className = "card-text" >
16
- Learn the fundamentals of React, one of the most popular JavaScript libraries for building user interfaces.
17
- </ p >
18
- </ div >
19
- </ div >
20
- </ div >
21
-
22
- < div className = "col" >
23
- < div className = "card h-100" >
24
- < img
25
- src = "https://img-c.udemycdn.com/course/480x270/5450776_0385.jpg"
26
- className = "card-img-top"
27
- alt = "Course 2"
28
- />
29
- < div className = "card-body" >
30
- < h5 className = "card-title" > Course 2: Advanced JavaScript</ h5 >
31
- < p className = "card-text" >
32
- Dive deeper into JavaScript and learn advanced concepts like closures, async programming, and more.
33
- </ p >
34
- </ div >
35
- </ div >
36
- </ div >
37
-
38
- < div className = "col" >
39
- < div className = "card h-100" >
40
- < img
41
- src = "https://livetechindia.com/wp-content/uploads/2023/12/Nodejs-Application-Development-1024x683.jpg"
42
- className = "card-img-top"
43
- alt = "Course 3"
44
- />
45
- < div className = "card-body" >
46
- < h5 className = "card-title" > Course 3: Web Development with Node.js</ h5 >
47
- < p className = "card-text" >
48
- Build scalable web applications using Node.js, Express, and MongoDB.
49
- </ p >
50
- </ div >
51
- </ div >
52
- </ div >
53
-
54
- < div className = "col" >
55
- < div className = "card h-100" >
56
- < img
57
- src = "https://cdn.shopaccino.com/igmguru/products/data-science--with-python-igmguru_176161162_l.jpg?v=444p"
58
- className = "card-img-top"
59
- alt = "Course 4"
60
- />
61
- < div className = "card-body" >
62
- < h5 className = "card-title" > Course 4: Python for Data Science</ h5 >
63
- < p className = "card-text" >
64
- Master Python and its libraries to analyze data and build machine learning models.
65
- </ p >
66
- </ div >
67
- </ div >
68
- </ div >
69
-
70
- < div className = "col" >
71
- < div className = "card h-100" >
72
- < img
73
- src = "https://www.tgcindia.com/wp-content/uploads/2020/09/UX-design-course-at-TGC.jpg"
74
- className = "card-img-top"
75
- alt = "Course 5"
76
- />
77
- < div className = "card-body" >
78
- < h5 className = "card-title" > Course 5: UI/UX Design Fundamentals</ h5 >
79
- < p className = "card-text" >
80
- Learn the principles of UI/UX design and how to create intuitive user interfaces.
81
- </ p >
82
- </ div >
83
- </ div >
84
- </ div >
85
-
86
- < div className = "col" >
87
- < div className = "card h-100" >
88
- < img
89
- src = "https://codequotient.com/blog/wp-content/uploads/2022/09/Is-It-Worth-Doing-AWS-Cloud-Computing-Course.jpg"
90
- className = "card-img-top"
91
- alt = "Course 6"
92
- />
93
- < div className = "card-body" >
94
- < h5 className = "card-title" > Course 6: Cloud Computing with AWS</ h5 >
95
- < p className = "card-text" >
96
- Get started with cloud computing using Amazon Web Services (AWS) and learn how to build cloud infrastructure.
97
- </ p >
98
- </ div >
99
- </ div >
100
- </ div >
101
- </ div >
102
- </ div >
103
- ) ;
1
+ // Home.jsx
2
+ import React from 'react' ;
3
+ import Dashboard from './dashboard' ;
4
+
5
+ const courses = [
6
+ {
7
+ title : "Course 1: Introduction to React" ,
8
+ description : "Learn the fundamentals of React, one of the most popular JavaScript libraries for building user interfaces." ,
9
+ image : "https://ashokitech.com/uploads/course/react-js-online-training.png"
10
+ } ,
11
+ {
12
+ title : "Course 2: Advanced JavaScript" ,
13
+ description : "Dive deeper into JavaScript and learn advanced concepts like closures, async programming, and more." ,
14
+ image : "https://img-c.udemycdn.com/course/480x270/5450776_0385.jpg"
15
+ } ,
16
+ {
17
+ title : "Course 3: Web Development with Node.js" ,
18
+ description : "Build scalable web applications using Node.js, Express, and MongoDB." ,
19
+ image : "https://livetechindia.com/wp-content/uploads/2023/12/Nodejs-Application-Development-1024x683.jpg"
20
+ } ,
21
+ {
22
+ title : "Course 4: Python for Data Science" ,
23
+ description : "Master Python and its libraries to analyze data and build machine learning models." ,
24
+ image : "https://cdn.shopaccino.com/igmguru/products/data-science--with-python-igmguru_176161162_l.jpg?v=444p"
25
+ } ,
26
+ {
27
+ title : "Course 5: UI/UX Design Fundamentals" ,
28
+ description : "Learn the principles of UI/UX design and how to create intuitive user interfaces." ,
29
+ image : "https://www.tgcindia.com/wp-content/uploads/2020/09/UX-design-course-at-TGC.jpg"
30
+ } ,
31
+ {
32
+ title : "Course 6: Cloud Computing with AWS" ,
33
+ description : "Get started with cloud computing using Amazon Web Services (AWS) and learn how to build cloud infrastructure." ,
34
+ image : "https://codequotient.com/blog/wp-content/uploads/2022/09/Is-It-Worth-Doing-AWS-Cloud-Computing-Course.jpg"
104
35
}
105
-
106
- export default Home ;
107
-
36
+ ] ;
37
+
38
+ function Home ( ) {
39
+ return (
40
+ < Dashboard courses = { courses } /> // Pass the courses as props
41
+ ) ;
42
+ }
43
+
44
+ export default Home ;
0 commit comments