Skip to content

Commit 93b5d11

Browse files
committed
Update Background
1 parent 6d19735 commit 93b5d11

2 files changed

Lines changed: 60 additions & 48 deletions

File tree

src/components/MainFrame/Particle.js

Lines changed: 42 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,50 +13,62 @@ function Particle() {
1313
enable: true,
1414
zIndex: -1
1515
},
16+
background: {
17+
color: {
18+
value: "transparent",
19+
},
20+
},
21+
fpsLimit: 120,
1622
particles: {
23+
color: {
24+
value: "#38bdf8", // 科技蓝
25+
},
26+
links: {
27+
color: "#38bdf8",
28+
distance: 160, // 增加连线判定距离,让更多节点连接
29+
enable: true,
30+
opacity: 0.15, // 稍微提高连线可见度
31+
width: 1,
32+
},
33+
move: {
34+
direction: "none",
35+
enable: true,
36+
outModes: {
37+
default: "bounce",
38+
},
39+
random: false,
40+
speed: 0.4, // 极慢的呼吸感漂浮
41+
straight: false,
42+
},
1743
number: {
18-
value: 220,
1944
density: {
2045
enable: true,
21-
value_area: 1500
22-
}
46+
area: 800,
47+
},
48+
value: 120, // 节点数量
2349
},
24-
line_linked: {
25-
enable: false,
26-
opacity: 0.03
50+
opacity: {
51+
value: 0.3,
2752
},
28-
move: {
29-
direction: "right",
30-
speed: 0.05
53+
shape: {
54+
type: "circle",
3155
},
3256
size: {
33-
value: 1
57+
value: { min: 1, max: 2 },
3458
},
35-
opacity: {
36-
value: { min: 0.1, max: 1 },
37-
animation: {
38-
enable: true,
39-
speed: 1,
40-
sync: false,
41-
startValue: "random",
42-
destroy: "none"
43-
}
44-
}
4559
},
4660
interactivity: {
4761
events: {
48-
onclick: {
49-
enable: true,
50-
mode: "push"
51-
}
62+
onHover: {
63+
enable: false,
64+
},
65+
onClick: {
66+
enable: false,
67+
},
68+
resize: true,
5269
},
53-
modes: {
54-
push: {
55-
particles_nb: 1
56-
}
57-
}
5870
},
59-
retina_detect: true
71+
detectRetina: true,
6072
}),
6173
[]
6274
);

src/css/style.css

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ body {
7373
--surface-glass-hover: rgba(255, 255, 255, 0.08);
7474
--surface-glass-active: rgba(255, 255, 255, 0.12);
7575
--surface-glass-strong: rgba(255, 255, 255, 0.15);
76-
--surface-panel: rgba(23, 28, 40, 0.7);
76+
--surface-panel: rgba(15, 23, 42, 0.65);
7777

7878
/* Borders */
7979
--border-subtle: rgba(255, 255, 255, 0.1);
@@ -116,15 +116,15 @@ body {
116116
/*====================
117117
Scrollbar
118118
====================*/
119-
--scrollbar-bg-track: #192850;
119+
--scrollbar-bg-track: #0f172a;
120120
--scrollbar-bg-thumb: rgba(121, 205, 216, 0.959);
121121
--scrollbar-bg-thumb-hover: rgba(213, 232, 235, 0.91);
122122

123123
/*====================
124124
Navbar
125125
====================*/
126-
--navbar-bg: rgba(26, 31, 46, 0.6);
127-
--navbar-bg-mobile: rgba(24, 28, 39, 0.7);
126+
--navbar-bg: rgba(15, 23, 42, 0.6);
127+
--navbar-bg-mobile: rgba(15, 23, 42, 0.7);
128128
--navbar-color-brand: rgb(16, 227, 246);
129129
--navbar-color-brand-hover: rgb(3, 248, 248);
130130
--navbar-color-toggler: #50c0f4;
@@ -138,8 +138,8 @@ body {
138138
--navbar-glass-active-bg: rgba(255, 255, 255, 0.14);
139139
--navbar-glass-active-border: rgba(230, 220, 210, 0.18);
140140
/* Project cards: darker glass, slightly stronger border so it’s visible */
141-
--card-glass-bg: rgba(26, 32, 44, 0.55);
142-
--card-glass-bg-list: rgba(20, 26, 36, 0.7);
141+
--card-glass-bg: rgba(15, 23, 42, 0.55);
142+
--card-glass-bg-list: rgba(15, 23, 42, 0.7);
143143
--card-glass-border: rgba(220, 235, 245, 0.15);
144144
--card-glass-border-hover: rgba(220, 240, 255, 0.35);
145145
--card-glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px rgba(0, 0, 0, 0.25);
@@ -205,10 +205,10 @@ body {
205205
--color-black: #000;
206206
--color-warning: #ffc107;
207207
--color-success: #28a745;
208-
--surface-overlay-dark: rgba(13, 22, 26, 0.65);
209-
--surface-overlay-dark-soft: rgba(13, 22, 26, 0.6);
210-
--surface-overlay-dark-strong: rgba(13, 22, 26, 0.75);
211-
--surface-nav-collapse: rgba(28, 38, 52, 0.95);
208+
--surface-overlay-dark: rgba(3, 7, 18, 0.65);
209+
--surface-overlay-dark-soft: rgba(3, 7, 18, 0.6);
210+
--surface-overlay-dark-strong: rgba(3, 7, 18, 0.75);
211+
--surface-nav-collapse: rgba(15, 23, 42, 0.95);
212212
--shadow-inset-soft: inset 0 1px 0 rgba(255, 255, 255, 0.06);
213213
--navbar-collapse-shadow: inset 0 -1.2px 1.2px rgba(255, 255, 255, 0.2), 0 -6px 32px 0 rgba(0, 0, 0, 0.2);
214214
--blur-top-gradient: linear-gradient(180deg, rgba(3, 7, 18, 0.92) 0%, rgba(15, 23, 42, 0.78) 32%, rgba(15, 23, 42, 0.42) 62%, rgba(15, 23, 42, 0.14) 84%, rgba(15, 23, 42, 0) 100%);
@@ -895,10 +895,10 @@ button:focus {
895895
border-top-right-radius: 27px;
896896
background: linear-gradient(
897897
to bottom,
898-
rgba(20, 25, 36, 0.98) 0%,
899-
rgba(20, 25, 36, 0.9) 60%,
900-
rgba(20, 25, 36, 0.5) 85%,
901-
rgba(20, 25, 36, 0) 100%
898+
rgba(15, 23, 42, 0.98) 0%,
899+
rgba(15, 23, 42, 0.9) 60%,
900+
rgba(15, 23, 42, 0.5) 85%,
901+
rgba(15, 23, 42, 0) 100%
902902
);
903903
mask-image: linear-gradient(to bottom, black 0%, black 60%, rgba(0, 0, 0, 0.5) 85%, transparent 100%);
904904
-webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, rgba(0, 0, 0, 0.5) 85%, transparent 100%);
@@ -1070,10 +1070,10 @@ a.floating-nav-contact-item:hover {
10701070
border-bottom-right-radius: 27px;
10711071
background: linear-gradient(
10721072
to top,
1073-
rgba(20, 25, 36, 0.98) 0%,
1074-
rgba(20, 25, 36, 0.9) 60%,
1075-
rgba(20, 25, 36, 0.5) 85%,
1076-
rgba(20, 25, 36, 0) 100%
1073+
rgba(15, 23, 42, 0.98) 0%,
1074+
rgba(15, 23, 42, 0.9) 60%,
1075+
rgba(15, 23, 42, 0.5) 85%,
1076+
rgba(15, 23, 42, 0) 100%
10771077
);
10781078
backdrop-filter: blur(24px);
10791079
-webkit-backdrop-filter: blur(24px);

0 commit comments

Comments
 (0)