File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,9 @@ import Codeathon from "./views/Codeathon";
19
19
import Login from "./views/Login" ;
20
20
import Profile from "./views/Profile" ;
21
21
import "./App.css"
22
- import { Routes , Route } from "react-router-dom" ;
22
+
23
+
24
+ import { Routes , Route , Navigate } from "react-router-dom" ;
23
25
import { CSSTransition , TransitionGroup } from "react-transition-group"
24
26
import { useEffect } from "react" ;
25
27
@@ -62,7 +64,7 @@ export default function App() {
62
64
< CSSTransition key = { location . key } classNames = "fade" timeout = { 300 } >
63
65
< Routes >
64
66
< Route path = "/" element = { < Main /> } >
65
- < Route path = "/" element = { < Landing /> } > </ Route >
67
+ < Route path = "/" element = { < Navigate to = "/hero" /> } > </ Route >
66
68
< Route path = "/profile" element = { < Profile /> } > </ Route >
67
69
< Route path = "/new" element = { < New /> } > </ Route >
68
70
{ /* <Route path="/core" element={<CoreTeam />}></Route> */ }
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ export default function Main() {
50
50
</ Link >
51
51
</ div >
52
52
< div className = "menuLink hideOnMobile" >
53
- < Link className = "noStyle" to = "/events/algo2024 " >
54
- Algorithmist2024
53
+ < Link className = "noStyle" to = "/events/prajnotsavah " >
54
+ Prajnotsavah
55
55
</ Link >
56
56
</ div >
57
57
< div className = "menuLink hideOnMobile" >
@@ -113,7 +113,7 @@ export default function Main() {
113
113
< Link to = "/members" > Members</ Link >
114
114
</ span >
115
115
< span >
116
- < Link to = "/events/algo2024" > Algorithmist2024 </ Link >
116
+ < Link to = "/events/prajnotsavah" > Prajnotsavah 2K24 </ Link >
117
117
</ span >
118
118
{ /* <span>Contact</span> */ }
119
119
{ /* <span>
Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ export default function Main() {
42
42
const navigate = useNavigate ( ) ;
43
43
44
44
useEffect ( ( ) => {
45
+
46
+ navigate ( "/hero" ) ;
47
+ return ;
48
+
45
49
createAndSetNewSlideInterval ( ) ;
46
50
47
51
const introObserver = new IntersectionObserver ( ( entries ) => {
You can’t perform that action at this time.
0 commit comments