Skip to content

Commit 2e098e9

Browse files
committed
feat: 영수증 정보 수정 페이지 틀 제작
1 parent 8568381 commit 2e098e9

File tree

5 files changed

+104
-1
lines changed

5 files changed

+104
-1
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
.ReceiptEdit {
2+
padding-left: 1.25rem;
3+
padding-right: 1.25rem;
4+
padding-bottom: 2.5rem;
5+
height: calc(100vh - 2.75rem);
6+
overflow: hidden;
7+
position: relative;
8+
display: flex;
9+
flex-direction: column;
10+
justify-content: space-between;
11+
background: var(--color-bg-gradient);
12+
13+
&::before {
14+
content: "";
15+
background: url("/src/assets/svg/img-graphic-main.svg") center no-repeat;
16+
background-size: 100% 16.375rem;
17+
filter: blur(4.625rem);
18+
position: absolute;
19+
top: 0;
20+
left: 0;
21+
right: 0;
22+
bottom: 0;
23+
z-index: 0;
24+
}
25+
}
26+
27+
.Top {
28+
z-index: 1;
29+
30+
& > h1 {
31+
margin-top: 2.5rem;
32+
white-space: pre-line;
33+
}
34+
}
35+
36+
.InfoList {
37+
display: flex;
38+
flex-direction: column;
39+
gap: 0.875rem;
40+
margin-top: 1.5rem;
41+
}
42+
43+
.InfoItem {
44+
display: flex;
45+
flex-direction: column;
46+
gap: 0.5rem;
47+
}
48+
49+
.Bottom {
50+
display: flex;
51+
align-items: center;
52+
gap: 0.875rem;
53+
z-index: 1;
54+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
import styles from "@/components/ReceiptEdit/ReceiptEdit.module.scss";
2+
import Button from "@/components/ui/Button/Button";
3+
import Input from "@/components/ui/Input/Input";
4+
import Text from "@/components/ui/Text/Text";
5+
6+
const ReceiptEdit = () => {
7+
const placeName = "청담커피 앤 토스트";
8+
9+
return (
10+
<div className={styles.ReceiptEdit}>
11+
<div className={styles.Top}>
12+
<Text variant="titleM" color="primary" align="center" as="h1">
13+
{`${placeName}에\n다녀오셨네요!`}
14+
</Text>
15+
<div className={styles.InfoList}>
16+
<div className={styles.InfoItem}>
17+
<p>가게명</p>
18+
<Input placeholder="가게 이름" />
19+
</div>
20+
</div>
21+
</div>
22+
23+
<div className={styles.Bottom}>
24+
<Button text="다시 스캔하기" variant="secondary" />
25+
<Button text="정보가 맞아요" />
26+
</div>
27+
</div>
28+
);
29+
};
30+
31+
export default ReceiptEdit;

src/components/ui/Input/Input.module.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
button {
4545
@include bodySm;
46-
color: var(--color-purple);
46+
color: var(--color-primary-purple);
4747
line-height: 1.3125rem;
4848
}
4949
}

src/pages/ReceiptEditPage.tsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Navbar from "@/components/common/Navbar";
2+
import ReceiptEdit from "@/components/ReceiptEdit/ReceiptEdit";
3+
4+
const ReceiptEditPage = () => {
5+
return (
6+
<>
7+
<Navbar />
8+
<ReceiptEdit />
9+
</>
10+
);
11+
};
12+
13+
export default ReceiptEditPage;

src/router/AppRouter.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { RouterProvider, createBrowserRouter } from "react-router-dom";
33
import App from "@/App";
44

55
import HomePage from "@/pages/HomePage";
6+
import ReceiptEditPage from "@/pages/ReceiptEditPage";
67
import RecognitionFailPage from "@/pages/RecognitionFailPage";
78

89
const AppRouter = () => {
@@ -19,6 +20,10 @@ const AppRouter = () => {
1920
path: "/recognition-fail",
2021
element: <RecognitionFailPage />,
2122
},
23+
{
24+
path: "/receipt-edit",
25+
element: <ReceiptEditPage />,
26+
},
2227
],
2328
},
2429
]);

0 commit comments

Comments
 (0)