File tree 3 files changed +17
-9
lines changed
3 files changed +17
-9
lines changed Original file line number Diff line number Diff line change
1
+ import { BrowserRouter as Router } from 'react-router-dom' ;
1
2
import './css/App.css' ;
2
3
import AppHeader from './components/AppHeader' ;
3
4
import AppFooter from './components/AppFooter' ;
@@ -6,9 +7,11 @@ import Home from './pages';
6
7
function App ( ) {
7
8
return (
8
9
< div className = "App" >
9
- < AppHeader > </ AppHeader >
10
- < Home />
11
- < AppFooter > </ AppFooter >
10
+ < Router >
11
+ < AppHeader > </ AppHeader >
12
+ < Home />
13
+ < AppFooter > </ AppFooter >
14
+ </ Router >
12
15
</ div >
13
16
) ;
14
17
}
Original file line number Diff line number Diff line change @@ -4,17 +4,21 @@ const ProjectSingle = () => {
4
4
return (
5
5
< Link
6
6
to = "/projects/single-project"
7
- class = "rounded-3xl shadow-lg hover:shadow-xl cursor-pointer mb-10 sm:mb-0 bg-secondary-light dark:bg-ternary-dark"
7
+ className = "rounded-3xl shadow-lg hover:shadow-xl cursor-pointer mb-10 sm:mb-0 bg-secondary-light dark:bg-ternary-dark"
8
8
aria-label = "Single Project"
9
9
>
10
10
< div >
11
- < img src = "" class = "rounded-t-3xl border-none" />
11
+ < img
12
+ src = "assets/images/project.jpg"
13
+ className = "rounded-t-3xl border-none"
14
+ alt = "Single Project"
15
+ />
12
16
</ div >
13
- < div class = "text-center px-4 py-6" >
14
- < p class = "text-2xl text-ternary-dark dark:text-ternary-light font-semibold mb-2" >
17
+ < div className = "text-center px-4 py-6" >
18
+ < p className = "text-2xl text-ternary-dark dark:text-ternary-light font-semibold mb-2" >
15
19
A Simple Project
16
20
</ p >
17
- < span class = "text-lg text-ternary-dark dark:text-ternary-light" >
21
+ < span className = "text-lg text-ternary-dark dark:text-ternary-light" >
18
22
Here is the description
19
23
</ span >
20
24
</ div >
Original file line number Diff line number Diff line change 1
1
import { FiSearch } from 'react-icons/fi' ;
2
+ import ProjectSingle from './ProjectSingle' ;
2
3
3
4
const ProjectsGrid = ( ) => {
4
5
return (
@@ -91,7 +92,7 @@ const ProjectsGrid = () => {
91
92
:key="project.id"
92
93
:project="project"
93
94
/> */ }
94
- A single project
95
+ < ProjectSingle > </ ProjectSingle >
95
96
</ div >
96
97
{ /* Projects grid end */ }
97
98
</ section >
You can’t perform that action at this time.
0 commit comments