Skip to content

Commit f883a71

Browse files
committed
Обновление: улучшен стиль компонента CustomRoulette с добавлением визуальных разделителей и изменением отступов между призами
1 parent 5a01cfb commit f883a71

File tree

2 files changed

+28
-4
lines changed

2 files changed

+28
-4
lines changed

src/components/OBS_Components/MikuMonday/components/CustomRoulette/CustomRoulette.module.scss

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,39 @@
2222
align-items: flex-end;
2323
justify-content: center;
2424
position: relative;
25-
border: 2px solid rgba(57, 197, 187, 0.3);
25+
border: 2px solid rgba(57, 197, 187, 0.8);
2626
border-radius: 8px;
2727
overflow: hidden;
2828
transition: all 0.3s;
2929
height: 210px;
30+
box-shadow:
31+
0 0 30px rgba(57, 197, 187, 0.5),
32+
inset 0 0 40px rgba(57, 197, 187, 0.1);
33+
transform: scale(1.02);
3034

31-
&:hover {
32-
border-color: rgba(57, 197, 187, 0.8);
35+
// Разделитель справа от каждого приза
36+
&::after {
37+
content: '';
38+
position: absolute;
39+
right: -6px;
40+
top: 10%;
41+
bottom: 10%;
42+
width: 2px;
43+
background: linear-gradient(
44+
to bottom,
45+
transparent 0%,
46+
rgba(57, 197, 187, 0.8) 20%,
47+
rgba(255, 107, 237, 0.8) 50%,
48+
rgba(57, 197, 187, 0.8) 80%,
49+
transparent 100%
50+
);
51+
box-shadow:
52+
0 0 10px rgba(57, 197, 187, 0.6),
53+
0 0 20px rgba(255, 107, 237, 0.4);
54+
z-index: 10;
3355
}
56+
57+
3458
}
3559

3660
.prizeImage {

src/components/OBS_Components/MikuMonday/components/CustomRoulette/CustomRoulette.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface CustomRouletteProps {
1313
}
1414

1515
const PRIZE_WIDTH = 200; // ширина одного приза
16-
const PRIZE_GAP = 10; // отступ между призами
16+
const PRIZE_GAP = 20; // отступ между призами (чуть больше для визуального разделения)
1717
const SPIN_DURATION = 20; // секунды
1818

1919
export default function CustomRoulette({

0 commit comments

Comments
 (0)