generated from ooooorobo/react-mobile-web-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from wanted-fork-fork/develop
[Release] v0.7.1 신청자 명단 및 신청서 상세 외 디테일 추가
- Loading branch information
Showing
40 changed files
with
989 additions
and
152 deletions.
There are no files selected for viewing
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,34 @@ | ||
function DocumentIcon() { | ||
return ( | ||
<svg | ||
width="32" | ||
height="32" | ||
viewBox="0 0 32 32" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<rect | ||
x="6.5" | ||
y="3.5" | ||
width="20" | ||
height="24" | ||
fill="white" | ||
stroke="#222222" | ||
/> | ||
<rect | ||
x="10.5" | ||
y="6.5" | ||
width="12" | ||
height="3" | ||
rx="1.5" | ||
fill="#FA5D66" | ||
stroke="#222222" | ||
/> | ||
<path d="M10 14H23" stroke="#222222" /> | ||
<path d="M10 18H23" stroke="#222222" /> | ||
<path d="M10 22H23" stroke="#222222" /> | ||
</svg> | ||
); | ||
} | ||
|
||
export default DocumentIcon; |
Large diffs are not rendered by default.
Oops, something went wrong.
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,70 @@ | ||
import { Switch } from "antd"; | ||
import Link from "next/link"; | ||
import styled from "styled-components"; | ||
|
||
// components | ||
import ProfileFrameComponent from "@src/components/molecules/ProfileFrame.component"; | ||
import StarIcon from "@src/components/icon/Star.icon"; | ||
import DocumentIcon from "@src/components/icon/Document.icon"; | ||
import { FontSize } from "@src/styles/theme"; | ||
import { StudyState } from "@src/constant/enum.constant"; | ||
|
||
const Container = styled.div` | ||
display: grid; | ||
grid-template-columns: 52px auto 52px 52px; | ||
align-items: center; | ||
gap: 15px; | ||
`; | ||
const InfoWrapper = styled.div` | ||
width: 100%; | ||
`; | ||
|
||
const Nickname = styled.p` | ||
margin-bottom: 5px; | ||
font-size: ${FontSize.Default}; | ||
`; | ||
const RateWrapper = styled.div` | ||
display: flex; | ||
align-items: center; | ||
svg { | ||
margin-right: 5px; | ||
} | ||
span { | ||
font-size: ${FontSize.Small}; | ||
} | ||
`; | ||
const CenterWrapper = styled.div` | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
`; | ||
function ApplierListElementComponent({ userInfo }) { | ||
return ( | ||
<Container> | ||
<ProfileFrameComponent | ||
size="mid-small" | ||
imgSrc={userInfo.profileImg} | ||
allowUpload={false} | ||
/> | ||
<InfoWrapper> | ||
<Nickname>{userInfo.nickname}</Nickname> | ||
<RateWrapper> | ||
<StarIcon /> | ||
<span>{userInfo.rate || "비공개"}</span> | ||
</RateWrapper> | ||
</InfoWrapper> | ||
<CenterWrapper> | ||
<Switch checked={userInfo.state === StudyState.JOINED} /> | ||
</CenterWrapper> | ||
<CenterWrapper> | ||
<Link href={`/study/manage/apply/${userInfo.studyMemberId}`}> | ||
<a> | ||
<DocumentIcon /> | ||
</a> | ||
</Link> | ||
</CenterWrapper> | ||
</Container> | ||
); | ||
} | ||
|
||
export default ApplierListElementComponent; |
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,27 @@ | ||
import EmptyIcon from "@src/components/icon/Empty.icon"; | ||
import styled from "styled-components"; | ||
import { FontSize } from "@src/styles/theme"; | ||
|
||
const EmptyWrapper = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-top: 60px; | ||
svg { | ||
margin-bottom: 20px; | ||
} | ||
p { | ||
font-size: ${FontSize.PrimaryDescription}; | ||
} | ||
`; | ||
|
||
function EmptyComponent({ message }) { | ||
return ( | ||
<EmptyWrapper> | ||
<EmptyIcon /> | ||
<p>{message}</p> | ||
</EmptyWrapper> | ||
); | ||
} | ||
|
||
export default EmptyComponent; |
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
38 changes: 38 additions & 0 deletions
38
src/components/molecules/SearchLikeFilterLinkButton.component.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,38 @@ | ||
import Link from "next/link"; | ||
import { Button } from "@src/components/atoms/Button"; | ||
import theme, { Padding } from "@src/styles/theme"; | ||
import ColoredSearchIcon from "@src/components/icon/ColoredSearch.icon"; | ||
import styled from "styled-components"; | ||
|
||
const SearchContentsWrapper = styled.div` | ||
display: flex; | ||
align-items: center; | ||
padding: 0 ${Padding.pageX}; | ||
svg { | ||
margin-right: 10px; | ||
} | ||
`; | ||
|
||
function SearchLikeFilterLinkButtonComponent({ contents, mb = "0" }) { | ||
return ( | ||
<Link href="/filter"> | ||
<a> | ||
<Button | ||
color={theme.color.gray1} | ||
textAlign="left" | ||
shape="full-rounded" | ||
height="48px" | ||
fontSize="small" | ||
mb={mb} | ||
> | ||
<SearchContentsWrapper> | ||
<ColoredSearchIcon /> | ||
<span>{contents}</span> | ||
</SearchContentsWrapper> | ||
</Button> | ||
</a> | ||
</Link> | ||
); | ||
} | ||
|
||
export default SearchLikeFilterLinkButtonComponent; |
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
Oops, something went wrong.