Skip to content

Commit 4f1ed77

Browse files
committed
fix: fix all..
1 parent c398fa0 commit 4f1ed77

File tree

6 files changed

+26
-9
lines changed

6 files changed

+26
-9
lines changed

src/components/price/PriceItem.jsx

+2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ const Container = styled.div`
1616
`;
1717

1818
const TextContainer = styled.div`
19+
width: 350px;
1920
display: flex;
2021
text-align: center;
22+
align-items: center;
2123
gap: 70px;
2224
`;
2325

src/components/shopping/ShoppingBudget.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ function ShoppingBudget(props) {
108108

109109
try {
110110
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",
112112
{
113113
method: "POST",
114114
headers: {

src/pages/LandingPage.jsx

+17-2
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,24 @@ import { useNavigate } from "react-router-dom";
66
import { useUser } from "../api/UserContext";
77
import { useState, useEffect } from "react";
88
import CurrentPriceItem from "../components/price/CurrentPriceItem";
9+
import ShoppingBudget from "../components/shopping/ShoppingBudget";
10+
import ShoppingList from "../components/shopping/ShoppingList";
911

1012
const Container = styled.div`
1113
width: calc(100%);
1214
display: flex;
1315
flex-direction: column;
1416
`;
1517

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+
1627
const TextContainer = styled.div`
1728
display: flex;
1829
height: 663px;
@@ -68,7 +79,7 @@ const UserContainer = styled.div`
6879
flex-direction: row;
6980
justify-content: space-between;
7081
padding-right: 95px;
71-
padding-top: 20px;
82+
padding-top: 40px;
7283
`;
7384

7485
const TrendContainer = styled.div`
@@ -149,7 +160,7 @@ function LandingPage() {
149160
{user ? (
150161
<>
151162
<TextContainer className="main">
152-
<SubTitleText>`${user.name}`님 안녕하세요</SubTitleText>
163+
<SubTitleText>{`${user.name}님 안녕하세요`}</SubTitleText>
153164
<TitleText>우리 가족 생활비를 위한 물가 관리</TitleText>
154165
<SubText>{subtext}</SubText>
155166
</TextContainer>
@@ -187,6 +198,10 @@ function LandingPage() {
187198
장바구니 상품을 관리해보세요!
188199
</SubTitleText>
189200
</TextContainer>
201+
<ShoppingBudget />
202+
<Wrapper>
203+
<ShoppingList />
204+
</Wrapper>
190205
<Button
191206
title="장바구니 수정하기"
192207
className="yellow"

src/pages/price/PriceCategorySearchPage.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const PriceWrapper = styled.div`
1919
flex-direction: column;
2020
justify-content: center;
2121
align-items: center;
22-
padding-top: 80px;
23-
gap: 15px;
22+
padding-top: 60px;
23+
gap: 20px;
2424
`;
2525

2626
const Wrapper = styled.div`

src/pages/price/PriceMainPage.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const PriceWrapper = styled.div`
2020
flex-direction: column;
2121
justify-content: center;
2222
align-items: center;
23-
padding-top: 80px;
24-
gap: 15px;
23+
padding-top: 60px;
24+
gap: 20px;
2525
`;
2626

2727
const Wrapper = styled.div`

src/pages/price/PriceNameSearchPage.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ const PriceWrapper = styled.div`
1818
flex-direction: column;
1919
justify-content: center;
2020
align-items: center;
21-
padding-top: 80px;
22-
gap: 15px;
21+
padding-top: 60px;
22+
gap: 20px;
2323
`;
2424

2525
const Wrapper = styled.div`

0 commit comments

Comments
 (0)