Skip to content

Commit

Permalink
feat: 영수증 정보 수정 페이지 틀 제작
Browse files Browse the repository at this point in the history
  • Loading branch information
sikkzz committed Jan 31, 2025
1 parent 4429eb6 commit fc9e2c6
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 1 deletion.
54 changes: 54 additions & 0 deletions src/components/ReceiptEdit/ReceiptEdit.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
.ReceiptEdit {
padding-left: 1.25rem;
padding-right: 1.25rem;
padding-bottom: 2.5rem;
height: calc(100vh - 2.75rem);
overflow: hidden;
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
background: var(--color-bg-gradient);

&::before {
content: "";
background: url("/src/assets/svg/img-graphic-main.svg") center no-repeat;
background-size: 100% 16.375rem;
filter: blur(4.625rem);
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 0;
}
}

.Top {
z-index: 1;

& > h1 {
margin-top: 2.5rem;
white-space: pre-line;
}
}

.InfoList {
display: flex;
flex-direction: column;
gap: 0.875rem;
margin-top: 1.5rem;
}

.InfoItem {
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.Bottom {
display: flex;
align-items: center;
gap: 0.875rem;
z-index: 1;
}
31 changes: 31 additions & 0 deletions src/components/ReceiptEdit/ReceiptEdit.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import styles from "@/components/ReceiptEdit/ReceiptEdit.module.scss";
import Button from "@/components/ui/Button/Button";
import Input from "@/components/ui/Input/Input";
import Text from "@/components/ui/Text/Text";

const ReceiptEdit = () => {
const placeName = "청담커피 앤 토스트";

return (
<div className={styles.ReceiptEdit}>
<div className={styles.Top}>
<Text variant="titleM" color="primary" align="center" as="h1">
{`${placeName}에\n다녀오셨네요!`}
</Text>
<div className={styles.InfoList}>
<div className={styles.InfoItem}>
<p>가게명</p>
<Input placeholder="가게 이름" />
</div>
</div>
</div>

<div className={styles.Bottom}>
<Button text="다시 스캔하기" variant="secondary" />
<Button text="정보가 맞아요" />
</div>
</div>
);
};

export default ReceiptEdit;
2 changes: 1 addition & 1 deletion src/components/ui/Input/Input.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

button {
@include bodySm;
color: var(--color-purple);
color: var(--color-primary-purple);
line-height: 1.3125rem;
}
}
Expand Down
13 changes: 13 additions & 0 deletions src/pages/ReceiptEditPage.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Navbar from "@/components/common/Navbar";
import ReceiptEdit from "@/components/ReceiptEdit/ReceiptEdit";

const ReceiptEditPage = () => {
return (
<>
<Navbar />
<ReceiptEdit />
</>
);
};

export default ReceiptEditPage;
5 changes: 5 additions & 0 deletions src/router/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { RouterProvider, createBrowserRouter } from "react-router-dom";
import App from "@/App";

import HomePage from "@/pages/HomePage";
import ReceiptEditPage from "@/pages/ReceiptEditPage";
import RecognitionFailPage from "@/pages/RecognitionFailPage";

const AppRouter = () => {
Expand All @@ -19,6 +20,10 @@ const AppRouter = () => {
path: "/recognition-fail",
element: <RecognitionFailPage />,
},
{
path: "/receipt-edit",
element: <ReceiptEditPage />,
},
],
},
]);
Expand Down

0 comments on commit fc9e2c6

Please sign in to comment.