File tree 6 files changed +26
-9
lines changed
6 files changed +26
-9
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ const Container = styled.div`
16
16
` ;
17
17
18
18
const TextContainer = styled . div `
19
+ width: 350px;
19
20
display: flex;
20
21
text-align: center;
22
+ align-items: center;
21
23
gap: 70px;
22
24
` ;
23
25
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ function ShoppingBudget(props) {
108
108
109
109
try {
110
110
const response = await fetch (
111
- "https://rw2644hx4c.execute-api.us-east-1.amazonaws.com/api/shopping/ budgets" ,
111
+ "https://rw2644hx4c.execute-api.us-east-1.amazonaws.com/api/budgets" ,
112
112
{
113
113
method : "POST" ,
114
114
headers : {
Original file line number Diff line number Diff line change @@ -6,13 +6,24 @@ import { useNavigate } from "react-router-dom";
6
6
import { useUser } from "../api/UserContext" ;
7
7
import { useState , useEffect } from "react" ;
8
8
import CurrentPriceItem from "../components/price/CurrentPriceItem" ;
9
+ import ShoppingBudget from "../components/shopping/ShoppingBudget" ;
10
+ import ShoppingList from "../components/shopping/ShoppingList" ;
9
11
10
12
const Container = styled . div `
11
13
width: calc(100%);
12
14
display: flex;
13
15
flex-direction: column;
14
16
` ;
15
17
18
+ const Wrapper = styled . div `
19
+ display: flex;
20
+ flex-direction: row;
21
+ justify-content: center;
22
+ align-items: center;
23
+ text-align: center;
24
+ padding-top: 50px;
25
+ ` ;
26
+
16
27
const TextContainer = styled . div `
17
28
display: flex;
18
29
height: 663px;
@@ -68,7 +79,7 @@ const UserContainer = styled.div`
68
79
flex-direction: row;
69
80
justify-content: space-between;
70
81
padding-right: 95px;
71
- padding-top: 20px ;
82
+ padding-top: 40px ;
72
83
` ;
73
84
74
85
const TrendContainer = styled . div `
@@ -149,7 +160,7 @@ function LandingPage() {
149
160
{ user ? (
150
161
< >
151
162
< TextContainer className = "main" >
152
- < SubTitleText > `${ user . name } ` 님 안녕하세요</ SubTitleText >
163
+ < SubTitleText > { `${ user . name } 님 안녕하세요` } </ SubTitleText >
153
164
< TitleText > 우리 가족 생활비를 위한 물가 관리</ TitleText >
154
165
< SubText > { subtext } </ SubText >
155
166
</ TextContainer >
@@ -187,6 +198,10 @@ function LandingPage() {
187
198
장바구니 상품을 관리해보세요!
188
199
</ SubTitleText >
189
200
</ TextContainer >
201
+ < ShoppingBudget />
202
+ < Wrapper >
203
+ < ShoppingList />
204
+ </ Wrapper >
190
205
< Button
191
206
title = "장바구니 수정하기"
192
207
className = "yellow"
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ const PriceWrapper = styled.div`
19
19
flex-direction: column;
20
20
justify-content: center;
21
21
align-items: center;
22
- padding-top: 80px ;
23
- gap: 15px ;
22
+ padding-top: 60px ;
23
+ gap: 20px ;
24
24
` ;
25
25
26
26
const Wrapper = styled . div `
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ const PriceWrapper = styled.div`
20
20
flex-direction: column;
21
21
justify-content: center;
22
22
align-items: center;
23
- padding-top: 80px ;
24
- gap: 15px ;
23
+ padding-top: 60px ;
24
+ gap: 20px ;
25
25
` ;
26
26
27
27
const Wrapper = styled . div `
Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ const PriceWrapper = styled.div`
18
18
flex-direction: column;
19
19
justify-content: center;
20
20
align-items: center;
21
- padding-top: 80px ;
22
- gap: 15px ;
21
+ padding-top: 60px ;
22
+ gap: 20px ;
23
23
` ;
24
24
25
25
const Wrapper = styled . div `
You can’t perform that action at this time.
0 commit comments