Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
cce1184
Updated README
Ricard-Garcia Jun 4, 2021
5d1427c
Added classnames dependency
Ricard-Garcia Jun 4, 2021
3b1fcec
Added base structure and declared constants
Ricard-Garcia Jun 4, 2021
2f1847c
Updated README
Ricard-Garcia Jun 4, 2021
893f30c
Added link to icons and tab title
Ricard-Garcia Jun 4, 2021
476d589
Added checkout disabled when no items
Ricard-Garcia Jun 4, 2021
22053a5
feat: created and linked new CheckoutProfile component fixes #4
jonathancede Jun 4, 2021
a4fb2e2
feat: structure of form data is implemented fixes #5
jonathancede Jun 4, 2021
6bbf082
feat:added initial sidebar
Ricard-Garcia Jun 4, 2021
9145e62
feat:added CartContextProvider without Reducer
Ricard-Garcia Jun 4, 2021
bdd9e31
feat:added getCartTotal as generic function
Ricard-Garcia Jun 4, 2021
a8a3f09
feat:dadded buildSelectOptions generic function
Ricard-Garcia Jun 4, 2021
f1c1d72
feat:added SummaryItem component to Sidebar
Ricard-Garcia Jun 4, 2021
e4fca2a
style:removed white spaces
Ricard-Garcia Jun 4, 2021
a9c8e4e
style:added payment page svgs
Ricard-Garcia Jun 6, 2021
b640580
Added withLayout & fullWidth to Checkout
Ricard-Garcia Jun 6, 2021
dae12fc
feat: implemented context of form data fixes #6
jonathancede Jun 7, 2021
5b5edd9
feat:added and styled sidebar
Ricard-Garcia Jun 7, 2021
ba857a2
feat:added useReducer to CartContextProvider
Ricard-Garcia Jun 7, 2021
e17b9b9
feat: included profile formulary fixes #7
jonathancede Jun 7, 2021
3359a55
feat:added final styling to sidebar
Ricard-Garcia Jun 7, 2021
7fda584
feat: implement the wrapper FormContextProvider fixes #8
jonathancede Jun 7, 2021
7a5dcde
removed test formData structure
jonathancede Jun 7, 2021
41d128e
removed useEffect unused
jonathancede Jun 7, 2021
a889cd7
Merge pull request #9 from Ricard-Garcia/feat/add-sidebar-products
jonathancede Jun 7, 2021
d4a0f35
feat: adapted branch 'main' into feat/profile-page
jonathancede Jun 7, 2021
70869e1
feat: adapt display flex to checkout wrapper
jonathancede Jun 7, 2021
ba81453
Merge pull request #10 from Ricard-Garcia/feat/profile-page
Ricard-Garcia Jun 7, 2021
c96a749
feat: added conditional render to New Product Form link
Ricard-Garcia Jun 7, 2021
9c4cc8d
feat: added classnames functionality
Ricard-Garcia Jun 7, 2021
1419fd4
feat: added payment methods images
Ricard-Garcia Jun 8, 2021
2cb591b
feat: separated form schemas
Ricard-Garcia Jun 8, 2021
1f4ad9f
Merge pull request #15 from Ricard-Garcia/feat/handle-add-new-product…
jonathancede Jun 8, 2021
f305a87
fix: solved problem on form submit in payment form
Ricard-Garcia Jun 8, 2021
c4429b3
feat: added paymentMethod component
Ricard-Garcia Jun 8, 2021
d177a65
feat: added prefix phone number and validation for phone number fixes…
jonathancede Jun 8, 2021
84c05b5
Merge pull request #17 from Ricard-Garcia/feat/profile-page
Ricard-Garcia Jun 8, 2021
cae008a
feat: added placeholder in a prefix phone field fixes #19
jonathancede Jun 8, 2021
4890310
feat: added CheckoutBilling component fixes #18
jonathancede Jun 8, 2021
2e8f53a
Merge pull request #20 from Ricard-Garcia/feat/billing-formulary
Ricard-Garcia Jun 8, 2021
b39b448
feat: fixed bug in EmailForm
Ricard-Garcia Jun 9, 2021
c0f28d8
feat: fixed conditional form render
Ricard-Garcia Jun 9, 2021
4c1ba6c
feat: added new payment form structures
Ricard-Garcia Jun 9, 2021
8063310
feat: added process bar navigation fixes #21
jonathancede Jun 9, 2021
c2ebebc
Merge pull request #22 from Ricard-Garcia/feat/process-navigation
Ricard-Garcia Jun 9, 2021
92b61a7
feat: added card switch
Ricard-Garcia Jun 9, 2021
c3f09f1
feat: added cardTerms validation
Ricard-Garcia Jun 9, 2021
735ff4d
feat: added discount in sidebar
Ricard-Garcia Jun 9, 2021
2f38243
feat: hidden any payment method by default
Ricard-Garcia Jun 9, 2021
c957d77
feat: added cdn javascript files for Bootrstrap functionality
Ricard-Garcia Jun 9, 2021
c3658d0
feat: added LoginModal component
Ricard-Garcia Jun 9, 2021
f46b99d
feat: added LoginModal component
Ricard-Garcia Jun 10, 2021
6afab2e
feat: added cursor pointer to paymentMethod and checkbox
Ricard-Garcia Jun 10, 2021
86fd9d4
feat: added LoginContextProvider
Ricard-Garcia Jun 10, 2021
85c504e
feat: added isLogged property
Ricard-Garcia Jun 10, 2021
9baf525
feat: added payment page
Ricard-Garcia Jun 10, 2021
acb9f1a
feat: added input style and select inside input fixes #24 fixes #25
jonathancede Jun 10, 2021
0125702
Merge branch 'main' into feat/add-payment-page
Ricard-Garcia Jun 10, 2021
f7e9a95
feat: added buttons wrapper
Ricard-Garcia Jun 10, 2021
0e3ef59
Merge pull request #26 from Ricard-Garcia/feat/add-payment-page
jonathancede Jun 10, 2021
7d51d79
Adapt branch 'main' into feat/input-style
jonathancede Jun 10, 2021
296579f
feat: style buttons navigation and full view port main
jonathancede Jun 10, 2021
8de332c
Merge pull request #27 from Ricard-Garcia/feat/input-style
Ricard-Garcia Jun 10, 2021
3d50c64
feat: solved input width bug
Ricard-Garcia Jun 10, 2021
7dadad3
feat: removed blue color on autofill and added grey separator
Ricard-Garcia Jun 10, 2021
47bcec9
fix: solved modal bug when closing
Ricard-Garcia Jun 10, 2021
a5e228b
feat: added log out functionality
Ricard-Garcia Jun 10, 2021
c539cd4
feat: added log in name to header
Ricard-Garcia Jun 10, 2021
74d50b5
feat: added redirect to home when all items deleted
Ricard-Garcia Jun 10, 2021
4e5d02e
feat: added condition to log and proceed to checkout
Ricard-Garcia Jun 10, 2021
7fde954
feat: added redirect when logged out
Ricard-Garcia Jun 10, 2021
40da7ba
style: deleted commented code blocks
Ricard-Garcia Jun 10, 2021
ef538cf
Merge branch 'main' into feat/add-login-logout
Ricard-Garcia Jun 10, 2021
0a0bd4e
feat: added login and logout page
Ricard-Garcia Jun 10, 2021
b9eb8af
feat: added CheckoutSummary component fixes #29
jonathancede Jun 10, 2021
93d619e
Merge pull request #28 from Ricard-Garcia/feat/add-login-logout
jonathancede Jun 10, 2021
ef09069
Merge pull request #30 from Ricard-Garcia/feat/summary-page
Ricard-Garcia Jun 10, 2021
ea62bb8
feat: added new html structure to summary page
Ricard-Garcia Jun 10, 2021
74d8d4c
feat: solved checkout disabled bug
Ricard-Garcia Jun 10, 2021
2f09dc2
feat: added close button to SummaryItem
Ricard-Garcia Jun 11, 2021
46bc318
feat: changed password type to text type Exp. date input
Ricard-Garcia Jun 11, 2021
d363491
fix: solved modal-open bug
Ricard-Garcia Jun 11, 2021
9b6cf56
feat: added redirect to HOME_URL when no cartItems
Ricard-Garcia Jun 11, 2021
7c67856
feat: added dynamic total + discount
Ricard-Garcia Jun 11, 2021
ef7630e
style: removed all unnecessary code
Ricard-Garcia Jun 11, 2021
858ef6a
style: removed comments
Ricard-Garcia Jun 11, 2021
e987cd6
Merge pull request #31 from Ricard-Garcia/feat/final-styling
jonathancede Jun 11, 2021
104877c
feat: added Redirect to payment page
Ricard-Garcia Jun 11, 2021
15c7d88
feat: solved responsiveness in payment page
Ricard-Garcia Jun 11, 2021
6669d49
feat: added refresh functionality on checkout process
Ricard-Garcia Jun 11, 2021
0815fde
feat: simplified redirect to profile code
Ricard-Garcia Jun 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,55 @@ Thanks goes to these wonderful people
This project follows the
[all-contributors](https://github.com/all-contributors/all-contributors)
specification. Contributions of any kind welcome!

## Notes

### Components

Components

```
Checkout

Header (navlinks)
Navlinks
Checkout button (Remove)

Main (using BrowseRouter)
Process
Form
Input(s)
Submit button

Footer (navigation buttons)
Navigation Button (Changing inside text depending on page)

Sidebar


States

Checkout Checkout information (object using context)

Sidebar Disccount code (Easter egg)
```

### States

State of each form.

### Images/SVG

\*Tick/Cross

\*Lock

\*PayPal/ApplePay

\*VISA/MasterCard/AmericanExpress

\*Back of a card (CVV Code)

### Resources

[Material UI](https://material-ui.com/getting-started/installation/)
184 changes: 184 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
"@testing-library/react": "^11.2.6",
"@testing-library/user-event": "^13.1.5",
"bootstrap": "^4.6.0",
"classnames": "^2.3.1",
"clsx": "^1.1.1",
"formik": "^2.2.6",
"prop-types": "^15.7.2",
"react": "^17.0.2",
"react-bootstrap": "^1.6.1",
"react-dom": "^17.0.2",
"react-redux": "^7.2.3",
"react-router-dom": "^5.2.0",
Expand Down
22 changes: 21 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<!-- Link to icons -->
<link
rel="stylesheet"
href="https://unicons.iconscout.com/release/v4.0.0/css/thinline.css"
/>
<title>React Shopping Wizard</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand All @@ -39,5 +44,20 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
<script
src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"
></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"
></script>
</body>
</html>
Loading