44 */
55import { ProjectsListWrapper , ProjectItemWrapper } from "./styles" ;
66import { Link } from "react-router-dom" ;
7+ import { useNavigate } from "react-router" ;
78
89export default function ProjectsList ( ) {
10+ const navigate = useNavigate ( ) ;
11+
12+ const onClickProjectItem = ( pid ) => {
13+ navigate ( `/projects/${ pid } ` ) ;
14+ } ;
15+
916 return (
1017 < ProjectsListWrapper >
1118 < ProjectItemWrapper index = { 0 } >
12- < div className = "section" >
19+ < div className = "section" onClick = { ( ) => onClickProjectItem ( 0 ) } >
1320 < figure className = "section-image" >
1421 < figure className = "line line1" > </ figure >
1522 < figure className = "line line2" > </ figure >
@@ -32,7 +39,53 @@ export default function ProjectsList() {
3239 </ div >
3340 </ ProjectItemWrapper >
3441 < ProjectItemWrapper index = { 1 } >
35- < div className = "section" >
42+ < div className = "section" onClick = { ( ) => onClickProjectItem ( 1 ) } >
43+ < figure className = "section-image" >
44+ < figure className = "line line1" > </ figure >
45+ < figure className = "line line2" > </ figure >
46+ </ figure >
47+ < div className = "section-text" >
48+ < h2 className = "section-text__title" >
49+ < span >
50+ tandem exchange
51+ < figure className = "line line3" > </ figure >
52+ </ span >
53+ </ h2 >
54+ < p className = "section-text__description" >
55+ A few years back, my brother was living in Berlin
56+ and learning German. After trying a bunch of
57+ different language learning tools and systems, he
58+ found that while traditional approaches like
59+ textbooks and tools like Rosetta Stone are good for…
60+ </ p >
61+ </ div >
62+ </ div >
63+ </ ProjectItemWrapper >
64+ < ProjectItemWrapper index = { 2 } >
65+ < div className = "section" onClick = { ( ) => onClickProjectItem ( 2 ) } >
66+ < figure className = "section-image" >
67+ < figure className = "line line1" > </ figure >
68+ < figure className = "line line2" > </ figure >
69+ </ figure >
70+ < div className = "section-text" >
71+ < h2 className = "section-text__title" >
72+ < span >
73+ tandem exchange
74+ < figure className = "line line3" > </ figure >
75+ </ span >
76+ </ h2 >
77+ < p className = "section-text__description" >
78+ A few years back, my brother was living in Berlin
79+ and learning German. After trying a bunch of
80+ different language learning tools and systems, he
81+ found that while traditional approaches like
82+ textbooks and tools like Rosetta Stone are good for…
83+ </ p >
84+ </ div >
85+ </ div >
86+ </ ProjectItemWrapper >
87+ < ProjectItemWrapper index = { 3 } >
88+ < div className = "section" onClick = { ( ) => onClickProjectItem ( 3 ) } >
3689 < figure className = "section-image" >
3790 < figure className = "line line1" > </ figure >
3891 < figure className = "line line2" > </ figure >
0 commit comments