diff --git a/src/components/applyComponents/careersComponent/CareersComponent.styled.ts b/src/components/applyComponents/careersComponent/CareersComponent.styled.ts index c0bc4da9..fda6185e 100644 --- a/src/components/applyComponents/careersComponent/CareersComponent.styled.ts +++ b/src/components/applyComponents/careersComponent/CareersComponent.styled.ts @@ -10,10 +10,15 @@ export const CareerContainer = styled.div` gap: 15px; width: 100%; margin-bottom: 10px; + + @media (max-width: 963px) { + flex-direction: column; + gap: 10px; + } `; export const AddButton = styled(Button)` - width: 5%; + width: 50px; padding: 10px; cursor: pointer; border: 1px solid ${({ theme }) => theme.color.border}; diff --git a/src/components/applyComponents/careersComponent/careersInputComponent/CareersComponentInput.styled.ts b/src/components/applyComponents/careersComponent/careersInputComponent/CareersComponentInput.styled.ts index c1287e82..1027f91b 100644 --- a/src/components/applyComponents/careersComponent/careersInputComponent/CareersComponentInput.styled.ts +++ b/src/components/applyComponents/careersComponent/careersInputComponent/CareersComponentInput.styled.ts @@ -39,6 +39,22 @@ export const CareerInput = styled.input` flex: 2; font-size: ${({ theme }) => theme.heading.small.fontSize}; } + + @media (max-width: 963px) { + width: 100%; + flex: 1; + margin-bottom: 10px; + + &:nth-child(1), + &:nth-child(4) { + flex: 1; + } + + &:nth-child(2), + &:nth-child(3) { + flex: 1; + } + } `; export const FormError = styled.p` diff --git a/src/components/projectFormComponents/projectInformationText/ProjectInformation.styled.ts b/src/components/projectFormComponents/projectInformationText/ProjectInformation.styled.ts index d65b72e2..d99491dc 100644 --- a/src/components/projectFormComponents/projectInformationText/ProjectInformation.styled.ts +++ b/src/components/projectFormComponents/projectInformationText/ProjectInformation.styled.ts @@ -5,6 +5,10 @@ export const SectionInput = styled.div` display: flex; flex-direction: column; gap: 1px; + + @media (max-width: 1024px) { + margin-bottom: 25px; + } `; export const InfoRow = styled.div` @@ -12,29 +16,18 @@ export const InfoRow = styled.div` align-items: flex-start; margin-bottom: 20px; - label { - font-size: 1rem; - font-weight: bold; - color: #666; - text-align: left; - margin-right: 30px; - } - img { width: 40px; height: 40px; border: 1px solid ${({ theme }) => theme.color.border}; - border-radius: 50%; + border-radius: ${({ theme }) => theme.borderRadius.primary}; margin-bottom: 5px; margin-right: 10px; } - p { - font-size: 1rem; - font-weight: bold; - color: #000; - flex: 0.8; - text-align: left; + @media (max-width: 1024px) { + align-items: flex-start; + margin-bottom: 15px; } `; @@ -46,13 +39,38 @@ export const InfoLabel = styled.label` text-align: left; margin-right: 15px; white-space: nowrap; + + @media (max-width: 1024px) { + margin-right: 30px; + margin-bottom: 8px; + font-size: 0.9rem; + } +`; + +export const InfoText = styled.p` + font-size: 1rem; + font-weight: bold; + color: #000; + flex: 0.8; + text-align: left; + + @media (max-width: 1024px) { + font-size: 0.95rem; + flex: 1; + } `; export const SkillTagContainer = styled.div` display: grid; - grid-template-columns: repeat(9, 1fr); + grid-template-columns: repeat(8, 1fr); gap: 10px; - flex: 0.6; + flex: 0.9; + + @media (max-width: 1024px) { + grid-template-columns: repeat(6, 1fr); + gap: 8px; + width: 100%; + } `; export const SkillTagImage = styled.div` @@ -66,8 +84,9 @@ export const SkillTagImage = styled.div` width: 40px; height: 40px; border: 1px solid ${({ theme }) => theme.color.border}; - border-radius: 50%; + border-radius: ${({ theme }) => theme.borderRadius.primary}; margin-bottom: 5px; + margin-left: 10px; } p { @@ -75,15 +94,41 @@ export const SkillTagImage = styled.div` color: ${({ theme }) => theme.color.primary}; margin-top: 2px; } + + @media (max-width: 1024px) { + img { + width: 35px; + height: 35px; + } + + p { + font-size: 0.75rem; + } + } `; export const BeginnerIcon = styled.img` width: 21px; height: 21px; border-radius: 50%; - border: 1px solid #ccc; + border: 1px solid ${({ theme }) => theme.color.border}; background-color: #fff; padding: 5px; object-fit: contain; margin-bottom: 15px; + + @media (max-width: 1024px) { + width: 18px; + height: 18px; + margin-bottom: 10px; + } +`; + +export const BeginnerText = styled.p` + font-size: 1rem; + font-weight: bold; + color: #000; + flex: 0.8; + text-align: left; + margin-top: 20px; `; diff --git a/src/components/projectFormComponents/projectInformationText/ProjectInformation.tsx b/src/components/projectFormComponents/projectInformationText/ProjectInformation.tsx index 0980b648..557b4f20 100644 --- a/src/components/projectFormComponents/projectInformationText/ProjectInformation.tsx +++ b/src/components/projectFormComponents/projectInformationText/ProjectInformation.tsx @@ -18,28 +18,28 @@ const ProjectInformation = ({ data }: ProjectInformationProps) => { {data.isBeginner && } - {data.isBeginner &&

초보 환영

} + {data.isBeginner && 초보 환영}
{PROJECT_DATA_GET.map((input, index) => ( - -

{data[input.name as keyof ProjectDetail]}

+ {input.label} + {data[input.name as keyof ProjectDetail]}
))} - -

+ 모집 분야 + {data.ProjectPositionTag.map( (position) => position.PositionTag.name ).join(', ')} -

+
- -

{data.Method.name}

+ 진행 방식 + {data.Method.name}
@@ -52,7 +52,7 @@ const ProjectInformation = ({ data }: ProjectInformationProps) => { src={skillTag.SkillTag.img} alt={skillTag.SkillTag.name} /> -

{skillTag.SkillTag.name}

+ {skillTag.SkillTag.name} ))} diff --git a/src/pages/apply/Apply.styled.ts b/src/pages/apply/Apply.styled.ts index ab8a1c49..b7996d32 100644 --- a/src/pages/apply/Apply.styled.ts +++ b/src/pages/apply/Apply.styled.ts @@ -61,7 +61,7 @@ export const TextArea = styled.textarea` `; export const SubmitButton = styled(Button)` - width: 10%; + width: 100px; padding: 15px; margin: 0 auto; cursor: pointer; diff --git a/src/pages/createProject/CreateProject.styled.ts b/src/pages/createProject/CreateProject.styled.ts index 7b3ab2b4..70025cdd 100644 --- a/src/pages/createProject/CreateProject.styled.ts +++ b/src/pages/createProject/CreateProject.styled.ts @@ -52,7 +52,7 @@ export const SectionInput = styled.div` `; export const SubmitButton = styled.button` - width: 10%; + width: 70px; padding: 15px; background-color: ${({ theme }) => theme.buttonScheme.primary.bg}; color: ${({ theme }) => theme.color.white}; diff --git a/src/pages/projectDetail/ProjectDetail.styled.ts b/src/pages/projectDetail/ProjectDetail.styled.ts index e0de4218..c528a206 100644 --- a/src/pages/projectDetail/ProjectDetail.styled.ts +++ b/src/pages/projectDetail/ProjectDetail.styled.ts @@ -5,6 +5,10 @@ export const Container = styled.div` max-width: 100%; margin: 0 auto; padding: 40px; + + @media (max-width: 870px) { + padding: 25px; + } `; export const Header = styled.div` @@ -17,6 +21,10 @@ export const Title = styled.h1` font-size: 36px; font-weight: bold; margin-bottom: 10px; + + @media (max-width: 870px) { + font-size: 28px; + } `; export const ProfileContainer = styled.div` @@ -33,16 +41,29 @@ export const UserInfo = styled.div` display: flex; gap: 12px; align-items: center; + + @media (max-width: 870px) { + flex-wrap: wrap; + gap: 8px; + } `; export const UserName = styled.div` font-size: 21px; font-weight: bold; + + @media (max-width: 870px) { + font-size: 18px; + } `; export const PostDate = styled.div` font-size: ${({ theme }) => theme.heading.semiSmall}; color: ${({ theme }) => theme.color.deepGrey}; + + @media (max-width: 870px) { + font-size: 0.9rem; + } `; export const ViewCount = styled.div` @@ -58,6 +79,15 @@ export const ViewCount = styled.div` height: 16px; color: ${({ theme }) => theme.color.deepGrey}; } + + @media (max-width: 870px) { + font-size: 0.9rem; + + svg { + width: 14px; + height: 14px; + } + } `; export const Content = styled.div`