File tree Expand file tree Collapse file tree 4 files changed +113
-0
lines changed
Expand file tree Collapse file tree 4 files changed +113
-0
lines changed Original file line number Diff line number Diff line change 1+ .SelectTag {
2+ padding-left : 1.25rem ;
3+ padding-right : 1.25rem ;
4+ padding-bottom : 2.5rem ;
5+ height : calc (100vh - 2.75rem );
6+ display : flex ;
7+ flex-direction : column ;
8+ justify-content : space-between ;
9+ background : var (--color-bg-gradient );
10+
11+ & ::before {
12+ content : " " ;
13+ background : url (" /src/assets/svg/img-graphic-main.svg" ) center no-repeat ;
14+ background-size : 100% 16.375rem ;
15+ filter : blur (4.625rem );
16+ position : absolute ;
17+ top : 0 ;
18+ left : 0 ;
19+ right : 0 ;
20+ bottom : 0 ;
21+ z-index : 0 ;
22+ }
23+ }
24+
25+ .Top {
26+ z-index : 1 ;
27+
28+ .Title {
29+ margin-top : 2.5rem ;
30+ display : flex ;
31+ align-items : center ;
32+ gap : 0.625rem ;
33+ }
34+
35+ .TagList {
36+ display : flex ;
37+ flex-wrap : wrap ;
38+ gap : 0.625rem ;
39+ margin-top : 2.5rem ;
40+ }
41+ }
42+
43+ .Bottom {
44+ display : flex ;
45+ align-items : center ;
46+ gap : 0.875rem ;
47+ z-index : 1 ;
48+ }
Original file line number Diff line number Diff line change 1+ import styles from "@/components/SelectTag/SelectTag.module.scss" ;
2+ import Button from "@/components/ui/Button/Button" ;
3+ import Tag from "@/components/ui/Tag/Tag" ;
4+ import Text from "@/components/ui/Text/Text" ;
5+
6+ const TAG_LIST = [
7+ "음식이 맛있어요" ,
8+ "양이 많아요" ,
9+ "가성비가 좋아요" ,
10+ "메뉴 구성이 알차요" ,
11+ "매장이 넓어요" ,
12+ "단체모임 하기 좋아요" ,
13+ "뷰가 좋아요" ,
14+ "아늑해요" ,
15+ "분위기가 좋아요" ,
16+ "친절해요" ,
17+ "매장이 청결해요" ,
18+ ] ;
19+
20+ const SelectTag = ( ) => {
21+ return (
22+ < div className = { styles . SelectTag } >
23+ < div className = { styles . Top } >
24+ < div className = { styles . Title } >
25+ < Text variant = "titleM" color = "primary" >
26+ 어떠셨나요?
27+ </ Text >
28+ < Text variant = "bodySm" color = "tertiary" >
29+ 복수 가능
30+ </ Text >
31+ </ div >
32+ < div className = { styles . TagList } >
33+ { TAG_LIST . map ( ( tag ) => (
34+ < Tag text = { tag } key = { tag } />
35+ ) ) }
36+ < Tag variant = "add" />
37+ </ div >
38+ </ div >
39+
40+ < div className = { styles . Bottom } >
41+ < Button text = "다음" />
42+ </ div >
43+ </ div >
44+ ) ;
45+ } ;
46+
47+ export default SelectTag ;
Original file line number Diff line number Diff line change 1+ import Navbar from "@/components/common/Navbar" ;
2+ import SelectTag from "@/components/SelectTag/SelectTag" ;
3+
4+ const SelectTagPage = ( ) => {
5+ return (
6+ < >
7+ < Navbar />
8+ < SelectTag />
9+ </ >
10+ ) ;
11+ } ;
12+
13+ export default SelectTagPage ;
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import App from "@/App";
55import HomePage from "@/pages/HomePage" ;
66import ReceiptEditPage from "@/pages/ReceiptEditPage" ;
77import RecognitionFailPage from "@/pages/RecognitionFailPage" ;
8+ import SelectTagPage from "@/pages/SelectTagPage" ;
89
910const AppRouter = ( ) => {
1011 const router = createBrowserRouter ( [
@@ -24,6 +25,10 @@ const AppRouter = () => {
2425 path : "/receipt-edit" ,
2526 element : < ReceiptEditPage /> ,
2627 } ,
28+ {
29+ path : "/select-tag" ,
30+ element : < SelectTagPage /> ,
31+ } ,
2732 ] ,
2833 } ,
2934 ] ) ;
You can’t perform that action at this time.
0 commit comments