diff --git a/apps/web/components/detail/Comment.tsx b/apps/web/components/detail/Comment.tsx index 92e5f59d..be1066b5 100644 --- a/apps/web/components/detail/Comment.tsx +++ b/apps/web/components/detail/Comment.tsx @@ -61,8 +61,10 @@ function Comment({ comment, mutateDeleteComment, mutateLike, mutateHate }: Props
{createdDate.slice(0, 10)}
-
❤️ 좋아요 {likeCount}
-
🖤 싫어요 {hateCount}
+ ❤️ 좋아요 {likeCount}{" "} + + 🖤 싫어요 {hateCount}{" "} +
답글쓰기
@@ -76,9 +78,7 @@ function Comment({ comment, mutateDeleteComment, mutateLike, mutateHate }: Props }} /> - {toggleMenu && ( - - )} + {toggleMenu && } {toggleWarningModal && ( )} @@ -162,4 +162,10 @@ const Comma = styled.div` `} `; +const InteractionButton = styled.div` + :active { + transform: scale(1.15); + } +`; + export default Comment; diff --git a/apps/web/components/detail/VoteAnalyzeBar.tsx b/apps/web/components/detail/VoteAnalyzeBar.tsx index 4fe94b76..96671e80 100644 --- a/apps/web/components/detail/VoteAnalyzeBar.tsx +++ b/apps/web/components/detail/VoteAnalyzeBar.tsx @@ -1,6 +1,7 @@ +import Image from "next/image"; +import { DarkAString, DarkBString, LightBString } from "public/icons"; import React from "react"; import styled, { css } from "styled-components"; -import { AorB } from "types/vote"; interface Props { percentageA: number; @@ -22,10 +23,32 @@ function VoteAnalyzeBar({ percentageA, percentageB, totalCountA, totalCountB }: ) : ( + {isSelectedA && ( + A + )} {percentageA}%  
{totalCountA.toLocaleString()}명
+ {!isSelectedA && ( + A + )} {percentageB}%  
{totalCountB.toLocaleString()}명
diff --git a/apps/web/components/detail/VoteContainer.tsx b/apps/web/components/detail/VoteContainer.tsx index cf2bcd9d..f6c43ce6 100644 --- a/apps/web/components/detail/VoteContainer.tsx +++ b/apps/web/components/detail/VoteContainer.tsx @@ -11,6 +11,7 @@ import DetailAB from "./DetailAB"; import FilterBar from "./FilterBar"; import useFilterStatistics from "./hooks/useFilterStatistics"; import VoteAnalyzeBar from "./VoteAnalyzeBar"; +import VoteWriterBox from "./VoteWriterBox"; function VoteContainer({ postId }: { postId: number }) { const [isModifyModal, onToggleModifyModal] = useToggle(false); @@ -57,6 +58,7 @@ function VoteContainer({ postId }: { postId: number }) { return ( <> + + 댓글 프로필 + + + + {userGender} + {userAge} + {userMbti} + + + {nickName} + + + ); +} + +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; diff --git a/apps/web/public/icons/Dark-A.png b/apps/web/public/icons/Dark-A.png new file mode 100644 index 00000000..3ea822ed Binary files /dev/null and b/apps/web/public/icons/Dark-A.png differ diff --git a/apps/web/public/icons/Dark-B.png b/apps/web/public/icons/Dark-B.png new file mode 100644 index 00000000..8f0d028c Binary files /dev/null and b/apps/web/public/icons/Dark-B.png differ diff --git a/apps/web/public/icons/Light-A.png b/apps/web/public/icons/Light-A.png new file mode 100644 index 00000000..8dfce581 Binary files /dev/null and b/apps/web/public/icons/Light-A.png differ diff --git a/apps/web/public/icons/Light-B.png b/apps/web/public/icons/Light-B.png new file mode 100644 index 00000000..7dff061a Binary files /dev/null and b/apps/web/public/icons/Light-B.png differ diff --git a/apps/web/public/icons/index.ts b/apps/web/public/icons/index.ts index f70e2d6d..6ed5131a 100644 --- a/apps/web/public/icons/index.ts +++ b/apps/web/public/icons/index.ts @@ -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";