-
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
[CZ-536] detail qa #111
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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; | ||
}; | ||
} | ||
|
||
const 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} | ||
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: κ³΅ν΅ μ»΄ν¬λνΈμ DivideLineμ΄λΌκ³ μλλ° κ·Έκ±° μ¬μ©μ νλ€κΉμ? 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. νμΈν΄λ³΄λ DivideLineκ³Ό 컬λ¬κ° λ¬λΌμ κ·Έλ₯ μ¬μ©νκΈ°λ νλ€κ³ μ μ¬νμ©μ νλ €λ©΄ |
||
</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; |
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. μ’μ μ견μΈκ±° κ°μμ κ°μ¬ν©λλ€ |
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.
p4: μ¬μνκ±°κΈ΄νλ° μ»¨λ²€μ λλ‘ νμ΄ν ν¨μλμ functionμΌλ‘ μ¬μ©νλ건 μ΄λ¨κΉμ?
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.
μ 컨벀μ μ μ ν΄λ¨μκ΅°μ μμ νκ² μ΄λλ€