Skip to content

Commit 272dd30

Browse files
committed
Add cyan blue hover effects to Push Notifications panel matching other collapsible sections
1 parent e5abbc6 commit 272dd30

3 files changed

Lines changed: 80 additions & 17 deletions

File tree

src/components/relay-settings/shared/CollapsibleSection/CollapsibleSection.styles.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ export const StyledCollapse = styled(Collapse)`
1616
overflow: hidden;
1717
box-shadow: 0 8px 32px 0 rgba(0, 255, 255, 0.1) !important;
1818
animation: dropdownGlowFadeIn 0.8s ease-out forwards;
19+
transition: all 0.3s ease;
20+
21+
/* Hover effect for the entire collapsible section */
22+
&:hover {
23+
border-color: rgba(0, 255, 255, 0.3) !important;
24+
box-shadow:
25+
0 12px 40px 0 rgba(0, 255, 255, 0.2),
26+
0 0 20px rgba(0, 255, 255, 0.15) !important;
27+
background: rgba(0, 255, 255, 0.05) !important;
28+
transform: translateY(-2px);
29+
}
1930
2031
.ant-collapse-item {
2132
border: none !important;
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import styled from 'styled-components';
2+
3+
export const PanelWrapper = styled.div`
4+
/* Keep it simple to match other panels */
5+
background: transparent;
6+
7+
/* Style dividers to match cyan theme */
8+
.ant-divider {
9+
border-color: rgba(82, 196, 255, 0.3) !important;
10+
margin: 1.5rem 0;
11+
}
12+
13+
/* Subtle form item hover effect */
14+
.ant-form-item {
15+
transition: background 0.3s ease;
16+
padding: 0.75rem;
17+
border-radius: 6px;
18+
margin-bottom: 0.75rem;
19+
20+
&:hover {
21+
background: rgba(0, 255, 255, 0.02);
22+
}
23+
}
24+
25+
/* Input hover effects to match cyan theme */
26+
.ant-input,
27+
.ant-input-number,
28+
.ant-select-selector,
29+
.ant-input-password {
30+
transition: all 0.3s ease;
31+
32+
&:hover:not(:focus) {
33+
border-color: rgba(0, 255, 255, 0.3) !important;
34+
}
35+
36+
&:focus,
37+
&:focus-within {
38+
border-color: rgba(0, 255, 255, 0.5) !important;
39+
box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.1) !important;
40+
}
41+
}
42+
43+
/* Switch hover effects */
44+
.ant-switch {
45+
&:hover:not(.ant-switch-disabled) {
46+
background-color: rgba(0, 255, 255, 0.3);
47+
}
48+
}
49+
`;

src/components/settings/panels/PushNotificationPanel.tsx

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
import useGenericSettings from '@app/hooks/useGenericSettings';
99
import { SettingsGroupType } from '@app/types/settings.types';
1010
import { LiquidBlueButton } from '@app/components/common/LiquidBlueButton';
11+
import * as S from './PushNotificationPanel.styles';
1112

1213
const defaultPushSettings = {
1314
enabled: false,
@@ -107,22 +108,23 @@ const PushNotificationPanel: React.FC = () => {
107108
)}
108109

109110
<Spin spinning={loading}>
110-
<Form
111-
form={form}
112-
layout="vertical"
113-
onValuesChange={handleValuesChange}
114-
initialValues={settings || {}}
115-
onFinish={() => {
116-
setIsUserEditing(false);
117-
}}
118-
style={{
119-
padding: 0,
120-
margin: 0,
121-
background: 'transparent',
122-
border: 'none'
123-
}}
124-
colon={false}
125-
>
111+
<S.PanelWrapper>
112+
<Form
113+
form={form}
114+
layout="vertical"
115+
onValuesChange={handleValuesChange}
116+
initialValues={settings || {}}
117+
onFinish={() => {
118+
setIsUserEditing(false);
119+
}}
120+
style={{
121+
padding: 0,
122+
margin: 0,
123+
background: 'transparent',
124+
border: 'none'
125+
}}
126+
colon={false}
127+
>
126128
{/* Main Configuration */}
127129
<Divider orientation="left" style={{
128130
borderColor: 'rgba(82, 196, 255, 0.3)',
@@ -409,7 +411,8 @@ const PushNotificationPanel: React.FC = () => {
409411
</LiquidBlueButton>
410412
</div>
411413
</Form.Item>
412-
</Form>
414+
</Form>
415+
</S.PanelWrapper>
413416
</Spin>
414417
</>
415418
);

0 commit comments

Comments
 (0)