Skip to content

Commit a90f64a

Browse files
Merge pull request #165 from D3vPals/feat/#162
모집공고관리 페이지 반응형 구현(issue #162)
2 parents 463d44f + d8fc168 commit a90f64a

24 files changed

+175
-88
lines changed

src/components/common/infoCard/InfoCard.styled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export const Container = styled.div`
77
border: 2px solid #f0f0f0;
88
border-radius: ${({ theme }) => theme.borderRadius.large};
99
width: 80%;
10-
min-width: 530px;
10+
min-width: 500px;
1111
height: 80vh;
1212
padding-bottom: 1rem;
1313
position: relative;

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

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

src/components/common/layout/ApplicantViewLayout.tsx

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

src/components/common/layout/sidebar/LayoutSidebar.styled.ts

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

src/components/common/layout/sidebar/LayoutSidebar.tsx

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

src/components/common/sidebar/Sidebar.styled.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export const MenuItem = styled.div<{ $isActive: boolean }>`
4545
background-color: ${({ $isActive }) =>
4646
$isActive ? '#f9f9f9' : 'transparent'};
4747
48-
@media screen and ${({ theme }) => theme.mediaQuery.tablet} {
49-
font-size: ${({ theme }) => theme.heading['semiSmall'].tabletFontSize};
48+
@media ${({ theme }) => theme.mediaQuery.tablet} {
49+
font-size: 0.7rem;
5050
}
5151
5252
&:hover {
@@ -58,9 +58,9 @@ export const MenuItem = styled.div<{ $isActive: boolean }>`
5858
width: 30px;
5959
height: 30px;
6060
61-
@media screen and ${({ theme }) => theme.mediaQuery.tablet} {
62-
width: 23px;
63-
height: 23px;
61+
@media ${({ theme }) => theme.mediaQuery.tablet} {
62+
width: 20px;
63+
height: 20px;
6464
}
6565
}
6666
`;

src/components/manageProjects/Card.styled.ts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ export const CardWrapper = styled.div`
2222
&:hover {
2323
background-color: ${({ theme }) => theme.color.grey};
2424
}
25+
@media ${({ theme }) => theme.mediaQuery.tablet} {
26+
width: 19rem;
27+
height: 14rem;
28+
}
2529
`;
2630

2731
export const CardTitle = styled.h3`
@@ -33,20 +37,35 @@ export const CardTitle = styled.h3`
3337
-webkit-box-orient: vertical;
3438
text-overflow: ellipsis;
3539
overflow: hidden;
40+
41+
@media ${({ theme }) => theme.mediaQuery.tablet} {
42+
font-size: ${({ theme }) => theme.heading.small.fontSize};
43+
margin-bottom: 0.8rem;
44+
}
3645
`;
3746

3847
export const RecruitmentDate = styled.small`
39-
font-size: 1rem;
48+
font-size: ${({ theme }) => theme.heading.small.fontSize};
4049
font-weight: 400;
4150
color: ${({ theme }) => theme.color.deepgrey};
4251
margin-bottom: 0.25rem;
52+
53+
@media ${({ theme }) => theme.mediaQuery.tablet} {
54+
font-size: ${({ theme }) => theme.heading.small.tabletFontSize};
55+
margin-bottom: 0.7rem;
56+
}
4357
`;
4458

4559
export const TotalMember = styled.small`
46-
font-size: 1rem;
60+
font-size: ${({ theme }) => theme.heading.small.fontSize};
4761
font-weight: 400;
4862
color: ${({ theme }) => theme.color.deepgrey};
4963
margin-bottom: 1.125rem;
64+
65+
@media ${({ theme }) => theme.mediaQuery.tablet} {
66+
font-size: ${({ theme }) => theme.heading.small.tabletFontSize};
67+
margin-bottom: 1rem;
68+
}
5069
`;
5170

5271
export const RecruitmentEnd = styled.span`

src/components/manageProjects/CardList.styled.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,22 @@ export const CreateButton = styled.button`
2121
align-items: center;
2222
2323
img {
24-
width: 1.875rem;
25-
height: 1.875rem;
24+
width: 30px;
25+
height: 30px;
2626
margin-bottom: 0.75rem;
2727
}
2828
2929
&:hover {
3030
background-color: ${({ theme }) => theme.color.grey};
3131
}
32+
33+
@media ${({ theme }) => theme.mediaQuery.tablet} {
34+
width: 19rem;
35+
height: 14rem;
36+
font-size: ${({ theme }) => theme.heading.small.fontSize};
37+
img {
38+
width: 20px;
39+
height: 20px;
40+
}
41+
}
3242
`;

src/components/manageProjects/RecruitmentDate.styled.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export const Container = styled.div`
55
justify-content: start;
66
align-items: center;
77
margin-top: 1rem;
8+
margin-bottom: 1rem;
89
`;
910

1011
export const DateTag = styled.span`
@@ -13,16 +14,27 @@ export const DateTag = styled.span`
1314
align-items: center;
1415
width: 6.25rem;
1516
height: 2rem;
16-
font-size: ${({ theme }) => theme.heading.small};
17+
font-size: ${({ theme }) => theme.heading.small.fontSize};
1718
color: ${({ theme }) => theme.color.navy};
1819
padding: 0.5rem 1.25rem;
1920
border: 1px solid ${({ theme }) => theme.color.navy};
2021
border-radius: ${({ theme }) => theme.borderRadius.primary};
2122
margin-right: 1.25rem;
23+
24+
@media ${({ theme }) => theme.mediaQuery.tablet} {
25+
width: 5rem;
26+
height: 1.5rem;
27+
padding: 0.25rem 1rem;
28+
font-size: ${({ theme }) => theme.heading.small.tabletFontSize};
29+
}
2230
`;
2331

2432
export const Period = styled.small`
25-
font-size: ${({ theme }) => theme.heading.small};
33+
font-size: ${({ theme }) => theme.heading.small.fontSize};
2634
font-weight: 500;
2735
color: ${({ theme }) => theme.color.deepgrey};
36+
37+
@media ${({ theme }) => theme.mediaQuery.tablet} {
38+
font-size: ${({ theme }) => theme.heading.small.tabletFontSize};
39+
}
2840
`;

src/components/manageProjects/applicantInfo/ApplicantInfo.styled.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const Container = styled.div`
55
flex-direction: column;
66
width: 100%;
77
min-width: 270px;
8-
height: 550px;
8+
height: 100%;
99
padding: 1.5rem;
1010
padding-bottom: 0;
1111
border: 1px solid ${({ theme }) => theme.color.border};
@@ -22,25 +22,37 @@ export const Container = styled.div`
2222
`;
2323

2424
export const Title = styled.h2`
25-
font-size: 1.8rem;
25+
font-size: ${({ theme }) => theme.heading.large.fontSize};
2626
font-weight: 600;
2727
color: ${({ theme }) => theme.color.primary};
2828
margin-bottom: 1.25rem;
29+
30+
@media ${({ theme }) => theme.mediaQuery.tablet} {
31+
font-size: ${({ theme }) => theme.heading.medium.tabletFontSize};
32+
}
2933
`;
3034

3135
export const Label = styled.p`
32-
font-size: 1.2rem;
36+
font-size: ${({ theme }) => theme.heading.medium.fontSize};
3337
font-weight: 700;
3438
color: ${({ theme }) => theme.color.deepGrey};
39+
40+
@media ${({ theme }) => theme.mediaQuery.tablet} {
41+
font-size: ${({ theme }) => theme.heading.semiSmall.tabletFontSize};
42+
}
3543
`;
3644

3745
export const Text = styled.p`
38-
font-size: 1rem;
46+
font-size: ${({ theme }) => theme.heading.small.fontSize};
3947
font-weight: 400;
4048
color: ${({ theme }) => theme.color.primary};
4149
margin-bottom: 1rem;
4250
4351
.period {
4452
color: ${({ theme }) => theme.color.deepGrey};
4553
}
54+
55+
@media ${({ theme }) => theme.mediaQuery.tablet} {
56+
font-size: ${({ theme }) => theme.heading.small.tabletFontSize};
57+
}
4658
`;

0 commit comments

Comments
 (0)