Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Adam Romanski
committed
Nov 7, 2021
1 parent
d704ce4
commit a4dbcc6
Showing
8 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import React from 'react'; | ||
import {Route, Switch} from "react-router-dom"; | ||
import {NavLink} from "react-router-dom"; | ||
import Demo1 from "./Demo1"; | ||
import Demo2 from "./Demo2"; | ||
import Demo3 from "./Demo3"; | ||
import Demo4 from "./Demo4"; | ||
import styled from 'styled-components'; | ||
|
||
const Navigation = styled.div` | ||
position: absolute; | ||
bottom: 20px; | ||
right: 40px; | ||
a { | ||
margin-left: 30px; | ||
} | ||
`; | ||
|
||
const CoolTransitions = () => { | ||
return ( | ||
<> | ||
<Navigation> | ||
<NavLink to='/cool-transitions'>Demo 1</NavLink> | ||
<NavLink to='/cool-transitions/demo-2'>Demo 2</NavLink> | ||
<NavLink to='/cool-transitions/demo-3'>Demo 3</NavLink> | ||
<NavLink to='/cool-transitions/demo-4'>Demo 4</NavLink> | ||
</Navigation> | ||
<Switch> | ||
<Route path="/cool-transitions/demo-2"> | ||
<Demo2 /> | ||
</Route> | ||
<Route path="/cool-transitions/demo-3"> | ||
<Demo3 /> | ||
</Route> | ||
<Route path="/cool-transitions/demo-4"> | ||
<Demo4 /> | ||
</Route> | ||
<Route path="/cool-transitions"> | ||
<Demo1 /> | ||
</Route> | ||
</Switch> | ||
</> | ||
) | ||
}; | ||
|
||
export default CoolTransitions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
|
||
const Demo1 = () => { | ||
return ( | ||
<div>Demo 1</div> | ||
) | ||
}; | ||
|
||
export default Demo1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
|
||
const Demo2 = () => { | ||
return ( | ||
<div>Demo 2</div> | ||
) | ||
}; | ||
|
||
export default Demo2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
|
||
const Demo3 = () => { | ||
return ( | ||
<div>Demo 3</div> | ||
) | ||
}; | ||
|
||
export default Demo3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
|
||
const Demo4 = () => { | ||
return ( | ||
<div>Demo 4</div> | ||
) | ||
}; | ||
|
||
export default Demo4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters