1+ import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward" ;
12import ArrowForwardOutlinedIcon from "@mui/icons-material/ArrowForwardOutlined" ;
2- import { Typography , Box , Button , CircularProgress } from "@mui/material" ;
3+ import {
4+ Typography ,
5+ Box ,
6+ Button ,
7+ CircularProgress ,
8+ IconButton ,
9+ } from "@mui/material" ;
310import FilterMenu from "components/NodesFilter/FilterMenu" ;
411import { Colors } from "design/theme" ;
512import NeuroJsonGraph from "modules/universe/NeuroJsonGraph" ;
@@ -15,6 +22,7 @@ interface Section2Props {
1522 setFilterKeyword : ( keyword : string ) => void ;
1623 setSelectedModalities : ( modalities : string [ ] ) => void ;
1724 onNodeClick : ( node : NodeObject ) => void ;
25+ scrollToNext : ( ) => void ;
1826}
1927
2028const Section2 : React . FC < Section2Props > = ( {
@@ -25,6 +33,7 @@ const Section2: React.FC<Section2Props> = ({
2533 setFilterKeyword,
2634 setSelectedModalities,
2735 onNodeClick,
36+ scrollToNext,
2837} ) => {
2938 const navigate = useNavigate ( ) ;
3039
@@ -38,9 +47,10 @@ const Section2: React.FC<Section2Props> = ({
3847 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")` ,
3948 backgroundAttachment : "fixed" ,
4049 backgroundSize : "cover" ,
41- overflow : "auto" ,
50+ // overflow: "auto",
4251 padding : "1rem" ,
43- paddingLeft : "7rem" ,
52+ // paddingLeft: "7rem",
53+ minHeight : "100vh" ,
4454 } }
4555 >
4656 < Box // tri-colors card
@@ -109,7 +119,7 @@ const Section2: React.FC<Section2Props> = ({
109119 { /* top buttons: show only on large screens */ }
110120 < Box
111121 sx = { {
112- display : { xs : "none " , md : "none " , lg : "flex" } ,
122+ display : { xs : "flex " , md : "flex " , lg : "flex" } ,
113123 flexDirection : "column" ,
114124 width : { xs : "100%" , sm : "50%" , md : "30%" , lg : "15%" } ,
115125 maxWidth : "200px" ,
@@ -118,22 +128,6 @@ const Section2: React.FC<Section2Props> = ({
118128 zIndex : 10 , // Higher than text and graph
119129 } }
120130 >
121- < Button
122- variant = "outlined"
123- sx = { {
124- color : Colors . lightGray ,
125- borderColor : Colors . lightGray ,
126- transition : "all 0.3s ease" ,
127- marginTop : 5 ,
128- "&:hover" : {
129- transform : "scale(1.05)" ,
130- borderColor : Colors . lightGray ,
131- } ,
132- } }
133- >
134- Start exploring
135- < ArrowForwardOutlinedIcon />
136- </ Button >
137131 < Button
138132 variant = "outlined"
139133 sx = { {
@@ -179,7 +173,7 @@ const Section2: React.FC<Section2Props> = ({
179173 </ Box >
180174
181175 { /* Bottom Buttons - Show only on smaller screens */ }
182- < Box
176+ { /* <Box
183177 sx={{
184178 display: { xs: "flex", md: "flex", lg: "none" },
185179 justifyContent: "center",
@@ -189,23 +183,6 @@ const Section2: React.FC<Section2Props> = ({
189183 width: "100%",
190184 }}
191185 >
192- < Button
193- variant = "outlined"
194- sx = { {
195- color : Colors . lightGray ,
196- borderColor : Colors . lightGray ,
197- transition : "all 0.3s ease" ,
198- marginBottom : 2 ,
199- width : "200px" ,
200- "&:hover" : {
201- transform : "scale(1.05)" ,
202- borderColor : Colors . lightGray ,
203- } ,
204- } }
205- >
206- Start exploring
207- < ArrowForwardOutlinedIcon />
208- </ Button >
209186 <Button
210187 variant="outlined"
211188 sx={{
@@ -222,7 +199,28 @@ const Section2: React.FC<Section2Props> = ({
222199 >
223200 View All Databases
224201 </Button>
225- </ Box >
202+ </Box> */ }
203+ </ Box >
204+
205+ { /* Scroll Arrow - fixed inside Section2 */ }
206+ < Box
207+ sx = { {
208+ position : "absolute" ,
209+ bottom : "1rem" ,
210+ left : 0 ,
211+ right : 0 ,
212+ width : "100%" ,
213+ display : "flex" ,
214+ justifyContent : "center" ,
215+ alignItems : "center" ,
216+ paddingBottom : "2rem" ,
217+ mt : 4 ,
218+ zIndex : 1000 ,
219+ } }
220+ >
221+ < IconButton onClick = { scrollToNext } >
222+ < ArrowDownwardIcon sx = { { fontSize : 40 , color : Colors . darkPurple } } />
223+ </ IconButton >
226224 </ Box >
227225 </ Box >
228226 ) ;
0 commit comments