Skip to content

Commit 5ebf131

Browse files
authored
[1.5.0] CPM_Arena Production (#33)
[1.5.0] CPM_Arena Production
2 parents 8966d74 + 7528513 commit 5ebf131

File tree

157 files changed

+2819
-1679
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+2819
-1679
lines changed

public/assets/all_star.png

19.7 KB

public/assets/card_background.png

159 KB

public/assets/golden_glove.png

1.35 KB

public/assets/mvp.png

1.4 KB
58.6 KB
57.1 KB
60.8 KB
56.1 KB
56.9 KB
55.8 KB
59.3 KB
56 KB
51 KB
50.6 KB
49.9 KB
49.4 KB
56.2 KB
51.9 KB
56.2 KB
50.8 KB
54.1 KB
53.9 KB
54 KB
49.2 KB
55.4 KB
53.2 KB
56.5 KB
52.3 KB
52.9 KB
50 KB
52 KB
48.5 KB
49.4 KB
47.7 KB
52.5 KB
47.8 KB
49.4 KB
47.6 KB
50.8 KB
47.8 KB
55.5 KB
54.3 KB
56.3 KB
52.7 KB
52.9 KB
50 KB
52.2 KB
48.6 KB
54.5 KB
52.9 KB
54.3 KB
51.5 KB
53.9 KB
52.4 KB
55.1 KB
51.7 KB
52.8 KB
51.2 KB
55.2 KB
50.9 KB
53.5 KB
53.1 KB
49.5 KB
47.2 KB
53.8 KB
56.6 KB
54.3 KB
51.5 KB
58.1 KB
59 KB
57.7 KB
58.1 KB
51.9 KB
50.9 KB
54.5 KB
50.9 KB
57 KB
56.3 KB
58.3 KB
55.4 KB
55.2 KB
54.2 KB
56 KB
53.2 KB
53.3 KB
53.5 KB
53 KB
50.6 KB

src/app/components/background/index.tsx

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/app/components/background/styles.ts

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
import { ReactNode, useState } from 'react';
2+
3+
import * as S from './styles';
4+
5+
type BackgroundProps = {
6+
children: ReactNode;
7+
};
8+
9+
const Background = ({ children }: BackgroundProps) => {
10+
const [clicks, setClicks] = useState<{ x: number; y: number; id: number }[]>([]);
11+
12+
const handleClick = (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => {
13+
const newClick = {
14+
x: event.pageX,
15+
y: event.pageY,
16+
id: Date.now(),
17+
};
18+
19+
setClicks((prev) => [...prev, newClick]);
20+
setTimeout(() => {
21+
setClicks((prev) => prev.filter((click) => click.id !== newClick.id));
22+
}, 500);
23+
};
24+
25+
return (
26+
<S.Container onClick={handleClick}>
27+
{clicks.map((click) => (
28+
<S.ClickEffect key={click.id} style={{ left: click.x, top: click.y }}></S.ClickEffect>
29+
))}
30+
<S.Content>{children}</S.Content>
31+
</S.Container>
32+
);
33+
};
34+
35+
export default Background;
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
import { styled } from 'styled-components';
2+
3+
export const Container = styled.div`
4+
display: flex;
5+
flex-direction: column;
6+
justify-content: center;
7+
align-items: center;
8+
min-height: 100%;
9+
background: url('/assets/hideout.svg');
10+
background-size: 100px 100px;
11+
position: relative;
12+
`;
13+
14+
export const ClickEffect = styled.div`
15+
position: absolute;
16+
width: 30px;
17+
height: 30px;
18+
background: transparent;
19+
outline: 4px solid #fff;
20+
outline-offset: 0px;
21+
border-radius: 50%;
22+
box-shadow: inset 0 0 100px 100px rgba(255, 165, 0, 0.8), 0 0 10px 10px rgba(255, 165, 0, 0.7);
23+
transform: translate(-50%, -50%);
24+
animation: click-effect-animation 0.5s forwards;
25+
z-index: 20;
26+
27+
@keyframes click-effect-animation {
28+
30% {
29+
opacity: 1;
30+
outline: 4px solid #fff;
31+
outline-offset: 0px;
32+
box-shadow: inset 0 0 0 0 rgba(255, 165, 0, 0.2), 0 0 10px 5px rgba(255, 165, 0, 0.7);
33+
}
34+
35+
100% {
36+
opacity: 0;
37+
outline: 2px solid #fff;
38+
outline-offset: 2px;
39+
box-shadow: inset 0 0 0 0 rgba(255, 165, 0, 0.2), 0 0 10px 5px rgba(255, 165, 0, 0);
40+
}
41+
}
42+
`;
43+
44+
export const Content = styled.div`
45+
position: relative;
46+
max-width: 1100px;
47+
padding: 30px 0;
48+
user-select: none;
49+
50+
@media (max-width: 416px) {
51+
padding: 20px 0;
52+
}
53+
54+
@media (max-width: 353px) {
55+
padding: 15px 0;
56+
}
57+
`;

src/app/components/home/submitBtn/index.tsx

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/app/components/lineUpInfo/index.tsx

Lines changed: 0 additions & 187 deletions
This file was deleted.

0 commit comments

Comments
 (0)