Skip to content

Commit c1e3ee0

Browse files
committed
fix: Merge branch 'develop' into feat/#171
2 parents b80e857 + 42dd49e commit c1e3ee0

File tree

54 files changed

+560
-295
lines changed

Some content is hidden

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

54 files changed

+560
-295
lines changed

src/api/joinProject.api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const getProjectData = async (
1010
return response.data;
1111
};
1212

13-
export const createProject = async (formData: FormData) => {
13+
export const postProject = async (formData: FormData) => {
1414
const response = await httpClient.post(`/project`, formData);
1515
return response.status;
1616
};

src/components/applyComponents/careersComponent/CareersComponent.styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const CareerContainer = styled.div`
1111
width: 100%;
1212
margin-bottom: 10px;
1313
14-
@media (max-width: 963px) {
14+
@media screen and ${({ theme }) => theme.mediaQuery.tablet} {
1515
flex-direction: column;
1616
gap: 10px;
1717
}

src/components/applyComponents/careersComponent/careersInputComponent/CareersComponentInput.styled.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const dateStyle = css`
1313
export const CareerInput = styled.input`
1414
${basicStyle}
1515
padding: 10px;
16-
font-size: 18px;
16+
font-size: 16px;
1717
1818
&:focus {
1919
outline: none;
@@ -40,18 +40,19 @@ export const CareerInput = styled.input`
4040
font-size: ${({ theme }) => theme.heading.small.fontSize};
4141
}
4242
43-
@media (max-width: 963px) {
44-
width: 100%;
43+
@media screen and ${({ theme }) => theme.mediaQuery.tablet} {
4544
flex: 1;
4645
margin-bottom: 10px;
4746
4847
&:nth-child(1),
4948
&:nth-child(4) {
49+
width: 60%;
5050
flex: 1;
5151
}
5252
5353
&:nth-child(2),
5454
&:nth-child(3) {
55+
width: 20%;
5556
flex: 1;
5657
}
5758
}

src/components/applyComponents/phoneComponent/PhoneComponent.styled.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,6 @@ export const PhoneInputContainer = styled.div`
88
position: relative;
99
`;
1010

11-
export const PhoneInput = styled.input<{ name: string }>`
12-
width: 60px;
13-
padding: 10px;
14-
border: 1px solid ${({ theme }) => theme.color.border};
15-
border-radius: ${({ theme }) => theme.borderRadius.primary};
16-
text-align: center;
17-
font-size: 18px;
18-
19-
&:focus {
20-
outline: none;
21-
border-color: #888;
22-
}
23-
`;
24-
2511
export const Dash = styled.span`
2612
align-self: center;
2713
font-size: 25px;
@@ -30,7 +16,7 @@ export const Dash = styled.span`
3016

3117
export const FormError = styled.p`
3218
margin-top: 0.3px;
33-
font-size: 1rem;
19+
font-size: 0.9rem;
3420
color: ${({ theme }) => theme.color.red};
3521
position: absolute;
3622
top: 115%;

src/components/applyComponents/phoneComponent/phoneComponentInput/PhoneComponentInput.styled.ts

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,9 @@ export const PhoneInput = styled.input`
66
border: 1px solid ${({ theme }) => theme.color.border};
77
border-radius: ${({ theme }) => theme.borderRadius.primary};
88
text-align: center;
9-
font-size: 19px;
9+
font-size: 17px;
1010
11-
&:focus {
12-
outline: none;
13-
border-color: #888;
11+
@media screen and ${({ theme }) => theme.mediaQuery.tablet} {
12+
font-size: 15px;
1413
}
1514
`;
16-
17-
export const FormError = styled.p`
18-
margin-top: 0.3px;
19-
font-size: 1rem;
20-
color: ${({ theme }) => theme.color.red};
21-
position: absolute;
22-
top: 100%;
23-
left: 0;
24-
white-space: nowrap;
25-
`;
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import styled from 'styled-components';
2+
import { EmptyLoadingPageProps } from './EmptyLoadingPage';
3+
4+
export const Container = styled.div<EmptyLoadingPageProps>`
5+
width: 100%;
6+
height: ${({ height }) => height};
7+
8+
@media screen ${({ theme }) => theme.mediaQuery.tablet} {
9+
height: ${({ tHeight }) => tHeight};
10+
}
11+
12+
@media screen ${({ theme }) => theme.mediaQuery.mobile} {
13+
height: ${({ mHeight }) => mHeight};
14+
}
15+
`;
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import * as S from './EmptyLoadingPage.styled';
2+
3+
export interface EmptyLoadingPageProps {
4+
height: string;
5+
tHeight: string;
6+
mHeight: string;
7+
}
8+
9+
export default function EmptyLoadingPage({
10+
height,
11+
tHeight,
12+
mHeight,
13+
}: EmptyLoadingPageProps) {
14+
return (
15+
<S.Container
16+
height={height}
17+
tHeight={tHeight}
18+
mHeight={mHeight}
19+
></S.Container>
20+
);
21+
}

src/components/common/header/Header.styled.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ export const HeaderContainer = styled.div`
1717
width: 70px;
1818
height: 70px;
1919
}
20+
21+
@media screen and ${({ theme }) => theme.mediaQuery.mobile} {
22+
width: 50px;
23+
height: 50px;
24+
}
2025
}
2126
2227
.panel {
@@ -67,4 +72,7 @@ export const HeaderContainer = styled.div`
6772
@media screen and ${({ theme }) => theme.mediaQuery.tablet} {
6873
padding: 10px 60px;
6974
}
75+
@media screen and ${({ theme }) => theme.mediaQuery.mobile} {
76+
padding: 10px 16px;
77+
}
7078
`;

src/components/common/layout/Layout.styled.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,8 @@ export const LayoutContainer = styled.div`
99
@media screen and ${({ theme }) => theme.mediaQuery.tablet} {
1010
padding: 0 60px;
1111
}
12+
13+
@media screen and ${({ theme }) => theme.mediaQuery.mobile} {
14+
padding: 0;
15+
}
1216
`;

src/components/common/modal/Modal.tsx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
1-
import { useRef, useState } from 'react';
1+
import { useState } from 'react';
22
import { createPortal } from 'react-dom';
33
import { CheckCircleIcon } from '@heroicons/react/24/outline';
44
import * as S from './Modal.styled';
55
import ScrollPreventor from './ScrollPreventor';
66
import ModalCloseButton from './ModalCloseButton';
7+
import { useOutsideClick } from '../../../hooks/useOutsideClick';
8+
79
interface ModalProps {
810
children: React.ReactNode;
911
isOpen: boolean;
1012
onClose: () => void;
1113
}
1214

1315
const Modal = ({ children, isOpen, onClose }: ModalProps) => {
14-
const modalRef = useRef<HTMLDivElement | null>(null);
16+
const modalRefs = useOutsideClick(() => handleClose());
1517
const [isFadingOut, setIsFadingOut] = useState(false);
1618

1719
const handleClose = () => {
1820
setIsFadingOut(true);
1921
};
2022

21-
const handleOverlayClick = (e: React.MouseEvent) => {
22-
if (modalRef.current && !modalRef.current.contains(e.target as Node)) {
23-
handleClose();
24-
}
25-
};
26-
2723
const handleAnimationEnd = () => {
2824
if (isFadingOut) {
2925
onClose();
@@ -37,10 +33,9 @@ const Modal = ({ children, isOpen, onClose }: ModalProps) => {
3733
<ScrollPreventor>
3834
<S.ModalContainer
3935
className={isFadingOut ? 'fade-out' : 'fade-in'}
40-
onClick={handleOverlayClick}
4136
onAnimationEnd={handleAnimationEnd}
4237
>
43-
<S.ModalBody ref={modalRef}>
38+
<S.ModalBody ref={modalRefs}>
4439
<ModalCloseButton onClose={handleClose} />
4540
<S.ModalIconWrapper>
4641
<CheckCircleIcon />

0 commit comments

Comments
 (0)