-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CZ-536] detail qa #111
Merged
Merged
[CZ-536] detail qa #111
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,92 @@ | ||
import Image from "next/image"; | ||
import { PurpleMonster } from "public/images"; | ||
import React from "react"; | ||
import styled, { css } from "styled-components"; | ||
|
||
interface Props { | ||
writer: { | ||
userImage: string | null; | ||
userGender: string; | ||
userAge: number; | ||
userMbti: string; | ||
nickName: null; | ||
}; | ||
} | ||
|
||
function VoteWriterBox({ writer }: Props) { | ||
const { nickName, userAge, userGender, userImage, userMbti } = writer; | ||
return ( | ||
<Container> | ||
<Image | ||
src={userImage || PurpleMonster} | ||
alt="λκΈ νλ‘ν" | ||
style={{ | ||
width: "40px", | ||
height: "40px", | ||
borderRadius: "8px", | ||
}} | ||
/> | ||
<ContentsBox> | ||
<Flex> | ||
<TagBox> | ||
{userGender} | ||
<DivideTag /> {userAge} | ||
<DivideTag /> {userMbti} | ||
</TagBox> | ||
</Flex> | ||
<NickName> {nickName}</NickName> | ||
</ContentsBox> | ||
</Container> | ||
); | ||
} | ||
|
||
const Container = styled.div` | ||
display: flex; | ||
justify-content: flex-start; | ||
gap: 8px; | ||
position: relative; | ||
padding-bottom: 14px; | ||
`; | ||
|
||
const NickName = styled.div` | ||
font-weight: 700; | ||
${({ theme }) => css` | ||
color: ${theme.palette.ink.darker}; | ||
${theme.textStyle.Font_Regular} | ||
`} | ||
`; | ||
|
||
const Flex = styled.div` | ||
display: flex; | ||
align-items: center; | ||
gap: 6px; | ||
`; | ||
|
||
const DivideTag = styled.div` | ||
width: 1px; | ||
height: 8px; | ||
margin: 0 4px; | ||
${({ theme }) => css` | ||
background-color: ${theme.palette.background.selected}; | ||
`} | ||
`; | ||
|
||
const TagBox = styled.div` | ||
display: flex; | ||
align-items: center; | ||
padding: 3px 4px; | ||
width: auto; | ||
${({ theme }) => css` | ||
background-color: ${theme.palette.background.soft}; | ||
color: ${theme.palette.ink.base}; | ||
${theme.textStyle.Font_Minimum} | ||
`} | ||
`; | ||
|
||
const ContentsBox = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
flex: 1 1 auto; | ||
`; | ||
|
||
export default VoteWriterBox; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -21,3 +21,7 @@ export { default as AlertIcon } from "./AlertIcon.png"; | |
export { default as MoreIcon } from "./MoreIcon.png"; | ||
export { default as MyPageIcon } from "./MyPageIcon.png"; | ||
export { default as Back } from "./Back.png"; | ||
export { default as LightAString } from "./Light-A.png"; | ||
export { default as DarkAString } from "./Dark-A.png"; | ||
export { default as LightBString } from "./Light-B.png"; | ||
export { default as DarkBString } from "./Dark-B.png"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. p5: svgλ‘ λ£λκ² μ’μμ κ² κ°λ€λ μκ°μ΄ λλ€μ! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. μ’μ μ견μΈκ±° κ°μμ κ°μ¬ν©λλ€ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
p5: κ³΅ν΅ μ»΄ν¬λνΈμ DivideLineμ΄λΌκ³ μλλ° κ·Έκ±° μ¬μ©μ νλ€κΉμ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
νμΈν΄λ³΄λ DivideLineκ³Ό 컬λ¬κ° λ¬λΌμ κ·Έλ₯ μ¬μ©νκΈ°λ νλ€κ³ μ μ¬νμ©μ νλ €λ©΄
DivideLineμμ 컬λ¬λ₯Ό λ³κ²½ν μ μλλ‘ μμ νλ λ°©λ²λ°μλ μμκ±° κ°μμ
κ·Έλ°λ° 리λ΄μΌ μ§μ μμ κ³ λ €νλ©΄ κ³Όν¬μκ° μλκΉ νλ μκ°μ΄ λ€κΈ΄ν©λλ€