1- import ExpandMoreIcon from "@mui/icons-material/ExpandMore" ;
2- import { Box , Container , IconButton } from "@mui/material" ;
1+ import { Box , Container } from "@mui/material" ;
32import Section1 from "components/HomePageComponents/Section1" ;
43import Section2 from "components/HomePageComponents/Section2" ;
54import Section3 from "components/HomePageComponents/Section3" ;
5+ import Section4 from "components/HomePageComponents/Section4" ;
66import NodeInfoPanel from "components/NodeInfoPanel" ;
7- import { Colors } from "design/theme" ;
87import { useAppDispatch } from "hooks/useAppDispatch" ;
98import { useAppSelector } from "hooks/useAppSelector" ;
109import { NodeObject } from "modules/universe/NeuroJsonGraph" ;
@@ -73,23 +72,11 @@ const Home: React.FC = () => {
7372 >
7473 { /* section 1 */ }
7574 < Box sx = { { position : "relative" } } >
76- < Section1 />
77- < Box
78- sx = { {
79- display : "flex" ,
80- justifyContent : "center" ,
81- mt : 2 ,
82- mb : 2 ,
83- } }
84- >
85- < IconButton
86- onClick = { ( ) =>
87- section2Ref . current ?. scrollIntoView ( { behavior : "smooth" } )
88- }
89- >
90- < ExpandMoreIcon sx = { { fontSize : 40 , color : Colors . lightGray } } />
91- </ IconButton >
92- </ Box >
75+ < Section1
76+ scrollToNext = { ( ) =>
77+ section2Ref . current ?. scrollIntoView ( { behavior : "smooth" } )
78+ }
79+ />
9380 </ Box >
9481
9582 { /* section 2 */ }
@@ -117,25 +104,25 @@ const Home: React.FC = () => {
117104 />
118105 </ Box >
119106
120- { /* footer */ }
107+ { /* section 4 */ }
121108 < Box
122109 ref = { section4Ref }
123- sx = { {
124- zIndex : "2" ,
125- position : "relative" ,
126- width : "100%" ,
127- // backgroundColor: Colors.purple,
128- backgroundImage : `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1200 800'%3E%3Cdefs%3E%3CradialGradient id='a' cx='0' cy='800' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2371feed'/%3E%3Cstop offset='1' stop-color='%2371feed' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='b' cx='1200' cy='800' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23abb2f9'/%3E%3Cstop offset='1' stop-color='%23abb2f9' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='c' cx='600' cy='0' r='600' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%231fa0f6'/%3E%3Cstop offset='1' stop-color='%231fa0f6' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='d' cx='600' cy='800' r='600' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23FFFFFF'/%3E%3Cstop offset='1' stop-color='%23FFFFFF' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='e' cx='0' cy='0' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2302DEC4'/%3E%3Cstop offset='1' stop-color='%2302DEC4' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='f' cx='1200' cy='0' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%235865F2'/%3E%3Cstop offset='1' stop-color='%235865F2' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect fill='url(%23a)' width='1200' height='800'/%3E%3Crect fill='url(%23b)' width='1200' height='800'/%3E%3Crect fill='url(%23c)' width='1200' height='800'/%3E%3Crect fill='url(%23d)' width='1200' height='800'/%3E%3Crect fill='url(%23e)' width='1200' height='800'/%3E%3Crect fill='url(%23f)' width='1200' height='800'/%3E%3C/svg%3E")` ,
129- backgroundAttachment : "fixed" ,
130- backgroundSize : "cover" ,
131- padding : "5rem 7rem" ,
132- display : "flex" ,
133- flexDirection : "column" ,
134- justifyContent : "flex-end" ,
135- alignItems : "center" ,
136- } }
110+ // sx={{
111+ // zIndex: "2",
112+ // position: "relative",
113+ // width: "100%",
114+ // backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 1200 800'%3E%3Cdefs%3E%3CradialGradient id='a' cx='0' cy='800' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2371feed'/%3E%3Cstop offset='1' stop-color='%2371feed' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='b' cx='1200' cy='800' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23abb2f9'/%3E%3Cstop offset='1' stop-color='%23abb2f9' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='c' cx='600' cy='0' r='600' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%231fa0f6'/%3E%3Cstop offset='1' stop-color='%231fa0f6' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='d' cx='600' cy='800' r='600' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23FFFFFF'/%3E%3Cstop offset='1' stop-color='%23FFFFFF' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='e' cx='0' cy='0' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%2302DEC4'/%3E%3Cstop offset='1' stop-color='%2302DEC4' stop-opacity='0'/%3E%3C/radialGradient%3E%3CradialGradient id='f' cx='1200' cy='0' r='800' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%235865F2'/%3E%3Cstop offset='1' stop-color='%235865F2' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect fill='url(%23a)' width='1200' height='800'/%3E%3Crect fill='url(%23b)' width='1200' height='800'/%3E%3Crect fill='url(%23c)' width='1200' height='800'/%3E%3Crect fill='url(%23d)' width='1200' height='800'/%3E%3Crect fill='url(%23e)' width='1200' height='800'/%3E%3Crect fill='url(%23f)' width='1200' height='800'/%3E%3C/svg%3E")`,
115+ // backgroundAttachment: "fixed",
116+ // backgroundSize: "cover",
117+ // padding: "5rem 7rem",
118+ // display: "flex",
119+ // flexDirection: "column",
120+ // justifyContent: "flex-end",
121+ // alignItems: "center",
122+ // }}
137123 >
138- < img
124+ < Section4 />
125+ { /* <img
139126 src={`${process.env.PUBLIC_URL}/img/section4_workflow.png` }
140127 alt="workflow of the website"
141128 style={{
@@ -145,7 +132,7 @@ const Home: React.FC = () => {
145132 position: "relative",
146133 zIndex: "2",
147134 }}
148- > </ img >
135+ ></img> */ }
149136 </ Box >
150137
151138 < NodeInfoPanel
0 commit comments