Skip to content

Commit

Permalink
Style: 감정 분석 UI 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
s0zzang committed Nov 21, 2024
1 parent 1127c81 commit 15ccb54
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/pages/emotion/result/EmotionGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ const EmotionGraph: React.FC = () => {
const analysisResult = useAnalysisStore((state) => state.analysis);

const data: EmotionData[] = [
{ value: analysisResult.emotions.anger, name: '분노', color: `${variables.colors.primary}` },
{ value: analysisResult.emotions.disgust, name: '혐오', color: `${variables.colors.primaryLight}` },
{ value: analysisResult.emotions.fear, name: '공포', color: `${variables.colors.primarySoft}` },
{ value: analysisResult.emotions.anger, name: '분노', color: `#FFD4CB` },
{ value: analysisResult.emotions.disgust, name: '혐오', color: `#E6E6E6` },
{ value: analysisResult.emotions.fear, name: '공포', color: `#FEE9CA` },
{ value: analysisResult.emotions.joy, name: '기쁨', color: `${variables.colors.primaryStrong}` },
{ value: analysisResult.emotions.sadness, name: '슬픔', color: `${variables.colors.secondary}` },
{ value: analysisResult.emotions.sadness, name: '슬픔', color: `#E2F2FF` },
{ value: analysisResult.emotions.surprise, name: '놀람', color: `${variables.colors.secondarySoft}` },
];

Expand All @@ -32,7 +32,7 @@ const EmotionGraph: React.FC = () => {
icon: 'circle',
itemWidth: 20,
itemHeight: 20,
padding: [40, 40, 0, 0],
padding: [40, 35, 0, 0],
},
series: [
{
Expand Down
4 changes: 2 additions & 2 deletions src/pages/emotion/result/EmotionResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ export const ResultTitleBox = styled.div`

export const ResultTextBox = styled.div`
align-items: center;
margin-bottom: 3rem;
margin-top: 10rem;
margin-bottom: 2rem;
margin-top: 3rem;
& > h2 {
font-size: ${variables.size.large};
Expand Down
4 changes: 2 additions & 2 deletions src/pages/emotion/result/EmotionStress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const StressText = styled.div`
font-size: 1.5rem;
font-weight: 500;
color: ${variables.colors.gray100};
margin: 4em 0 6rem 0;
margin: -2rem 0 3rem;
}
`;

Expand Down Expand Up @@ -108,7 +108,7 @@ const EmotionStress = () => {
return (
<StressText>
<div className="stress-box">
<ECharts option={options} opts={{ width: 'auto', height: 'auto' }} />
<ECharts option={options} opts={{ width: 170, height: 170 }} />
</div>
<p className="stress-sub-text">현재 예상 점수</p>
</StressText>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/emotion/result/EmotionStressBefore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const EmotionStressBefore = ({
return (
<StressText className="xxx">
<div className="stress-box">
<ECharts option={options} opts={{ width: 'auto', height: 'auto' }} />
<ECharts option={options} opts={{ width: 170, height: 170 }} />
</div>
<p className="stress-sub-text">{text}</p>
</StressText>
Expand All @@ -106,7 +106,7 @@ export const StressText = styled.div`
font-size: 1.5rem;
font-weight: 500;
color: ${variables.colors.gray100};
margin: 4em 0 6rem 0;
margin: -2rem 0 3rem;
}
`;

Expand Down

0 comments on commit 15ccb54

Please sign in to comment.