Skip to content

Commit 12723ce

Browse files
committed
refactor: navbar 제거, 일부 여백 스타일 수정
1 parent 4b6456b commit 12723ce

File tree

6 files changed

+35
-32
lines changed

6 files changed

+35
-32
lines changed

src/components/ReviewResult/ReviewResult.module.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.ReviewResult {
2-
padding: 1.25rem;
3-
padding-bottom: 2.5rem;
4-
height: calc(100vh - 2.75rem);
2+
padding: 3.75rem 1.25rem 2.5rem;
3+
height: 100vh;
54
overflow: hidden;
65
position: relative;
76
display: flex;

src/components/SelectStyle/SelectStyle.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ interface StyleProps {
2020
}
2121

2222
const IMG_STYLE_DATA = [
23-
{ name: "친절한 미식가", image: "/assets/img/img-style-friendly.png" },
24-
{ name: "믿음직한 미식가", image: "/assets/img/img-style-trust.png" },
25-
{ name: "귀여운 미식가", image: "/assets/img/img-style-cute.png" },
23+
{ name: "친근한 말투", image: "/assets/img/img-style-friendly.png" },
24+
{ name: "믿음직한 말투", image: "/assets/img/img-style-trust.png" },
25+
{ name: "유쾌한 말투", image: "/assets/img/img-style-cute.png" },
2626
];
2727

2828
const STYLE_NAME_MAPPING: { [key: string]: string } = {
29-
"친절한 미식가": "FRIENDLY",
30-
"귀여운 미식가": "CUTE",
31-
"믿음직한 미식가": "PROFESSIONAL",
29+
"친근한 말투": "FRIENDLY",
30+
"유쾌한 말투": "CUTE",
31+
"믿음직한 말투": "PROFESSIONAL",
3232
};
3333

3434
const SelectStyle = () => {
@@ -72,7 +72,7 @@ const SelectStyle = () => {
7272
return (
7373
<div className={styles.SelectStyle}>
7474
<div className={styles.Title}>
75-
<Text variant="titleM" color="primary" align="center" as="h1">
75+
<Text variant="titleM" color="purpleGradient" align="center" as="h1">
7676
어떤 말투로 작성할까요?
7777
</Text>
7878
<Text variant="bodyLg" color="secondary" align="center" as="h2">

src/components/ui/Text/Text.module.scss

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,17 @@
44
line-height: 1.5;
55

66
@each $color-name
7-
in ("white", "black", "primary", "secondary", "tertiary", "quarternary", "gradient", "error")
7+
in (
8+
"white",
9+
"black",
10+
"primary",
11+
"secondary",
12+
"tertiary",
13+
"quarternary",
14+
"gradient",
15+
"error",
16+
"purpleGradient"
17+
)
818
{
919
@if $color-name == "gradient" {
1020
&.color-#{$color-name} {
@@ -13,6 +23,13 @@
1323
background-clip: text;
1424
-webkit-text-fill-color: transparent;
1525
}
26+
} @else if $color-name == "purpleGradient" {
27+
&.color-#{$color-name} {
28+
background: var(--color-text-purpleGradient);
29+
-webkit-background-clip: text;
30+
background-clip: text;
31+
-webkit-text-fill-color: transparent;
32+
}
1633
} @else {
1734
&.color-#{$color-name} {
1835
color: var(--color-text-#{$color-name});

src/components/ui/Text/Text.types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ type TextColor =
2020
| "tertiary"
2121
| "quarternary"
2222
| "gradient"
23-
| "error";
23+
| "error"
24+
| "purpleGradient";
2425

2526
export interface TextProps extends React.HTMLAttributes<HTMLSpanElement> {
2627
as?: React.ElementType;

src/pages/ReviewResultPage.tsx

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
import { useEffect, useState } from "react";
22

3-
import Navbar from "@/components/common/Navbar/Navbar";
43
import CreateReviewLoading from "@/components/CreateReviewLoading/CreateReviewLoading";
54
import ReviewResult from "@/components/ReviewResult/ReviewResult";
6-
import Icon from "@/components/ui/Icon/Icon";
7-
8-
import { useRoute } from "@/hooks/common/useRoute";
95

106
// 로딩 코드 api 연결 후 삭제
117
export default function ReviewResultPage() {
12-
const { navigateToBack } = useRoute();
13-
148
const [isLoading, setIsLoading] = useState(true);
159

1610
useEffect(() => {
@@ -25,18 +19,5 @@ export default function ReviewResultPage() {
2519
return <CreateReviewLoading />;
2620
}
2721

28-
return (
29-
<>
30-
{!isLoading && (
31-
<>
32-
<Navbar>
33-
<Navbar.LeftButton onClick={navigateToBack}>
34-
<Icon name="leftArrow" />
35-
</Navbar.LeftButton>
36-
</Navbar>
37-
<ReviewResult />
38-
</>
39-
)}
40-
</>
41-
);
22+
return <>{!isLoading && <ReviewResult />}</>;
4223
}

src/styles/_variables.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
var(--color-primary-purple)
2525
);
2626
--color-text-error: #d45085;
27+
--color-text-purpleGradient: linear-gradient(
28+
90deg,
29+
var(--color-primary-purple),
30+
var(--color-gray600)
31+
);
2732

2833
--color-white: #ffffff;
2934
--color-black: #000000;

0 commit comments

Comments
 (0)