Skip to content

Commit

Permalink
push
Browse files Browse the repository at this point in the history
  • Loading branch information
BuyankhuuTsCAl committed Apr 21, 2024
1 parent 421406a commit a7fe762
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 16 deletions.
3 changes: 3 additions & 0 deletions src/app/favorites/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ export const BackDiv = styled.button`
export const OutterBox = styled.div`
width: 800px;
height: 100%;
margin-top: 50px;
margin-bottom: 50px;
`;

export const Backtext = styled.p`
Expand Down
4 changes: 3 additions & 1 deletion src/app/orderHistory/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ function OrderHistory() {
<NavBarMovedUP />
<OutterBox>
<BackButton destination="./profileScreen" />
<Heading1>Order History</Heading1>
<div style={{ marginTop: '40px', marginBottom: '20px' }}>
<Heading1>Order History</Heading1>
</div>
<OrderHistoryContainer>
{orderIds.length > 0 ? (
orderIds.map((orderId: number) => (
Expand Down
17 changes: 11 additions & 6 deletions src/app/orderHistory/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import styled from 'styled-components';
import NavBar from '../../components/NavBarFolder/NavBar';

import Footer from '../../components/FooterFolder/Footer';
import COLORS from '@/styles/colors';

export const FooterMoved = styled(Footer)`
left: 0;
Expand All @@ -13,22 +14,22 @@ export const NavBarMovedUP = styled(NavBar)`
`;

export const OutterBox = styled.div`
width: 900px;
margin: 0 auto; // This will center the OutterBox
width: 800px;
margin-top: 40px;
margin-bottom: 70px;
`;

export const OrderHistoryContainer = styled.div`
display: flex;
flex-direction: column;
align-items: center;
border-radius: 10px;
background: var(--White, #fff);
background: ${COLORS.white};
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.2);
width: 800px; // Width of the outer box
height: 700px;
overflow: scroll;
height: auto;
margin-top: 10px;
padding: 0; // Ensure there's no padding pushing the internal boxes inward
padding-top: 40px;
`;

export const OrderHistoryBox = styled.div`
Expand All @@ -46,4 +47,8 @@ export const OrderHistoryBox = styled.div`
export const Fullscreen = styled.div`
width: 100%;
height: 100%;
display: flex;
align-items: center;
flex-direction: column;
background-color: ${COLORS.offWhite};
`;
5 changes: 3 additions & 2 deletions src/app/profileScreen/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const LogOutButton = styled.button`
border: transparent;
border-radius: 5px;
width: 405px;
height: 70px;
height: 50px;
`;
/* transform: translateY(200px); */

Expand Down Expand Up @@ -112,7 +112,8 @@ export const HeartIcon = styled(Heart)`
`;

export const BackButtonDiv = styled.div`
margin-bottom: 40px;
margin-bottom: 30px;
margin-top: 50px;
`;

export const HeaderDiv = styled.div`
Expand Down
4 changes: 2 additions & 2 deletions src/components/BackButton/BackButton.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Body1 } from '@/styles/fonts';
import { Body1Bold } from '@/styles/fonts';
import { BackLink, ArrowLeftIcon } from './styles';

export default function BackButton(props: { destination: string }) {
const { destination } = props;
return (
<BackLink href={destination}>
<ArrowLeftIcon />
<Body1>Back</Body1>
<Body1Bold>Back</Body1Bold>
</BackLink>
);
}
6 changes: 3 additions & 3 deletions src/components/BackButton/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ export const BackLink = styled(Link)`
justify-content: space-between;
color: ${COLORS.black};
width: 75px;
gap: 5px;
&:hover {
text-decoration: underline;
}
`;

export const ArrowLeftIcon = styled(ArrowLeft)`
width: 24px;
height: 24px;
width: 20px;
height: 20px;
`;
4 changes: 2 additions & 2 deletions src/components/OrderHistory/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,8 @@ export const GalleryImage = styled.img`

export const RowDiv = styled.div`
width: 700px;
height: 400px;
margin-bottom: 50px;
height: 300px;
margin-bottom: 20px;
`;

export const OrderStatusDiv = styled.div`
Expand Down

0 comments on commit a7fe762

Please sign in to comment.