Skip to content

Commit b3ab296

Browse files
committed
feat: modify nav item hover effect
1 parent 6e7c1ee commit b3ab296

File tree

2 files changed

+3
-37
lines changed

2 files changed

+3
-37
lines changed

src/components/NavBar/NavItems.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,8 @@ const NavItems: React.FC = () => {
8080
color: Colors.white,
8181
transition: "color 0.3s ease, transform 0.3s ease",
8282
"&:hover": {
83-
color: Colors.green,
84-
transform: "scale(1.05)",
83+
transform: "scale(1.2)",
8584
cursor: "pointer",
86-
boxShadow: `0px 0px 15px ${Colors.green}`,
87-
borderRadius: "5px",
88-
padding: "5px",
8985
},
9086
}}
9187
>
@@ -103,12 +99,8 @@ const NavItems: React.FC = () => {
10399
color: Colors.white,
104100
transition: "color 0.3s ease, transform 0.3s ease",
105101
"&:hover": {
106-
color: Colors.green,
107-
transform: "scale(1.05)",
102+
transform: "scale(1.2)",
108103
cursor: "pointer",
109-
boxShadow: `0px 0px 15px ${Colors.green}`,
110-
borderRadius: "5px",
111-
padding: "5px",
112104
},
113105
}}
114106
>

src/pages/Home.tsx

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -105,34 +105,8 @@ const Home: React.FC = () => {
105105
</Box>
106106

107107
{/* section 4*/}
108-
<Box
109-
ref={section4Ref}
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-
// }}
123-
>
108+
<Box ref={section4Ref}>
124109
<Section4 />
125-
{/* <img
126-
src={`${process.env.PUBLIC_URL}/img/section4_workflow.png`}
127-
alt="workflow of the website"
128-
style={{
129-
width: "45%",
130-
height: "auto",
131-
padding: "2rem",
132-
position: "relative",
133-
zIndex: "2",
134-
}}
135-
></img> */}
136110
</Box>
137111

138112
<NodeInfoPanel

0 commit comments

Comments
 (0)