Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjcai committed Apr 19, 2024
1 parent 5c3ec58 commit c014eba
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 23 deletions.
18 changes: 16 additions & 2 deletions src/app/delivery/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import {
InformationText,
BackButtonDiv,
OutterDiv,
InformationField, Label, Input
} from './styles';

export default function App() {
Expand All @@ -58,6 +59,8 @@ export default function App() {
fetchProducts();
}, []);



return (
<main>
<NavBar />
Expand All @@ -66,7 +69,18 @@ export default function App() {
<BackButton destination="/storefront" />
</BackButtonDiv>
<DeliveryContainer>
<InformationContainer>

<InformationContainer>
<Label>Name</Label>
<Input/>{`${Profile?.first_name} ${Profile?.last_name}`}<Input/>
<Label>Address</Label>
<Input/>{UserAddress?.street}, {UserAddress?.city}, {UserAddress?.zipcode}<Input/>
<Label>Phone Number</Label>
<Input/>{Profile?.phone_numbers}<Input/>

</InformationContainer>

{/* <InformationContainer>
<Heading1 style={{ marginBottom: '38px' }}>Shipping</Heading1>
<Normal700Text>Name</Normal700Text>
<InformationText>
Expand All @@ -76,7 +90,7 @@ export default function App() {
<InformationText>
{UserAddress?.street}, {UserAddress?.city}, {UserAddress?.zipcode}
</InformationText>
</InformationContainer>
</InformationContainer> */}
<OrderContainer>
<OrderSummary cart={cart} numberOfItems={numberOfItems} />
<OrderButton
Expand Down
61 changes: 40 additions & 21 deletions src/app/delivery/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,7 @@ export const QuantityText = styled.div`
text-align: right;
`;

export const InformationContainer = styled.div`
width: 730px;
height: 400px;
margin: 40px;
`;

export const InformationText = styled.div`
width: 730px;
height: 50px;
border-radius: 4px;
margin-top: 14px;
margin-bottom: 14px;
border: 1px solid ${COLORS.neutralGrey};
background: ${COLORS.lightGrey};
display: flex; /* Use flexbox */
align-items: center; /* Center vertically */
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: normal;
padding-left: 20px;
`;

export const OrderContainer = styled.div`
margin-top: 50px;
Expand Down Expand Up @@ -155,3 +134,43 @@ export const OutterDiv = styled.div`
display: flex;
flex-direction: column;
`;


export const InformationContainer = styled.div`
width: 629px;
margin: 40px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: left;
background: ${COLORS.white}; /* Assuming white is defined in your COLORS */
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
padding: 20px 25px;
`;

export const InformationField = styled.div`
width: 100%;
margin-top: 14px;
margin-bottom: 14px;
display: flex;
align-items: center;
`;

export const Label = styled.div`
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: normal;
margin-right: 20px; /* Space between label and input */
`;

export const Input = styled.div`
width: calc(100% - 40px); /* Subtracting padding */
height: 50px;
border-radius: 4px;
padding-left: 20px;
font-size: 20px;
`;

0 comments on commit c014eba

Please sign in to comment.