-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5e09445
commit d14b33a
Showing
8 changed files
with
5,544 additions
and
4,332 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ | |
"prettier": "^2.8.8", | ||
"typescript": "^4.9.5" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import styled from 'styled-components'; | ||
|
||
const CheckoutButton = styled.button` | ||
width: 100px; | ||
height: 50px; | ||
`; | ||
|
||
export default CheckoutButton; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,34 @@ | ||
'use client'; | ||
|
||
// import React from 'react'; | ||
import NavBar from '../../components/NavBar'; | ||
import { GlobalStyle } from '../../styles/components'; | ||
import { Heading1 } from '../../styles/fonts'; | ||
import { | ||
DeliveryContainer, | ||
OrderContainer, | ||
OrderSummary, | ||
OrderButton, | ||
InformationContainer, | ||
InformationText, | ||
} from './styles'; | ||
|
||
export default function App() { | ||
return ( | ||
<main> | ||
<div> Delivery </div> | ||
<GlobalStyle /> | ||
<NavBar /> | ||
<DeliveryContainer> | ||
<InformationContainer> | ||
<Heading1>Shipping</Heading1> | ||
<InformationText>Ethan Auyeung</InformationText> | ||
<InformationText>123 Telegraph Ave</InformationText> | ||
</InformationContainer> | ||
<OrderContainer> | ||
<OrderSummary /> | ||
<OrderButton>Place Order</OrderButton> | ||
</OrderContainer> | ||
</DeliveryContainer> | ||
</main> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
import styled from 'styled-components'; | ||
import COLORS from '../../styles/colors'; | ||
|
||
export const DeliveryContainer = styled.div` | ||
margin-top: 50px; | ||
margin-left: 80px; | ||
width: 1300px; | ||
height: 500px; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-evenly; | ||
align-items: center; | ||
border: 2px solid black; | ||
`; | ||
|
||
export const InformationContainer = styled.div` | ||
width: 730px; | ||
height: 400px; | ||
border: 2px solid black; | ||
`; | ||
|
||
export const InformationText = styled.div` | ||
width: 700px; | ||
height: 50px; | ||
margin: 10px; | ||
border-radius: 4px; | ||
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` | ||
width: 350px; | ||
height: 450px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: space-evenly; | ||
`; | ||
|
||
export const OrderSummary = styled.div` | ||
width: 350px; | ||
height: 360px; | ||
border-radius: 8px; | ||
background: ${COLORS.white}; | ||
box-shadow: 0px 1px 4px 1px rgba(0, 0, 0, 0.15); | ||
align-items: center; | ||
`; | ||
|
||
export const OrderButton = styled.button` | ||
width: 350px; | ||
height: 50px; | ||
flex-shrink: 0; | ||
align-items: center; | ||
background: ${COLORS.navy}; | ||
border-radius: 8px; | ||
color: ${COLORS.white}; | ||
font-size: 20px; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: normal; | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters