Skip to content

Commit 33df68f

Browse files
authored
🔀 Mode 페이지 UI 파일 분리 (#75)
2 parents 4c8bf9f + 50c5de5 commit 33df68f

5 files changed

Lines changed: 28 additions & 28 deletions

File tree

src/pages/play/mode/index.css.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import { COLORED_ICON_BUTTON_SIZE_PIXEL } from '@/components/button/constants';
44

55
import { MYRANKINGITEMBOX_HEIGHT } from '@/pages/ranking/constants';
66

7-
import { flexOptions, sprinkles } from '@/shared/styles';
8-
97
export const wrapper = style([
108
{
119
display: 'grid',
@@ -26,24 +24,3 @@ export const myRank = style([
2624
gridColumn: '1 / 3',
2725
},
2826
]);
29-
30-
export const matchingModalWrapper = style([
31-
flexOptions({ option: 'columnCenter' }),
32-
]);
33-
34-
export const matchingMessage = style([
35-
flexOptions({ option: 'row' }),
36-
sprinkles({
37-
textSize: '2x',
38-
justifyContent: 'flexStart',
39-
width: 'full',
40-
marginBottom: '1x',
41-
paddingLeft: '4x',
42-
}),
43-
]);
44-
45-
export const matchingImageWrapper = style([
46-
sprinkles({
47-
marginY: '2x',
48-
}),
49-
]);

src/pages/play/mode/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useNavigate } from 'react-router-dom';
33

44
import { getMatching } from './api';
55
import * as styles from './index.css';
6-
import Matching from './Matching';
6+
import Matching from './ui/Matching';
77

88
import ColoredIconButton from '@/components/button/ColoredIconButton';
99
import Modal, { useModal } from '@/components/modal';
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
import { useNavigate } from 'react-router-dom';
22

3-
import { deleteMatching } from './api';
3+
import { deleteMatching } from '../api';
44
import * as styles from './index.css';
5+
import { MatchingText } from './MatchingText';
56

67
import ColoredButton from '@/components/button/ColoredButton';
78
import RoundCornerImageBox from '@/components/image-box';
89

9-
import { MatchingText } from '@/pages/play/mode/MatchingText';
10-
1110
import { useWebSocket } from '@/features/websocket';
1211
import { ROUTE } from '@/shared/constants';
1312

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useEffect, useRef, useState } from 'react';
22

3-
import * as styles from '@/pages/play/mode/index.css';
3+
import * as styles from './index.css';
44

55
interface Props {
66
isModalOpen: boolean;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { style } from '@vanilla-extract/css';
2+
3+
import { flexOptions, sprinkles } from '@/shared/styles';
4+
5+
export const matchingModalWrapper = style([
6+
flexOptions({ option: 'columnCenter' }),
7+
]);
8+
9+
export const matchingMessage = style([
10+
flexOptions({ option: 'row' }),
11+
sprinkles({
12+
textSize: '2x',
13+
justifyContent: 'flexStart',
14+
width: 'full',
15+
marginBottom: '1x',
16+
paddingLeft: '4x',
17+
}),
18+
]);
19+
20+
export const matchingImageWrapper = style([
21+
sprinkles({
22+
marginY: '2x',
23+
}),
24+
]);

0 commit comments

Comments
 (0)