Skip to content

Commit fe591a2

Browse files
committed
feat: change the scroll-down arrows into expand more icon from MUI
1 parent fa02c77 commit fe591a2

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

src/components/HomePageComponents/Section2.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
2-
import ArrowForwardOutlinedIcon from "@mui/icons-material/ArrowForwardOutlined";
1+
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
32
import {
43
Typography,
54
Box,
@@ -67,7 +66,7 @@ const Section2: React.FC<Section2Props> = ({
6766
}}
6867
>
6968
{/* Filter Menu Button */}
70-
<Box sx={{ position: "absolute", top: 20, left: 20, zIndex: 100 }}>
69+
<Box sx={{ position: "absolute", top: 100, right: 20, zIndex: 100 }}>
7170
<FilterMenu
7271
onKeywordFilter={setFilterKeyword}
7372
onModalitiesFilter={setSelectedModalities}
@@ -219,7 +218,7 @@ const Section2: React.FC<Section2Props> = ({
219218
}}
220219
>
221220
<IconButton onClick={scrollToNext}>
222-
<ArrowDownwardIcon sx={{ fontSize: 40, color: Colors.darkPurple }} />
221+
<ExpandMoreIcon sx={{ fontSize: 40, color: Colors.darkPurple }} />
223222
</IconButton>
224223
</Box>
225224
</Box>

src/components/HomePageComponents/Section3.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
1+
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
22
import { Typography, Box, Button, IconButton } from "@mui/material";
33
import { Colors } from "design/theme";
44
import React from "react";
@@ -114,7 +114,7 @@ const Section3: React.FC<Section3Props> = ({ scrollToNext }) => {
114114
}}
115115
>
116116
<IconButton onClick={scrollToNext}>
117-
<ArrowDownwardIcon sx={{ fontSize: 40, color: Colors.lightGray }} />
117+
<ExpandMoreIcon sx={{ fontSize: 40, color: Colors.lightGray }} />
118118
</IconButton>
119119
</Box>
120120
</Box>

src/components/NodesFilter/FilterMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ const FilterMenu: React.FC<FilterMenuProps> = ({
5454
<IconButton
5555
onClick={handleClick}
5656
sx={{
57-
color: Colors.green,
58-
backgroundColor: Colors.purple,
57+
color: Colors.purple,
58+
backgroundColor: Colors.lightGray,
5959
transition: "all 0.3s ease",
6060
"&:hover": {
61-
backgroundColor: Colors.purple,
61+
backgroundColor: Colors.lightGray,
6262
transform: "scale(1.05)",
6363
},
6464
}}

src/pages/Home.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ArrowDownwardIcon from "@mui/icons-material/ArrowDownward";
1+
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
22
import { Box, Typography, Button, Container, IconButton } from "@mui/material";
33
import Section1 from "components/HomePageComponents/Section1";
44
import Section2 from "components/HomePageComponents/Section2";
@@ -90,7 +90,7 @@ const Home: React.FC = () => {
9090
section2Ref.current?.scrollIntoView({ behavior: "smooth" })
9191
}
9292
>
93-
<ArrowDownwardIcon sx={{ fontSize: 40, color: Colors.lightGray }} />
93+
<ExpandMoreIcon sx={{ fontSize: 40, color: Colors.lightGray }} />
9494
</IconButton>
9595
</Box>
9696
</Box>

0 commit comments

Comments
 (0)