-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[홈화면] 슬라이드 뷰, Application 뷰 컴포넌트 #25 make ApplicationSection view
- Loading branch information
Showing
6 changed files
with
263 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from "react"; | ||
import { | ||
CategoryBox, | ||
CategoryContents, | ||
CategoryTitle, | ||
} from "../../../styles/mainpage/applicationSection"; | ||
import { Text } from "../../common"; | ||
|
||
function LeftSector() { | ||
return ( | ||
<> | ||
<CategoryBox> | ||
<CategoryTitle> | ||
<Text size="medium" color="white"> | ||
{`>`} 전공 및 학년 | ||
</Text> | ||
</CategoryTitle> | ||
<CategoryContents> | ||
<Text size="medium" color="white"> | ||
컴퓨터공학과 신입생 | ||
</Text> | ||
</CategoryContents> | ||
</CategoryBox> | ||
<CategoryBox> | ||
<Text size="medium" color="white"> | ||
{`>`} 대상 | ||
</Text> | ||
<Text size="medium" color="white"> | ||
제한없음 | ||
</Text> | ||
</CategoryBox> | ||
</> | ||
); | ||
} | ||
|
||
export default LeftSector; |
37 changes: 37 additions & 0 deletions
37
src/components/mainpage/applicationSection/RightSector.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from "react"; | ||
import { | ||
CategoryBox, | ||
CategoryContents, | ||
CategoryTitle, | ||
} from "../../../styles/mainpage/applicationSection"; | ||
import { Text } from "../../common"; | ||
|
||
function RightSector() { | ||
return ( | ||
<> | ||
<CategoryBox> | ||
<Text size="medium" color="white"> | ||
{`>`} 전공 및 학년 | ||
</Text> | ||
|
||
<Text size="medium" color="white"> | ||
전공/학년 무관 | ||
</Text> | ||
</CategoryBox> | ||
<CategoryBox> | ||
<CategoryTitle> | ||
<Text size="medium" color="white"> | ||
{`>`} 대상 | ||
</Text> | ||
</CategoryTitle> | ||
<CategoryContents> | ||
<Text size="medium" color="white"> | ||
개발자로 진로를 확정하신 분 | ||
</Text> | ||
</CategoryContents> | ||
</CategoryBox> | ||
</> | ||
); | ||
} | ||
|
||
export default RightSector; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import React from "react"; | ||
import { | ||
Category, | ||
CategoryBox, | ||
CategoryContents, | ||
CategoryTitle, | ||
CoverImageBox, | ||
HeaderBox, | ||
LeftPeriodBox, | ||
LeftSectorBox, | ||
PeriodBox, | ||
RegularSector, | ||
RightPeriodBox, | ||
RightSectorBox, | ||
SectorBox, | ||
} from "../../../styles/mainpage/applicationSection"; | ||
import { MainBox } from "../../../styles/mainpage/applicationSection"; | ||
import { Text } from "../../common"; | ||
import CoverImg from "../../../assets/application_image.png"; | ||
import RightSector from "./RightSector"; | ||
import LeftSector from "./LeftSector"; | ||
|
||
function ApplicationSection() { | ||
return ( | ||
<CoverImageBox | ||
img={CoverImg} // 이걸로 안댐 | ||
style={{ | ||
backgroundImage: `url(${CoverImg})`, | ||
}} | ||
> | ||
<MainBox> | ||
<HeaderBox> | ||
<Text size="h1" weight="bold" color="white"> | ||
Application | ||
</Text> | ||
</HeaderBox> | ||
|
||
<PeriodBox> | ||
<LeftPeriodBox> | ||
<Category> | ||
<Text size="h4" color="white"> | ||
모집 시기 | ||
</Text> | ||
</Category> | ||
|
||
<CategoryTitle> | ||
<Text size="h4" color="white"> | ||
정기 모집 | ||
</Text> | ||
</CategoryTitle> | ||
<CategoryContents> | ||
<Text size="h4" color="white"> | ||
2~3월 | ||
</Text> | ||
</CategoryContents> | ||
</LeftPeriodBox> | ||
<RightPeriodBox> | ||
<Text size="h4" color="white"> | ||
수시 모집 | ||
</Text> | ||
</RightPeriodBox> | ||
</PeriodBox> | ||
<SectorBox> | ||
<LeftSectorBox> | ||
<Category> | ||
<Text size="h4" color="white"> | ||
모집 부문 | ||
</Text> | ||
</Category> | ||
<RegularSector> | ||
<Text size="h4" color="white"> | ||
정기모집 부문 | ||
</Text> | ||
<LeftSector /> | ||
</RegularSector> | ||
</LeftSectorBox> | ||
|
||
<RightSectorBox> | ||
<div> | ||
<Text size="h4" color="white"> | ||
수시모집 부문 | ||
</Text> | ||
|
||
<RightSector /> | ||
</div> | ||
</RightSectorBox> | ||
</SectorBox> | ||
</MainBox> | ||
</CoverImageBox> | ||
); | ||
} | ||
|
||
export default ApplicationSection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
export const CoverImageBox = styled.div<{ img: string }>` | ||
background-image: url({img}); | ||
background-repeat: no-repeat; | ||
height: auto; | ||
width: 100%; | ||
background-size: cover; | ||
`; | ||
|
||
export const MainBox = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
height: 700px; | ||
margin-left: 15%; | ||
margin-right: 15%; | ||
`; | ||
|
||
export const HeaderBox = styled.div` | ||
justify-content: center; | ||
text-align: center; | ||
margin: 10%; | ||
margin-top: 20%; | ||
`; | ||
|
||
export const Category = styled.div` | ||
margin-right: 25%; | ||
margin-bottom: 30px; | ||
width: 95px; | ||
`; | ||
|
||
export const PeriodBox = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
`; | ||
|
||
export const LeftPeriodBox = styled.div` | ||
display: flex; | ||
width: 50%; | ||
border-bottom: 2px solid gray; | ||
`; | ||
|
||
export const RightPeriodBox = styled.div` | ||
display: flex; | ||
width: 30%; | ||
border-bottom: 2px solid gray; | ||
`; | ||
|
||
export const SectorBox = styled.div` | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
margin-top: 30px; | ||
`; | ||
|
||
export const LeftSectorBox = styled.div` | ||
display: flex; | ||
width: 50%; | ||
`; | ||
export const RightSectorBox = styled.div` | ||
display: flex; | ||
width: 30%; | ||
`; | ||
|
||
export const CategoryBox = styled.div` | ||
display: flex; | ||
height: 30px; | ||
margin: 15px; | ||
width: 100%; | ||
justify-content: space-between; | ||
`; | ||
|
||
export const CategoryTitle = styled.div` | ||
height: 30px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
`; | ||
|
||
export const CategoryContents = styled.div` | ||
height: 30px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
background-color: rgba(74, 56, 244, 0.5); | ||
border-radius: 5px; | ||
padding: 10px; | ||
`; | ||
|
||
export const RegularSector = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
`; |