Skip to content

Commit

Permalink
after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlotteLaw committed Apr 21, 2024
2 parents 257f004 + b287da7 commit d3e08ac
Show file tree
Hide file tree
Showing 7 changed files with 56 additions and 26 deletions.
4 changes: 2 additions & 2 deletions src/app/orderConfirmationPickUp/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
Body2Light,
} from '@/styles/fonts';
import { useSearchParams } from 'next/navigation';
import { fetchCartItemsWithQuantity,fetchCartItemsWithQuantityByID } from '../../api/supabase/queries/cart_queries';

import BackButton from '../../components/BackButton/BackButton';

Expand Down Expand Up @@ -47,7 +46,8 @@ import {
} from './styles';

import { Product, User, Pickup } from '../../schema/schema';

import { fetchCartItemsWithQuantityByID } from '../../api/supabase/queries/cart_queries';

export default function OrderConfirmationPickUp() {
const [Cart, setCart] = useState<Product[]>([]);
const [user, setUser] = useState<User>();
Expand Down
44 changes: 20 additions & 24 deletions src/app/orderConfirmationPickUp/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ export const OutterFavoriteDiv = styled.div`
border-radius: 10px;
background: var(--White, #fff);
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.2);
<<<<<<< HEAD
=======
width: 700px;
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
max-height: 100%;
max-width: 750px;
margin-top: 20px;
Expand All @@ -39,23 +43,6 @@ export const ScrollDiv = styled.div`
max-width: 100%;
`;

export const ImageDiv = styled.div`
box-shadow: 1px 1px 4px 1px rgba(0, 0, 0, 0.08);
width: 150px;
height: 150px;
margin-left: 30px;
display: flex;
justify-content: center;
align-items: center;
`;

export const Wrapper = styled.div`
padding: 15px;
display: flex;
justify-content: center;
align-items: center;
`;

export const BackDiv = styled.button`
display: flex;
flex-direction: row;
Expand Down Expand Up @@ -112,18 +99,19 @@ export const Label = styled.p`
margin-top: 20px;
`;

export const LabelBox1 = styled.div`
width: 250px;
height: 100%;
padding: 20px;

export const ImageDiv = styled.p`
width: 150px;
height: 150px;
align-items: center;
justify-content: center;
display: flex;
`;

export const LabelBox = styled.div`
width: 150px;
height: 100%;
padding: 20px;
gap: 50px;
margin-right: 30px;
`;

export const HeaderText = styled.h3`
Expand Down Expand Up @@ -270,8 +258,12 @@ export const BottomColumnDiv = styled.div`
align-items: space-evenly;
justify-content: space-around;
width: 100%;
<<<<<<< HEAD
margin-left: 20px;
margin-right: 20px;
=======
margin-left: 10px;
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
margin-bottom: 30px;
gap: 10px;
`;
Expand Down Expand Up @@ -314,7 +306,11 @@ export const ShippingDetailsDiv = styled.div`
padding: 36px 34px;
gap: 33px;
max-height: 100%;
<<<<<<< HEAD
margin-top: 75px;
=======
margin-top: 93px;
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
margin-bottom: 30px;
margin-right: 40px;
`;
Expand Down
5 changes: 5 additions & 0 deletions src/app/orderHistory/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function OrderHistory() {
<OutterBox>
<BackButtonDiv>
<BackButton destination="./profileScreen" />
<<<<<<< HEAD
<<<<<<< HEAD
<div style={{ marginTop: '40px', marginBottom: '20px' }}>
<Heading1>Order History</Heading1>
Expand All @@ -40,6 +41,10 @@ function OrderHistory() {
</BackButtonDiv>
<Heading2>Order History</Heading2>
>>>>>>> b287da7 (temp)
=======
</BackButtonDiv>
<Heading2>Order History</Heading2>
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
<OrderHistoryContainer>
{orderIds.length > 0 ? (
orderIds.map((orderId: number) => (
Expand Down
9 changes: 9 additions & 0 deletions src/app/profileScreen/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,22 @@ export const LogOutButton = styled.button`
font-weight: 600;
line-height: normal;
border: transparent;
<<<<<<< HEAD
<<<<<<< HEAD
border-radius: 5px;
width: 405px;
height: 50px;
=======
=======
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
border-radius: 10px;
width: 500px;
height: 55px;
margin-top: 40px;
<<<<<<< HEAD
>>>>>>> b287da7 (temp)
=======
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
`;
/* transform: translateY(200px); */

Expand Down Expand Up @@ -136,10 +142,13 @@ export const HeartIcon = styled(Heart)`
`;

export const BackButtonDiv = styled.div`
<<<<<<< HEAD
<<<<<<< HEAD
margin-bottom: 30px;
margin-top: 50px;
=======
=======
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
margin-top: 50px;
margin-bottom: 40px;
>>>>>>> b287da7 (temp)
Expand Down
8 changes: 8 additions & 0 deletions src/components/BackButton/BackButton.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
<<<<<<< HEAD
<<<<<<< HEAD
import { Body1Bold } from '@/styles/fonts';
=======
import { Body1, Body2Bold } from '@/styles/fonts';
>>>>>>> b287da7 (temp)
=======
import { Body1, Body2Bold } from '@/styles/fonts';
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
import { BackLink, ArrowLeftIcon } from './styles';

export default function BackButton(props: { destination: string }) {
const { destination } = props;
return (
<BackLink href={destination}>
<ArrowLeftIcon />
<<<<<<< HEAD
<<<<<<< HEAD
<Body1Bold>Back</Body1Bold>
=======
<Body2Bold>Back</Body2Bold>
>>>>>>> b287da7 (temp)
=======
<Body2Bold>Back</Body2Bold>
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
</BackLink>
);
}
9 changes: 9 additions & 0 deletions src/components/BackButton/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,32 @@ export const BackLink = styled(Link)`
align-items: center;
justify-content: space-between;
color: ${COLORS.black};
<<<<<<< HEAD
<<<<<<< HEAD
width: 75px;
=======
width: 60px;
>>>>>>> b287da7 (temp)
=======
width: 60px;
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
&:hover {
text-decoration: underline;
}
`;

export const ArrowLeftIcon = styled(ArrowLeft)`
<<<<<<< HEAD
<<<<<<< HEAD
width: 20px;
height: 20px;
=======
width: 18px;
height: 18px;
>>>>>>> b287da7 (temp)
=======
width: 18px;
height: 18px;
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
`;
3 changes: 3 additions & 0 deletions src/components/OrderHistory/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@ export const RowDiv = styled.div`
height: 400px;
margin-bottom: 20px;
margin-top: 20px;
<<<<<<< HEAD
>>>>>>> b287da7 (temp)
=======
>>>>>>> b287da70273f0befb5c5c6b437883b203f43b605
`;

export const OrderStatusDiv = styled.div`
Expand Down

0 comments on commit d3e08ac

Please sign in to comment.